diff --git a/src/Microsoft.Graph/Generated/externalconnectors/model/DisplayTemplate.cs b/src/Microsoft.Graph/Generated/externalconnectors/model/DisplayTemplate.cs
index bbfaaa6a997..1067183f1f1 100644
--- a/src/Microsoft.Graph/Generated/externalconnectors/model/DisplayTemplate.cs
+++ b/src/Microsoft.Graph/Generated/externalconnectors/model/DisplayTemplate.cs
@@ -23,7 +23,7 @@ public partial class DisplayTemplate
///
/// Gets or sets id.
- /// The text identifier for the display template; for example, contosoTickets.
+ /// The text identifier for the display template; for example, contosoTickets. Maximum 16 characters. Only alphanumeric characters allowed.
///
[JsonPropertyName("id")]
public string Id { get; set; }
@@ -37,7 +37,7 @@ public partial class DisplayTemplate
///
/// Gets or sets priority.
- /// Defines the priority of a display template. A display template with priority 1 is evaluated before a template with priority 4. Gaps in priority values are supported.
+ /// Defines the priority of a display template. A display template with priority 1 is evaluated before a template with priority 4. Gaps in priority values are supported. Must be positive value.
///
[JsonPropertyName("priority")]
public Int32? Priority { get; set; }
diff --git a/src/Microsoft.Graph/Generated/externalconnectors/model/SearchSettings.cs b/src/Microsoft.Graph/Generated/externalconnectors/model/SearchSettings.cs
index 0ba57a08b58..89572d61194 100644
--- a/src/Microsoft.Graph/Generated/externalconnectors/model/SearchSettings.cs
+++ b/src/Microsoft.Graph/Generated/externalconnectors/model/SearchSettings.cs
@@ -23,7 +23,7 @@ public partial class SearchSettings
///
/// Gets or sets searchResultTemplates.
- /// Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed.
+ /// Enables the developer to define the appearance of the content and configure conditions that dictate when the template should be displayed. Maximum of 2 search result templates per connection.
///
[JsonPropertyName("searchResultTemplates")]
public IEnumerable SearchResultTemplates { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageSubject.cs b/src/Microsoft.Graph/Generated/model/AccessPackageSubject.cs
index 6eb1167c4df..c219729f5f0 100644
--- a/src/Microsoft.Graph/Generated/model/AccessPackageSubject.cs
+++ b/src/Microsoft.Graph/Generated/model/AccessPackageSubject.cs
@@ -17,6 +17,7 @@ namespace Microsoft.Graph
///
/// The type Access Package Subject.
///
+ [JsonConverter(typeof(DerivedTypeConverter))]
public partial class AccessPackageSubject : Entity
{
@@ -68,6 +69,12 @@ public partial class AccessPackageSubject : Entity
[JsonPropertyName("principalName")]
public string PrincipalName { get; set; }
+ ///
+ /// Gets or sets subject lifecycle.
+ ///
+ [JsonPropertyName("subjectLifecycle")]
+ public AccessPackageSubjectLifecycle? SubjectLifecycle { get; set; }
+
///
/// Gets or sets type.
/// The resource type of the subject.
diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageSubjectLifecycle.cs b/src/Microsoft.Graph/Generated/model/AccessPackageSubjectLifecycle.cs
new file mode 100644
index 00000000000..b203a809188
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/model/AccessPackageSubjectLifecycle.cs
@@ -0,0 +1,43 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum AccessPackageSubjectLifecycle.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum AccessPackageSubjectLifecycle
+ {
+
+ ///
+ /// Not Defined
+ ///
+ NotDefined = 0,
+
+ ///
+ /// Not Governed
+ ///
+ NotGoverned = 1,
+
+ ///
+ /// Governed
+ ///
+ Governed = 2,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 3,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/model/Admin.cs b/src/Microsoft.Graph/Generated/model/Admin.cs
index d0bf49e1fc5..8e1a6696a49 100644
--- a/src/Microsoft.Graph/Generated/model/Admin.cs
+++ b/src/Microsoft.Graph/Generated/model/Admin.cs
@@ -37,6 +37,7 @@ public partial class Admin
///
/// Gets or sets report settings.
+ /// A container for administrative resources to manage reports.
///
[JsonPropertyName("reportSettings")]
public AdminReportSettings ReportSettings { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/AdminReportSettings.cs b/src/Microsoft.Graph/Generated/model/AdminReportSettings.cs
index bcd029e3032..7870892ce05 100644
--- a/src/Microsoft.Graph/Generated/model/AdminReportSettings.cs
+++ b/src/Microsoft.Graph/Generated/model/AdminReportSettings.cs
@@ -22,6 +22,7 @@ public partial class AdminReportSettings : Entity
///
/// Gets or sets display concealed names.
+ /// If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required.
///
[JsonPropertyName("displayConcealedNames")]
public bool? DisplayConcealedNames { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/ApplicationTemplate.cs b/src/Microsoft.Graph/Generated/model/ApplicationTemplate.cs
index 0e02d332878..ed16008b363 100644
--- a/src/Microsoft.Graph/Generated/model/ApplicationTemplate.cs
+++ b/src/Microsoft.Graph/Generated/model/ApplicationTemplate.cs
@@ -68,6 +68,12 @@ public partial class ApplicationTemplate : Entity
[JsonPropertyName("publisher")]
public string Publisher { get; set; }
+ ///
+ /// Gets or sets supported claim configuration.
+ ///
+ [JsonPropertyName("supportedClaimConfiguration")]
+ public SupportedClaimConfiguration SupportedClaimConfiguration { get; set; }
+
///
/// Gets or sets supported provisioning types.
/// The list of provisioning modes supported by this application. The only valid value is sync.
diff --git a/src/Microsoft.Graph/Generated/model/DeviceManagementConfigurationStringSettingValueDefinition.cs b/src/Microsoft.Graph/Generated/model/DeviceManagementConfigurationStringSettingValueDefinition.cs
index 51ce0e33414..59502b9c236 100644
--- a/src/Microsoft.Graph/Generated/model/DeviceManagementConfigurationStringSettingValueDefinition.cs
+++ b/src/Microsoft.Graph/Generated/model/DeviceManagementConfigurationStringSettingValueDefinition.cs
@@ -58,14 +58,14 @@ public DeviceManagementConfigurationStringSettingValueDefinition()
///
/// Gets or sets maximumLength.
- /// Maximum length of string. Valid values 0 to 87516
+ /// Maximum length of string
///
[JsonPropertyName("maximumLength")]
public Int64? MaximumLength { get; set; }
///
/// Gets or sets minimumLength.
- /// Minimum length of string. Valid values 0 to 87516
+ /// Minimum length of string
///
[JsonPropertyName("minimumLength")]
public Int64? MinimumLength { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/EmployeeExperience.cs b/src/Microsoft.Graph/Generated/model/EmployeeExperience.cs
new file mode 100644
index 00000000000..8fe8b61e6b5
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/model/EmployeeExperience.cs
@@ -0,0 +1,51 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Employee Experience.
+ ///
+ [JsonConverter(typeof(DerivedTypeConverter))]
+ public partial class EmployeeExperience
+ {
+
+ ///
+ /// Gets or sets learning providers.
+ ///
+ [JsonPropertyName("learningProviders")]
+ public IEmployeeExperienceLearningProvidersCollectionPage LearningProviders { get; set; }
+
+ ///
+ /// Gets or sets learningProvidersNextLink.
+ ///
+ [JsonPropertyName("learningProviders@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string LearningProvidersNextLink { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs b/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs
index ab785adf3f0..fca9cf02d50 100644
--- a/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs
+++ b/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs
@@ -195,6 +195,19 @@ public partial class EntitlementManagement : Entity
[JsonPropertyName("settings")]
public EntitlementManagementSettings Settings { get; set; }
+ ///
+ /// Gets or sets subjects.
+ ///
+ [JsonPropertyName("subjects")]
+ public IEntitlementManagementSubjectsCollectionPage Subjects { get; set; }
+
+ ///
+ /// Gets or sets subjectsNextLink.
+ ///
+ [JsonPropertyName("subjects@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string SubjectsNextLink { get; set; }
+
}
}
diff --git a/src/Microsoft.Graph/Generated/model/ExternalIdentitiesPolicy.cs b/src/Microsoft.Graph/Generated/model/ExternalIdentitiesPolicy.cs
index 36065433ed4..f7796e4f246 100644
--- a/src/Microsoft.Graph/Generated/model/ExternalIdentitiesPolicy.cs
+++ b/src/Microsoft.Graph/Generated/model/ExternalIdentitiesPolicy.cs
@@ -30,12 +30,14 @@ public ExternalIdentitiesPolicy()
///
/// Gets or sets allow deleted identities data removal.
+ /// Notifies Azure AD whether to clean up the user information about the external identity, from the guest tenant, when the user is deleted in their home tenant.
///
[JsonPropertyName("allowDeletedIdentitiesDataRemoval")]
public bool? AllowDeletedIdentitiesDataRemoval { get; set; }
///
/// Gets or sets allow external identities to leave.
+ /// Defines whether external users can leave the guest tenant. If set to false, self-service controls are not enabled, and the admin of the guest tenant must manually remove the external user from the guest tenant.
///
[JsonPropertyName("allowExternalIdentitiesToLeave")]
public bool? AllowExternalIdentitiesToLeave { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/Group.cs b/src/Microsoft.Graph/Generated/model/Group.cs
index ae783215127..feadbf55d21 100644
--- a/src/Microsoft.Graph/Generated/model/Group.cs
+++ b/src/Microsoft.Graph/Generated/model/Group.cs
@@ -147,13 +147,6 @@ public Group()
[JsonPropertyName("mailNickname")]
public string MailNickname { get; set; }
- ///
- /// Gets or sets mdm app id.
- ///
- [Obsolete("")]
- [JsonPropertyName("mdmAppId")]
- public string MdmAppId { get; set; }
-
///
/// Gets or sets membership rule.
/// The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith).
diff --git a/src/Microsoft.Graph/Generated/model/Identity.cs b/src/Microsoft.Graph/Generated/model/Identity.cs
index 0f7b6556948..97320639274 100644
--- a/src/Microsoft.Graph/Generated/model/Identity.cs
+++ b/src/Microsoft.Graph/Generated/model/Identity.cs
@@ -23,7 +23,7 @@ public partial class Identity
///
/// Gets or sets displayName.
- /// The identity's display name. Note that this may not always be available or up to date. For example, if a user changes their display name, the API may 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. 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.
///
[JsonPropertyName("displayName")]
public string DisplayName { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/KeyValuePair.cs b/src/Microsoft.Graph/Generated/model/KeyValuePair.cs
index da377c4de58..487067226eb 100644
--- a/src/Microsoft.Graph/Generated/model/KeyValuePair.cs
+++ b/src/Microsoft.Graph/Generated/model/KeyValuePair.cs
@@ -23,14 +23,14 @@ public partial class KeyValuePair
///
/// Gets or sets name.
- /// Name for this key-value pair. Possible names are: AdditionalWSFedEndpointCheckResult, AllowedAuthenticationClassReferencesCheckResult, AlwaysRequireAuthenticationCheckResult, AutoUpdateEnabledCheckResult, ClaimsProviderNameCheckResult, EncryptClaimsCheckResult, EncryptedNameIdRequiredCheckResult, MonitoringEnabledCheckResult,NotBeforeSkewCheckResult, RequestMFAFromClaimsProvidersCheckResult, SignedSamlRequestsRequiredCheckResult, AdditionalAuthenticationRulesCheckResult, TokenLifetimeCheckResult, DelegationAuthorizationRulesCheckResult, IssuanceAuthorizationRulesCheckResult, IssuanceTransformRulesCheckResult.
+ /// Name for this key-value pair
///
[JsonPropertyName("name")]
public string Name { get; set; }
///
/// Gets or sets value.
- /// Value for this key-value pair. Possible result values are 0 (when the validation check passed), 1 (when the validation check failed), or 2 (when the validation check is a warning).
+ /// Value for this key-value pair
///
[JsonPropertyName("value")]
public string Value { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/LearningContent.cs b/src/Microsoft.Graph/Generated/model/LearningContent.cs
new file mode 100644
index 00000000000..ace2569ca33
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/model/LearningContent.cs
@@ -0,0 +1,146 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Learning Content.
+ ///
+ [JsonConverter(typeof(DerivedTypeConverter))]
+ public partial class LearningContent
+ {
+
+ ///
+ /// Gets or sets additional tags.
+ ///
+ [JsonPropertyName("additionalTags")]
+ public IEnumerable AdditionalTags { get; set; }
+
+ ///
+ /// Gets or sets content web url.
+ ///
+ [JsonPropertyName("contentWebUrl")]
+ public string ContentWebUrl { get; set; }
+
+ ///
+ /// Gets or sets contributor.
+ ///
+ [JsonPropertyName("contributor")]
+ public string Contributor { get; set; }
+
+ ///
+ /// Gets or sets created date time.
+ ///
+ [JsonPropertyName("createdDateTime")]
+ public DateTimeOffset? CreatedDateTime { get; set; }
+
+ ///
+ /// Gets or sets description.
+ ///
+ [JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or sets duration.
+ ///
+ [JsonPropertyName("duration")]
+ public Duration Duration { get; set; }
+
+ ///
+ /// Gets or sets external id.
+ ///
+ [JsonPropertyName("externalId")]
+ public string ExternalId { get; set; }
+
+ ///
+ /// Gets or sets format.
+ ///
+ [JsonPropertyName("format")]
+ public string Format { get; set; }
+
+ ///
+ /// Gets or sets is active.
+ ///
+ [JsonPropertyName("isActive")]
+ public bool? IsActive { get; set; }
+
+ ///
+ /// Gets or sets is premium.
+ ///
+ [JsonPropertyName("isPremium")]
+ public bool? IsPremium { get; set; }
+
+ ///
+ /// Gets or sets is searchable.
+ ///
+ [JsonPropertyName("isSearchable")]
+ public bool? IsSearchable { get; set; }
+
+ ///
+ /// Gets or sets language tag.
+ ///
+ [JsonPropertyName("languageTag")]
+ public string LanguageTag { get; set; }
+
+ ///
+ /// Gets or sets last modified date time.
+ ///
+ [JsonPropertyName("lastModifiedDateTime")]
+ public DateTimeOffset? LastModifiedDateTime { get; set; }
+
+ ///
+ /// Gets or sets number of pages.
+ ///
+ [JsonPropertyName("numberOfPages")]
+ public Int32? NumberOfPages { get; set; }
+
+ ///
+ /// Gets or sets skill tags.
+ ///
+ [JsonPropertyName("skillTags")]
+ public IEnumerable SkillTags { get; set; }
+
+ ///
+ /// Gets or sets source name.
+ ///
+ [JsonPropertyName("sourceName")]
+ public string SourceName { get; set; }
+
+ ///
+ /// Gets or sets thumbnail web url.
+ ///
+ [JsonPropertyName("thumbnailWebUrl")]
+ public string ThumbnailWebUrl { get; set; }
+
+ ///
+ /// Gets or sets title.
+ ///
+ [JsonPropertyName("title")]
+ public string Title { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/model/LearningProvider.cs b/src/Microsoft.Graph/Generated/model/LearningProvider.cs
new file mode 100644
index 00000000000..ae21660dbe8
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/model/LearningProvider.cs
@@ -0,0 +1,80 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Learning Provider.
+ ///
+ public partial class LearningProvider : Entity
+ {
+
+ ///
+ /// Gets or sets display name.
+ ///
+ [JsonPropertyName("displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets is enabled.
+ ///
+ [JsonPropertyName("isEnabled")]
+ public bool? IsEnabled { get; set; }
+
+ ///
+ /// Gets or sets login web url.
+ ///
+ [JsonPropertyName("loginWebUrl")]
+ public string LoginWebUrl { get; set; }
+
+ ///
+ /// Gets or sets long logo web url for dark theme.
+ ///
+ [JsonPropertyName("longLogoWebUrlForDarkTheme")]
+ public string LongLogoWebUrlForDarkTheme { get; set; }
+
+ ///
+ /// Gets or sets long logo web url for light theme.
+ ///
+ [JsonPropertyName("longLogoWebUrlForLightTheme")]
+ public string LongLogoWebUrlForLightTheme { get; set; }
+
+ ///
+ /// Gets or sets square logo web url for dark theme.
+ ///
+ [JsonPropertyName("squareLogoWebUrlForDarkTheme")]
+ public string SquareLogoWebUrlForDarkTheme { get; set; }
+
+ ///
+ /// Gets or sets square logo web url for light theme.
+ ///
+ [JsonPropertyName("squareLogoWebUrlForLightTheme")]
+ public string SquareLogoWebUrlForLightTheme { get; set; }
+
+ ///
+ /// Gets or sets learning contents.
+ ///
+ [JsonPropertyName("learningContents")]
+ public ILearningProviderLearningContentsCollectionPage LearningContents { get; set; }
+
+ ///
+ /// Gets or sets learningContentsNextLink.
+ ///
+ [JsonPropertyName("learningContents@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string LearningContentsNextLink { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/model/PolicyRoot.cs b/src/Microsoft.Graph/Generated/model/PolicyRoot.cs
index 4afef1aab74..36f188debcd 100644
--- a/src/Microsoft.Graph/Generated/model/PolicyRoot.cs
+++ b/src/Microsoft.Graph/Generated/model/PolicyRoot.cs
@@ -120,6 +120,7 @@ public partial class PolicyRoot
///
/// Gets or sets external identities policy.
+ /// Represents the tenant-wide policy that controls whether external users can leave an Azure AD tenant via self-service controls.
///
[JsonPropertyName("externalIdentitiesPolicy")]
public ExternalIdentitiesPolicy ExternalIdentitiesPolicy { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/SearchHit.cs b/src/Microsoft.Graph/Generated/model/SearchHit.cs
index f2f59ae0c79..73a7c3c9ac1 100644
--- a/src/Microsoft.Graph/Generated/model/SearchHit.cs
+++ b/src/Microsoft.Graph/Generated/model/SearchHit.cs
@@ -30,7 +30,7 @@ public partial class SearchHit
///
/// Gets or sets hitId.
- /// The internal identifier for the item.
+ /// The internal identifier for the item. The format of the identifier varies based on the entity type. For details, see hitId format.
///
[JsonPropertyName("hitId")]
public string HitId { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/Security.cs b/src/Microsoft.Graph/Generated/model/Security.cs
index a33f1dc61a2..c3c5e24371f 100644
--- a/src/Microsoft.Graph/Generated/model/Security.cs
+++ b/src/Microsoft.Graph/Generated/model/Security.cs
@@ -102,6 +102,13 @@ public partial class Security : Entity
[JsonPropertyName("triggerTypes")]
public Microsoft.Graph.SecurityNamespace.TriggerTypesRoot TriggerTypes { get; set; }
+ ///
+ /// Gets or sets threat submission.
+ /// A threat submission sent to Microsoft; for example, a suspicious email threat, URL threat, or file threat.
+ ///
+ [JsonPropertyName("threatSubmission")]
+ public Microsoft.Graph.SecurityNamespace.ThreatSubmissionRoot ThreatSubmission { get; set; }
+
///
/// Gets or sets alerts.
/// Notifications for suspicious or potential security issues in a customer’s tenant.
diff --git a/src/Microsoft.Graph/Generated/model/SupportedClaimConfiguration.cs b/src/Microsoft.Graph/Generated/model/SupportedClaimConfiguration.cs
new file mode 100644
index 00000000000..db30b6174da
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/model/SupportedClaimConfiguration.cs
@@ -0,0 +1,43 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type SupportedClaimConfiguration.
+ ///
+ [JsonConverter(typeof(DerivedTypeConverter))]
+ public partial class SupportedClaimConfiguration
+ {
+
+ ///
+ /// Gets or sets nameIdPolicyFormat.
+ ///
+ [JsonPropertyName("nameIdPolicyFormat")]
+ public string NameIdPolicyFormat { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/model/TodoTask.cs b/src/Microsoft.Graph/Generated/model/TodoTask.cs
index b51c321ece5..4809017939a 100644
--- a/src/Microsoft.Graph/Generated/model/TodoTask.cs
+++ b/src/Microsoft.Graph/Generated/model/TodoTask.cs
@@ -30,7 +30,7 @@ public partial class TodoTask : Entity
///
/// Gets or sets body last modified date time.
- /// The date and time when the task was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
+ /// The date and time when the task body was last modified. By default, it is in UTC. You can provide a custom time zone in the request header. The property value uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2020 would look like this: '2020-01-01T00:00:00Z'.
///
[JsonPropertyName("bodyLastModifiedDateTime")]
public DateTimeOffset? BodyLastModifiedDateTime { get; set; }
@@ -107,6 +107,7 @@ public partial class TodoTask : Entity
///
/// Gets or sets start date time.
+ /// The date in the specified time zone at which the task is scheduled to start.
///
[JsonPropertyName("startDateTime")]
public DateTimeTimeZone StartDateTime { get; set; }
diff --git a/src/Microsoft.Graph/Generated/model/User.cs b/src/Microsoft.Graph/Generated/model/User.cs
index 6b0b258f69c..8a33ba7f488 100644
--- a/src/Microsoft.Graph/Generated/model/User.cs
+++ b/src/Microsoft.Graph/Generated/model/User.cs
@@ -349,7 +349,7 @@ public User()
///
/// Gets or sets on premises sync enabled.
- /// true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).
+ /// true if this user object is currently being synced from an on-premises Active Directory (AD); otherwise the user isn't being synced and can be managed in Azure Active Directory (Azure AD). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).
///
[JsonPropertyName("onPremisesSyncEnabled")]
public bool? OnPremisesSyncEnabled { get; set; }
@@ -551,7 +551,7 @@ public User()
///
/// Gets or sets preferred name.
- /// The preferred name for the user. Returned only on $select.
+ /// The preferred name for the user. Not Supported. This attribute returns an empty string.Returned only on $select.
///
[JsonPropertyName("preferredName")]
public string PreferredName { get; set; }
diff --git a/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionPage.cs
new file mode 100644
index 00000000000..e2d090089a4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionPage.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+
+ ///
+ /// The type EmployeeExperienceLearningProvidersCollectionPage.
+ ///
+ public partial class EmployeeExperienceLearningProvidersCollectionPage : CollectionPage, IEmployeeExperienceLearningProvidersCollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ public IEmployeeExperienceLearningProvidersCollectionRequest NextPageRequest { get; private set; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
+ {
+ if (!string.IsNullOrEmpty(nextPageLinkString))
+ {
+ this.NextPageRequest = new EmployeeExperienceLearningProvidersCollectionRequest(
+ nextPageLinkString,
+ client,
+ null);
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionRequest.cs b/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionRequest.cs
new file mode 100644
index 00000000000..f217dfc6b81
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/EmployeeExperienceLearningProvidersCollectionRequest.cs
@@ -0,0 +1,208 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type EmployeeExperienceLearningProvidersCollectionRequest.
+ ///
+ public partial class EmployeeExperienceLearningProvidersCollectionRequest : BaseRequest, IEmployeeExperienceLearningProvidersCollectionRequest
+ {
+ ///
+ /// Constructs a new EmployeeExperienceLearningProvidersCollectionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public EmployeeExperienceLearningProvidersCollectionRequest(
+ string requestUrl,
+ IBaseClient client,
+ IEnumerable
/// The .
IEntitlementManagementSettingsRequestBuilder Settings { get; }
+
+ ///
+ /// Gets the request builder for Subjects.
+ ///
+ /// The .
+ IEntitlementManagementSubjectsCollectionRequestBuilder Subjects { get; }
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionPage.cs
new file mode 100644
index 00000000000..c295adca789
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionPage.cs
@@ -0,0 +1,31 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The interface IEntitlementManagementSubjectsCollectionPage.
+ ///
+ [InterfaceConverter(typeof(InterfaceConverter))]
+ public interface IEntitlementManagementSubjectsCollectionPage : ICollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ IEntitlementManagementSubjectsCollectionRequest NextPageRequest { get; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequest.cs b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequest.cs
new file mode 100644
index 00000000000..f5a0259f8bb
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequest.cs
@@ -0,0 +1,110 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The interface IEntitlementManagementSubjectsCollectionRequest.
+ ///
+ public partial interface IEntitlementManagementSubjectsCollectionRequest : IBaseRequest
+ {
+ ///
+ /// Adds the specified AccessPackageSubject to the collection via POST.
+ ///
+ /// The AccessPackageSubject to add.
+ /// The for the request.
+ /// The created AccessPackageSubject.
+ System.Threading.Tasks.Task AddAsync(AccessPackageSubject accessPackageSubject, CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified AccessPackageSubject to the collection via POST and returns a object of the request.
+ ///
+ /// The AccessPackageSubject to add.
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> AddResponseAsync(AccessPackageSubject accessPackageSubject, CancellationToken cancellationToken = default);
+
+
+ ///
+ /// Gets the collection page.
+ ///
+ /// The for the request.
+ /// The collection page.
+ System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the collection page and returns a object.
+ ///
+ /// The for the request.
+ /// The object.
+ System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Expand(string value);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Expand(Expression> expandExpression);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Select(string value);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Select(Expression> selectExpression);
+
+ ///
+ /// Adds the specified top value to the request.
+ ///
+ /// The top value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Top(int value);
+
+ ///
+ /// Adds the specified filter value to the request.
+ ///
+ /// The filter value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Filter(string value);
+
+ ///
+ /// Adds the specified skip value to the request.
+ ///
+ /// The skip value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest Skip(int value);
+
+ ///
+ /// Adds the specified orderby value to the request.
+ ///
+ /// The orderby value.
+ /// The request object to send.
+ IEntitlementManagementSubjectsCollectionRequest OrderBy(string value);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequestBuilder.cs
new file mode 100644
index 00000000000..e376dfebc8d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IEntitlementManagementSubjectsCollectionRequestBuilder.cs
@@ -0,0 +1,41 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionRequestBuilder.cs.tt
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// The interface IEntitlementManagementSubjectsCollectionRequestBuilder.
+ ///
+ public partial interface IEntitlementManagementSubjectsCollectionRequestBuilder : IBaseRequestBuilder
+ {
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ IEntitlementManagementSubjectsCollectionRequest Request();
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ IEntitlementManagementSubjectsCollectionRequest Request(IEnumerable
options);
+
+ ///
+ /// Gets an for the specified AccessPackageSubject.
+ ///
+ /// The ID for the AccessPackageSubject.
+ /// The .
+ IAccessPackageSubjectRequestBuilder this[string id] { get; }
+
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningContentRequest.cs b/src/Microsoft.Graph/Generated/requests/ILearningContentRequest.cs
new file mode 100644
index 00000000000..b7591be7c88
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningContentRequest.cs
@@ -0,0 +1,130 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The interface ILearningContentRequest.
+ ///
+ public partial interface ILearningContentRequest : IBaseRequest
+ {
+ ///
+ /// Creates the specified LearningContent using POST.
+ ///
+ /// The LearningContent to create.
+ /// The for the request.
+ /// The created LearningContent.
+ System.Threading.Tasks.Task CreateAsync(LearningContent learningContentToCreate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Creates the specified LearningContent using POST and returns a object.
+ ///
+ /// The LearningContent to create.
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> CreateResponseAsync(LearningContent learningContentToCreate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Deletes the specified LearningContent.
+ ///
+ /// The for the request.
+ /// The task to await.
+ System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Deletes the specified LearningContent and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the specified LearningContent.
+ ///
+ /// The for the request.
+ /// The LearningContent.
+ System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the specified LearningContent and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningContent using PATCH.
+ ///
+ /// The LearningContent to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated LearningContent.
+ System.Threading.Tasks.Task UpdateAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningContent using PATCH and returns a object.
+ ///
+ /// The LearningContent to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ System.Threading.Tasks.Task> UpdateResponseAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningContent using PUT.
+ ///
+ /// The LearningContent object to update.
+ /// The for the request.
+ /// The task to await.
+ System.Threading.Tasks.Task PutAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningContent using PUT and returns a object.
+ ///
+ /// The LearningContent object to update.
+ /// The for the request.
+ /// The task of to await.
+ System.Threading.Tasks.Task> PutResponseAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ ILearningContentRequest Expand(string value);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ ILearningContentRequest Expand(Expression> expandExpression);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ ILearningContentRequest Select(string value);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ ILearningContentRequest Select(Expression> selectExpression);
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/ILearningContentRequestBuilder.cs
new file mode 100644
index 00000000000..38a9a3c0711
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningContentRequestBuilder.cs
@@ -0,0 +1,35 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The interface ILearningContentRequestBuilder.
+ ///
+ public partial interface ILearningContentRequestBuilder : IBaseRequestBuilder
+ {
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ ILearningContentRequest Request();
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ ILearningContentRequest Request(IEnumerable
options);
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionPage.cs
new file mode 100644
index 00000000000..4dd1a41b93f
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionPage.cs
@@ -0,0 +1,31 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The interface ILearningProviderLearningContentsCollectionPage.
+ ///
+ [InterfaceConverter(typeof(InterfaceConverter))]
+ public interface ILearningProviderLearningContentsCollectionPage : ICollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ ILearningProviderLearningContentsCollectionRequest NextPageRequest { get; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequest.cs b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequest.cs
new file mode 100644
index 00000000000..5246c8d639d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequest.cs
@@ -0,0 +1,110 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The interface ILearningProviderLearningContentsCollectionRequest.
+ ///
+ public partial interface ILearningProviderLearningContentsCollectionRequest : IBaseRequest
+ {
+ ///
+ /// Adds the specified LearningContent to the collection via POST.
+ ///
+ /// The LearningContent to add.
+ /// The for the request.
+ /// The created LearningContent.
+ System.Threading.Tasks.Task AddAsync(LearningContent learningContent, CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified LearningContent to the collection via POST and returns a object of the request.
+ ///
+ /// The LearningContent to add.
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> AddResponseAsync(LearningContent learningContent, CancellationToken cancellationToken = default);
+
+
+ ///
+ /// Gets the collection page.
+ ///
+ /// The for the request.
+ /// The collection page.
+ System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the collection page and returns a object.
+ ///
+ /// The for the request.
+ /// The object.
+ System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Expand(string value);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Expand(Expression> expandExpression);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Select(string value);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Select(Expression> selectExpression);
+
+ ///
+ /// Adds the specified top value to the request.
+ ///
+ /// The top value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Top(int value);
+
+ ///
+ /// Adds the specified filter value to the request.
+ ///
+ /// The filter value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Filter(string value);
+
+ ///
+ /// Adds the specified skip value to the request.
+ ///
+ /// The skip value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest Skip(int value);
+
+ ///
+ /// Adds the specified orderby value to the request.
+ ///
+ /// The orderby value.
+ /// The request object to send.
+ ILearningProviderLearningContentsCollectionRequest OrderBy(string value);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequestBuilder.cs
new file mode 100644
index 00000000000..6a01cb53877
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningProviderLearningContentsCollectionRequestBuilder.cs
@@ -0,0 +1,41 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityCollectionRequestBuilder.cs.tt
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// The interface ILearningProviderLearningContentsCollectionRequestBuilder.
+ ///
+ public partial interface ILearningProviderLearningContentsCollectionRequestBuilder : IBaseRequestBuilder
+ {
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ ILearningProviderLearningContentsCollectionRequest Request();
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ ILearningProviderLearningContentsCollectionRequest Request(IEnumerable
options);
+
+ ///
+ /// Gets an for the specified LearningContent.
+ ///
+ /// The ID for the LearningContent.
+ /// The .
+ ILearningContentRequestBuilder this[string id] { get; }
+
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningProviderRequest.cs b/src/Microsoft.Graph/Generated/requests/ILearningProviderRequest.cs
new file mode 100644
index 00000000000..8cd73ea104a
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningProviderRequest.cs
@@ -0,0 +1,130 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The interface ILearningProviderRequest.
+ ///
+ public partial interface ILearningProviderRequest : IBaseRequest
+ {
+ ///
+ /// Creates the specified LearningProvider using POST.
+ ///
+ /// The LearningProvider to create.
+ /// The for the request.
+ /// The created LearningProvider.
+ System.Threading.Tasks.Task CreateAsync(LearningProvider learningProviderToCreate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Creates the specified LearningProvider using POST and returns a object.
+ ///
+ /// The LearningProvider to create.
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> CreateResponseAsync(LearningProvider learningProviderToCreate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Deletes the specified LearningProvider.
+ ///
+ /// The for the request.
+ /// The task to await.
+ System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Deletes the specified LearningProvider and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the specified LearningProvider.
+ ///
+ /// The for the request.
+ /// The LearningProvider.
+ System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Gets the specified LearningProvider and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningProvider using PATCH.
+ ///
+ /// The LearningProvider to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated LearningProvider.
+ System.Threading.Tasks.Task UpdateAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningProvider using PATCH and returns a object.
+ ///
+ /// The LearningProvider to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ System.Threading.Tasks.Task> UpdateResponseAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningProvider using PUT.
+ ///
+ /// The LearningProvider object to update.
+ /// The for the request.
+ /// The task to await.
+ System.Threading.Tasks.Task PutAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Updates the specified LearningProvider using PUT and returns a object.
+ ///
+ /// The LearningProvider object to update.
+ /// The for the request.
+ /// The task of to await.
+ System.Threading.Tasks.Task> PutResponseAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ ILearningProviderRequest Expand(string value);
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ ILearningProviderRequest Expand(Expression> expandExpression);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ ILearningProviderRequest Select(string value);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ ILearningProviderRequest Select(Expression> selectExpression);
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ILearningProviderRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/ILearningProviderRequestBuilder.cs
new file mode 100644
index 00000000000..f283ce69c73
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/ILearningProviderRequestBuilder.cs
@@ -0,0 +1,41 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IEntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The interface ILearningProviderRequestBuilder.
+ ///
+ public partial interface ILearningProviderRequestBuilder : IEntityRequestBuilder
+ {
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ new ILearningProviderRequest Request();
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ new ILearningProviderRequest Request(IEnumerable
options);
+
+ ///
+ /// Gets the request builder for LearningContents.
+ ///
+ /// The .
+ ILearningProviderLearningContentsCollectionRequestBuilder LearningContents { get; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppPlatformUserCountsRequest.cs b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppPlatformUserCountsRequest.cs
index 7f290fa1143..bfee00eebf0 100644
--- a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppPlatformUserCountsRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppPlatformUserCountsRequest.cs
@@ -25,66 +25,20 @@ public partial interface IReportRootGetM365AppPlatformUserCountsRequest : IBaseR
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead);
///
/// Issues the GET request and returns a object.
///
/// The for the request.
/// The object of the request
- System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default);
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default);
-
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default);
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- IReportRootGetM365AppPlatformUserCountsRequest Expand(string value);
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- IReportRootGetM365AppPlatformUserCountsRequest Select(string value);
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserCountsRequest.cs b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserCountsRequest.cs
index 547a740e89c..f925d556851 100644
--- a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserCountsRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserCountsRequest.cs
@@ -25,66 +25,20 @@ public partial interface IReportRootGetM365AppUserCountsRequest : IBaseRequest
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead);
///
/// Issues the GET request and returns a object.
///
/// The for the request.
/// The object of the request
- System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default);
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default);
-
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default);
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- IReportRootGetM365AppUserCountsRequest Expand(string value);
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- IReportRootGetM365AppUserCountsRequest Select(string value);
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserDetailRequest.cs b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserDetailRequest.cs
index 4daea987292..861890f4059 100644
--- a/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserDetailRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/IReportRootGetM365AppUserDetailRequest.cs
@@ -25,66 +25,20 @@ public partial interface IReportRootGetM365AppUserDetailRequest : IBaseRequest
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead);
///
/// Issues the GET request and returns a object.
///
/// The for the request.
/// The object of the request
- System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+ System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default);
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default);
-
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default);
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default);
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- IReportRootGetM365AppUserDetailRequest Expand(string value);
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- IReportRootGetM365AppUserDetailRequest Select(string value);
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/ISecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/ISecurityRequestBuilder.cs
index 5390a3970b8..91583432f31 100644
--- a/src/Microsoft.Graph/Generated/requests/ISecurityRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/requests/ISecurityRequestBuilder.cs
@@ -85,6 +85,12 @@ public partial interface ISecurityRequestBuilder : IEntityRequestBuilder
/// The .
Microsoft.Graph.SecurityNamespace.ITriggerTypesRootRequestBuilder TriggerTypes { get; }
+ ///
+ /// Gets the request builder for ThreatSubmission.
+ ///
+ /// The .
+ Microsoft.Graph.SecurityNamespace.IThreatSubmissionRootRequestBuilder ThreatSubmission { get; }
+
///
/// Gets the request builder for Alerts.
///
diff --git a/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs
new file mode 100644
index 00000000000..fabdfce57a2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs
@@ -0,0 +1,30 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IMethodCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The interface IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage.
+ ///
+ [InterfaceConverter(typeof(InterfaceConverter))]
+ public interface IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage : ICollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest NextPageRequest { get; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequest.cs b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequest.cs
new file mode 100644
index 00000000000..55df3b07d2b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequest.cs
@@ -0,0 +1,118 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IMethodRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+
+ ///
+ /// The interface IUnifiedRoleDefinitionAssignedPrincipalsRequest.
+ ///
+ public partial interface IUnifiedRoleDefinitionAssignedPrincipalsRequest : IBaseRequest
+ {
+
+ ///
+ /// Issues the GET request.
+ ///
+ /// The for the request.
+ /// The task to await for async call.
+ System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Issues the GET request and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request
+ System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default);
+
+
+ ///
+ /// Issues the PATCH request.
+ ///
+ /// The DirectoryObject object set with the properties to update.
+ /// The for the request.
+ /// The task to await for async call.
+ System.Threading.Tasks.Task PatchAsync(DirectoryObject directoryobject,
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Issues the PATCH request and returns a object.
+ ///
+ /// The for the request.
+ /// The DirectoryObject object set with the properties to update.
+ /// The object of the request
+ System.Threading.Tasks.Task> PatchResponseAsync(DirectoryObject directoryobject, CancellationToken cancellationToken = default);
+
+
+ ///
+ /// Issues the PUT request.
+ ///
+ /// The DirectoryObject object to update.
+ /// The for the request.
+ /// The task to await for async call.
+ System.Threading.Tasks.Task PutAsync(DirectoryObject directoryobject,
+ CancellationToken cancellationToken = default);
+
+ ///
+ /// Issues the PUT request and returns a object.
+ ///
+ /// The for the request.
+ /// The DirectoryObject object set with the properties to update.
+ /// The object of the request
+ System.Threading.Tasks.Task> PutResponseAsync(DirectoryObject directoryobject, CancellationToken cancellationToken = default);
+
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Expand(string value);
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Select(string value);
+
+ ///
+ /// Adds the specified top value to the request.
+ ///
+ /// The top value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Top(int value);
+
+ ///
+ /// Adds the specified filter value to the request.
+ ///
+ /// The filter value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Filter(string value);
+
+ ///
+ /// Adds the specified skip value to the request.
+ ///
+ /// The skip value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Skip(int value);
+
+ ///
+ /// Adds the specified orderby value to the request.
+ ///
+ /// The orderby value.
+ /// The request object to send.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest OrderBy(string value);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs
new file mode 100644
index 00000000000..eff54d7c8c5
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs
@@ -0,0 +1,92 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: IMethodRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The interface IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.
+ ///
+ public partial interface IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder : IBaseRequestBuilder
+ {
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ IUnifiedRoleDefinitionAssignedPrincipalsRequest Request(IEnumerable
options = null);
+ ///
+ /// Gets the request builder for DirectoryObjectCheckMemberGroupsRequestBuilder.
+ ///
+ /// A groupIds parameter for the OData method call.
+ /// The .
+ IDirectoryObjectCheckMemberGroupsRequestBuilder CheckMemberGroups(
+ IEnumerable groupIds);
+ ///
+ /// Gets the request builder for DirectoryObjectCheckMemberObjectsRequestBuilder.
+ ///
+ /// A ids parameter for the OData method call.
+ /// The .
+ IDirectoryObjectCheckMemberObjectsRequestBuilder CheckMemberObjects(
+ IEnumerable ids);
+ ///
+ /// Gets the request builder for DirectoryObjectGetByIdsRequestBuilder.
+ ///
+ /// A ids parameter for the OData method call.
+ /// A types parameter for the OData method call.
+ /// The .
+ IDirectoryObjectGetByIdsRequestBuilder GetByIds(
+ IEnumerable ids,
+ IEnumerable types);
+ ///
+ /// Gets the request builder for DirectoryObjectGetMemberGroupsRequestBuilder.
+ ///
+ /// A securityEnabledOnly parameter for the OData method call.
+ /// The .
+ IDirectoryObjectGetMemberGroupsRequestBuilder GetMemberGroups(
+ bool? securityEnabledOnly);
+ ///
+ /// Gets the request builder for DirectoryObjectGetMemberObjectsRequestBuilder.
+ ///
+ /// A securityEnabledOnly parameter for the OData method call.
+ /// The .
+ IDirectoryObjectGetMemberObjectsRequestBuilder GetMemberObjects(
+ bool? securityEnabledOnly);
+ ///
+ /// Gets the request builder for DirectoryObjectGetUserOwnedObjectsRequestBuilder.
+ ///
+ /// A userId parameter for the OData method call.
+ /// A type parameter for the OData method call.
+ /// The .
+ IDirectoryObjectGetUserOwnedObjectsRequestBuilder GetUserOwnedObjects(
+ string userId,
+ string type);
+ ///
+ /// Gets the request builder for DirectoryObjectRestoreRequestBuilder.
+ ///
+ /// The .
+ IDirectoryObjectRestoreRequestBuilder Restore();
+ ///
+ /// Gets the request builder for DirectoryObjectValidatePropertiesRequestBuilder.
+ ///
+ /// A entityType parameter for the OData method call.
+ /// A displayName parameter for the OData method call.
+ /// A mailNickname parameter for the OData method call.
+ /// A onBehalfOfUserId parameter for the OData method call.
+ /// The .
+ IDirectoryObjectValidatePropertiesRequestBuilder ValidateProperties(
+ string entityType,
+ string displayName,
+ string mailNickname,
+ Guid? onBehalfOfUserId);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionRequestBuilder.cs
index 0072c401db7..f6739ed8b6b 100644
--- a/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/requests/IUnifiedRoleDefinitionRequestBuilder.cs
@@ -37,5 +37,14 @@ public partial interface IUnifiedRoleDefinitionRequestBuilder : IEntityRequestBu
/// The .
IUnifiedRoleDefinitionInheritsPermissionsFromCollectionRequestBuilder InheritsPermissionsFrom { get; }
+ ///
+ /// Gets the request builder for UnifiedRoleDefinitionAssignedPrincipals.
+ ///
+ /// The .
+ IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder AssignedPrincipals(
+ bool transitive,
+ string directoryScopeType,
+ string directoryScopeId);
+
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningContentRequest.cs b/src/Microsoft.Graph/Generated/requests/LearningContentRequest.cs
new file mode 100644
index 00000000000..57284c423e7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningContentRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type LearningContentRequest.
+ ///
+ public partial class LearningContentRequest : BaseRequest, ILearningContentRequest
+ {
+ ///
+ /// Constructs a new LearningContentRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public LearningContentRequest(
+ string requestUrl,
+ IBaseClient client,
+ IEnumerable
options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified LearningContent using POST.
+ ///
+ /// The LearningContent to create.
+ /// The for the request.
+ /// The created LearningContent.
+ public async System.Threading.Tasks.Task CreateAsync(LearningContent learningContentToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(learningContentToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified LearningContent using POST and returns a object.
+ ///
+ /// The LearningContent to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(LearningContent learningContentToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(learningContentToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified LearningContent.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified LearningContent and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified LearningContent.
+ ///
+ /// The for the request.
+ /// The LearningContent.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified LearningContent and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified LearningContent using PATCH.
+ ///
+ /// The LearningContent to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated LearningContent.
+ public async System.Threading.Tasks.Task UpdateAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(learningContentToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified LearningContent using PATCH and returns a object.
+ ///
+ /// The LearningContent to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(learningContentToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified LearningContent using PUT.
+ ///
+ /// The LearningContent object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(learningContentToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified LearningContent using PUT and returns a object.
+ ///
+ /// The LearningContent object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(LearningContent learningContentToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(learningContentToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public ILearningContentRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public ILearningContentRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public ILearningContentRequest Select(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public ILearningContentRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(LearningContent learningContentToInitialize)
+ {
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/LearningContentRequestBuilder.cs
new file mode 100644
index 00000000000..dc329c8c2f3
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningContentRequestBuilder.cs
@@ -0,0 +1,54 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type LearningContentRequestBuilder.
+ ///
+ public partial class LearningContentRequestBuilder : BaseRequestBuilder, ILearningContentRequestBuilder
+ {
+
+ ///
+ /// Constructs a new LearningContentRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public LearningContentRequestBuilder(
+ string requestUrl,
+ IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public ILearningContentRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public ILearningContentRequest Request(IEnumerable
options)
+ {
+ return new LearningContentRequest(this.RequestUrl, this.Client, options);
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionPage.cs
new file mode 100644
index 00000000000..418bcd1ead4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionPage.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+
+ ///
+ /// The type LearningProviderLearningContentsCollectionPage.
+ ///
+ public partial class LearningProviderLearningContentsCollectionPage : CollectionPage, ILearningProviderLearningContentsCollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ public ILearningProviderLearningContentsCollectionRequest NextPageRequest { get; private set; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
+ {
+ if (!string.IsNullOrEmpty(nextPageLinkString))
+ {
+ this.NextPageRequest = new LearningProviderLearningContentsCollectionRequest(
+ nextPageLinkString,
+ client,
+ null);
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequest.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequest.cs
new file mode 100644
index 00000000000..72d00dbea8a
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequest.cs
@@ -0,0 +1,208 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type LearningProviderLearningContentsCollectionRequest.
+ ///
+ public partial class LearningProviderLearningContentsCollectionRequest : BaseRequest, ILearningProviderLearningContentsCollectionRequest
+ {
+ ///
+ /// Constructs a new LearningProviderLearningContentsCollectionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public LearningProviderLearningContentsCollectionRequest(
+ string requestUrl,
+ IBaseClient client,
+ IEnumerable
options)
+ : base(requestUrl, client, options)
+ {
+ }
+ ///
+ /// Adds the specified LearningContent to the collection via POST.
+ ///
+ /// The LearningContent to add.
+ /// The for the request.
+ /// The created LearningContent.
+ public System.Threading.Tasks.Task AddAsync(LearningContent learningContent, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsync(learningContent, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified LearningContent to the collection via POST and returns a object of the request.
+ ///
+ /// The LearningContent to add.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> AddResponseAsync(LearningContent learningContent, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(learningContent, cancellationToken);
+ }
+
+
+ ///
+ /// Gets the collection page.
+ ///
+ /// The for the request.
+ /// The collection page.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ if (response?.Value?.CurrentPage != null)
+ {
+ response.Value.InitializeNextPageRequest(this.Client, response.NextLink);
+ // Copy the additional data collection to the page itself so that information is not lost
+ response.Value.AdditionalData = response.AdditionalData;
+ return response.Value;
+ }
+
+ return null;
+ }
+
+ ///
+ /// Gets the collection page and returns a object.
+ ///
+ /// The for the request.
+ /// The object.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Select(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified top value to the request.
+ ///
+ /// The top value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Top(int value)
+ {
+ this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
+ return this;
+ }
+
+ ///
+ /// Adds the specified filter value to the request.
+ ///
+ /// The filter value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Filter(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$filter", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified skip value to the request.
+ ///
+ /// The skip value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest Skip(int value)
+ {
+ this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
+ return this;
+ }
+
+ ///
+ /// Adds the specified orderby value to the request.
+ ///
+ /// The orderby value.
+ /// The request object to send.
+ public ILearningProviderLearningContentsCollectionRequest OrderBy(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$orderby", value));
+ return this;
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequestBuilder.cs
new file mode 100644
index 00000000000..e32e9c69ad4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionRequestBuilder.cs
@@ -0,0 +1,65 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionRequestBuilder.cs.tt
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+
+ ///
+ /// The type LearningProviderLearningContentsCollectionRequestBuilder.
+ ///
+ public partial class LearningProviderLearningContentsCollectionRequestBuilder : BaseRequestBuilder, ILearningProviderLearningContentsCollectionRequestBuilder
+ {
+ ///
+ /// Constructs a new LearningProviderLearningContentsCollectionRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public LearningProviderLearningContentsCollectionRequestBuilder(
+ string requestUrl,
+ IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public ILearningProviderLearningContentsCollectionRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public ILearningProviderLearningContentsCollectionRequest Request(IEnumerable
options)
+ {
+ return new LearningProviderLearningContentsCollectionRequest(this.RequestUrl, this.Client, options);
+ }
+
+ ///
+ /// Gets an for the specified LearningProviderLearningContent.
+ ///
+ /// The ID for the LearningProviderLearningContent.
+ /// The .
+ public ILearningContentRequestBuilder this[string id]
+ {
+ get
+ {
+ return new LearningContentRequestBuilder(this.AppendSegmentToRequestUrl(id), this.Client);
+ }
+ }
+
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionResponse.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionResponse.cs
new file mode 100644
index 00000000000..b17d24ffc87
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderLearningContentsCollectionResponse.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityCollectionResponse.cs.tt
+namespace Microsoft.Graph
+{
+ using System.Collections.Generic;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type LearningProviderLearningContentsCollectionResponse.
+ ///
+ public class LearningProviderLearningContentsCollectionResponse
+ {
+ ///
+ /// Gets or sets the value.
+ ///
+ [JsonPropertyName("value")]
+ public ILearningProviderLearningContentsCollectionPage Value { get; set; }
+
+ ///
+ /// Gets or sets the nextLink string value.
+ ///
+ [JsonPropertyName("@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string NextLink { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderRequest.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderRequest.cs
new file mode 100644
index 00000000000..e641ce7a5ae
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderRequest.cs
@@ -0,0 +1,261 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type LearningProviderRequest.
+ ///
+ public partial class LearningProviderRequest : BaseRequest, ILearningProviderRequest
+ {
+ ///
+ /// Constructs a new LearningProviderRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public LearningProviderRequest(
+ string requestUrl,
+ IBaseClient client,
+ IEnumerable
options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified LearningProvider using POST.
+ ///
+ /// The LearningProvider to create.
+ /// The for the request.
+ /// The created LearningProvider.
+ public async System.Threading.Tasks.Task CreateAsync(LearningProvider learningProviderToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(learningProviderToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified LearningProvider using POST and returns a object.
+ ///
+ /// The LearningProvider to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(LearningProvider learningProviderToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(learningProviderToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified LearningProvider.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified LearningProvider and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified LearningProvider.
+ ///
+ /// The for the request.
+ /// The LearningProvider.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified LearningProvider and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified LearningProvider using PATCH.
+ ///
+ /// The LearningProvider to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated LearningProvider.
+ public async System.Threading.Tasks.Task UpdateAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(learningProviderToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified LearningProvider using PATCH and returns a object.
+ ///
+ /// The LearningProvider to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(learningProviderToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified LearningProvider using PUT.
+ ///
+ /// The LearningProvider object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(learningProviderToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified LearningProvider using PUT and returns a object.
+ ///
+ /// The LearningProvider object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(LearningProvider learningProviderToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(learningProviderToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public ILearningProviderRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public ILearningProviderRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public ILearningProviderRequest Select(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public ILearningProviderRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(LearningProvider learningProviderToInitialize)
+ {
+
+ if (learningProviderToInitialize != null)
+ {
+ if (learningProviderToInitialize.LearningContents != null && learningProviderToInitialize.LearningContents.CurrentPage != null)
+ {
+ learningProviderToInitialize.LearningContents.InitializeNextPageRequest(this.Client, learningProviderToInitialize.LearningContentsNextLink);
+ // Copy the additional data collection to the page itself so that information is not lost
+ learningProviderToInitialize.LearningContents.AdditionalData = learningProviderToInitialize.AdditionalData;
+ }
+
+ }
+
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/LearningProviderRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/LearningProviderRequestBuilder.cs
new file mode 100644
index 00000000000..98872da9f55
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/LearningProviderRequestBuilder.cs
@@ -0,0 +1,66 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type LearningProviderRequestBuilder.
+ ///
+ public partial class LearningProviderRequestBuilder : EntityRequestBuilder, ILearningProviderRequestBuilder
+ {
+
+ ///
+ /// Constructs a new LearningProviderRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public LearningProviderRequestBuilder(
+ string requestUrl,
+ IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public new ILearningProviderRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public new ILearningProviderRequest Request(IEnumerable
options)
+ {
+ return new LearningProviderRequest(this.RequestUrl, this.Client, options);
+ }
+
+ ///
+ /// Gets the request builder for LearningContents.
+ ///
+ /// The .
+ public ILearningProviderLearningContentsCollectionRequestBuilder LearningContents
+ {
+ get
+ {
+ return new LearningProviderLearningContentsCollectionRequestBuilder(this.AppendSegmentToRequestUrl("learningContents"), this.Client);
+ }
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppPlatformUserCountsRequest.cs b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppPlatformUserCountsRequest.cs
index 881a003a99d..609ab982d91 100644
--- a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppPlatformUserCountsRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppPlatformUserCountsRequest.cs
@@ -35,12 +35,14 @@ public ReportRootGetM365AppPlatformUserCountsRequest(
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- public System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead)
{
this.Method = HttpMethods.GET;
- return this.SendAsync(null, cancellationToken);
+ return this.SendStreamRequestAsync(null, cancellationToken, httpCompletionOption);
}
///
@@ -48,83 +50,11 @@ public System.Threading.Tasks.Task GetAsync(
///
/// The for the request.
/// The object of the request
- public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.GET;
- return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
}
-
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- public IReportRootGetM365AppPlatformUserCountsRequest Expand(string value)
- {
- this.QueryOptions.Add(new QueryOption("$expand", value));
- return this;
- }
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- public IReportRootGetM365AppPlatformUserCountsRequest Select(string value)
- {
- this.QueryOptions.Add(new QueryOption("$select", value));
- return this;
- }
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserCountsRequest.cs b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserCountsRequest.cs
index 6733c6df96d..2a5f780202d 100644
--- a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserCountsRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserCountsRequest.cs
@@ -35,12 +35,14 @@ public ReportRootGetM365AppUserCountsRequest(
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- public System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead)
{
this.Method = HttpMethods.GET;
- return this.SendAsync(null, cancellationToken);
+ return this.SendStreamRequestAsync(null, cancellationToken, httpCompletionOption);
}
///
@@ -48,83 +50,11 @@ public System.Threading.Tasks.Task GetAsync(
///
/// The for the request.
/// The object of the request
- public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.GET;
- return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
}
-
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- public IReportRootGetM365AppUserCountsRequest Expand(string value)
- {
- this.QueryOptions.Add(new QueryOption("$expand", value));
- return this;
- }
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- public IReportRootGetM365AppUserCountsRequest Select(string value)
- {
- this.QueryOptions.Add(new QueryOption("$select", value));
- return this;
- }
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserDetailRequest.cs b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserDetailRequest.cs
index b619710651c..6e0810f2094 100644
--- a/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserDetailRequest.cs
+++ b/src/Microsoft.Graph/Generated/requests/ReportRootGetM365AppUserDetailRequest.cs
@@ -35,12 +35,14 @@ public ReportRootGetM365AppUserDetailRequest(
/// Issues the GET request.
///
/// The for the request.
+ /// The for the request.
/// The task to await for async call.
- public System.Threading.Tasks.Task GetAsync(
- CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default,
+ HttpCompletionOption httpCompletionOption = HttpCompletionOption.ResponseContentRead)
{
this.Method = HttpMethods.GET;
- return this.SendAsync(null, cancellationToken);
+ return this.SendStreamRequestAsync(null, cancellationToken, httpCompletionOption);
}
///
@@ -48,83 +50,11 @@ public System.Threading.Tasks.Task GetAsync(
///
/// The for the request.
/// The object of the request
- public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ public System.Threading.Tasks.Task GetResponseAsync(CancellationToken cancellationToken = default)
{
this.Method = HttpMethods.GET;
- return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
}
-
- ///
- /// Issues the PATCH request.
- ///
- /// The Report object set with the properties to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PatchAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PATCH request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PatchResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PATCH;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request.
- ///
- /// The Report object to update.
- /// The for the request.
- /// The task to await for async call.
- public System.Threading.Tasks.Task PutAsync(Report report,
- CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsync(report, cancellationToken);
- }
-
- ///
- /// Issues the PUT request and returns a object.
- ///
- /// The for the request.
- /// The Report object set with the properties to update.
- /// The object of the request
- public System.Threading.Tasks.Task> PutResponseAsync(Report report, CancellationToken cancellationToken = default)
- {
- this.Method = HttpMethods.PUT;
- return this.SendAsyncWithGraphResponse(report, cancellationToken);
- }
-
- ///
- /// Adds the specified expand value to the request.
- ///
- /// The expand value.
- /// The request object to send.
- public IReportRootGetM365AppUserDetailRequest Expand(string value)
- {
- this.QueryOptions.Add(new QueryOption("$expand", value));
- return this;
- }
-
- ///
- /// Adds the specified select value to the request.
- ///
- /// The select value.
- /// The request object to send.
- public IReportRootGetM365AppUserDetailRequest Select(string value)
- {
- this.QueryOptions.Add(new QueryOption("$select", value));
- return this;
- }
}
}
diff --git a/src/Microsoft.Graph/Generated/requests/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/SecurityRequestBuilder.cs
index 75522cb96b0..85866c56f71 100644
--- a/src/Microsoft.Graph/Generated/requests/SecurityRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/requests/SecurityRequestBuilder.cs
@@ -158,6 +158,18 @@ public Microsoft.Graph.SecurityNamespace.ITriggerTypesRootRequestBuilder Trigger
}
}
+ ///
+ /// Gets the request builder for ThreatSubmission.
+ ///
+ /// The .
+ public Microsoft.Graph.SecurityNamespace.IThreatSubmissionRootRequestBuilder ThreatSubmission
+ {
+ get
+ {
+ return new Microsoft.Graph.SecurityNamespace.ThreatSubmissionRootRequestBuilder(this.AppendSegmentToRequestUrl("threatSubmission"), this.Client);
+ }
+ }
+
///
/// Gets the request builder for Alerts.
///
diff --git a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs
new file mode 100644
index 00000000000..3b25ebbfe1a
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionPage.cs
@@ -0,0 +1,36 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: MethodCollectionPage.cs.tt
+
+namespace Microsoft.Graph
+{
+ ///
+ /// The type UnifiedRoleDefinitionAssignedPrincipalsCollectionPage.
+ ///
+ public partial class UnifiedRoleDefinitionAssignedPrincipalsCollectionPage : CollectionPage, IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage
+ {
+ ///
+ /// Gets the next page instance.
+ ///
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest NextPageRequest { get; private set; }
+
+ ///
+ /// Initializes the NextPageRequest property.
+ ///
+ public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString)
+ {
+ if (!string.IsNullOrEmpty(nextPageLinkString))
+ {
+ this.NextPageRequest = new UnifiedRoleDefinitionAssignedPrincipalsRequest(
+ nextPageLinkString,
+ client,
+ null);
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionResponse.cs b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionResponse.cs
new file mode 100644
index 00000000000..beed25f86eb
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsCollectionResponse.cs
@@ -0,0 +1,39 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: MethodCollectionResponse.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System.Collections.Generic;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type UnifiedRoleDefinitionAssignedPrincipalsCollectionResponse.
+ ///
+ public class UnifiedRoleDefinitionAssignedPrincipalsCollectionResponse
+ {
+ ///
+ /// Gets or sets the value.
+ ///
+ [JsonPropertyName("value")]
+ public IUnifiedRoleDefinitionAssignedPrincipalsCollectionPage Value { get; set; }
+
+ ///
+ /// Gets or sets the nextLink string value.
+ ///
+ [JsonPropertyName("@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string NextLink { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequest.cs b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequest.cs
new file mode 100644
index 00000000000..9432dc70eee
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequest.cs
@@ -0,0 +1,201 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: MethodRequest.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+
+ ///
+ /// The type UnifiedRoleDefinitionAssignedPrincipalsRequest.
+ ///
+ public partial class UnifiedRoleDefinitionAssignedPrincipalsRequest : BaseRequest, IUnifiedRoleDefinitionAssignedPrincipalsRequest
+ {
+ ///
+ /// Constructs a new UnifiedRoleDefinitionAssignedPrincipalsRequest.
+ ///
+ public UnifiedRoleDefinitionAssignedPrincipalsRequest(
+ string requestUrl,
+ IBaseClient client,
+ IEnumerable
options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Issues the GET request.
+ ///
+ /// The for the request.
+ /// The task to await for async call.
+ public async System.Threading.Tasks.Task GetAsync(
+ CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var response = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ if (response?.Value?.CurrentPage != null)
+ {
+ response.Value.InitializeNextPageRequest(this.Client, response.NextLink);
+ // Copy the additional data collection to the page itself so that information is not lost
+ response.Value.AdditionalData = response.AdditionalData;
+ return response.Value;
+ }
+
+ return null;
+ }
+
+ ///
+ /// Issues the GET request and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+
+ ///
+ /// Issues the PATCH request.
+ ///
+ /// The DirectoryObject object set with the properties to update.
+ /// The for the request.
+ /// The task to await for async call.
+ public async System.Threading.Tasks.Task PatchAsync(DirectoryObject directoryobject,
+ CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.PATCH;
+ var response = await this.SendAsync(directoryobject, cancellationToken).ConfigureAwait(false);
+ if (response?.Value?.CurrentPage != null)
+ {
+ response.Value.InitializeNextPageRequest(this.Client, response.NextLink);
+ // Copy the additional data collection to the page itself so that information is not lost
+ response.Value.AdditionalData = response.AdditionalData;
+ return response.Value;
+ }
+
+ return null;
+ }
+
+ ///
+ /// Issues the PATCH request and returns a object.
+ ///
+ /// The for the request.
+ /// The DirectoryObject object set with the properties to update.
+ /// The object of the request
+ public System.Threading.Tasks.Task> PatchResponseAsync(DirectoryObject directoryobject, CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(directoryobject, cancellationToken);
+ }
+
+ ///
+ /// Issues the PUT request.
+ ///
+ /// The DirectoryObject object to update.
+ /// The for the request.
+ /// The task to await for async call.
+ public async System.Threading.Tasks.Task PutAsync(DirectoryObject directoryobject,
+ CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.PUT;
+ var response = await this.SendAsync(directoryobject, cancellationToken).ConfigureAwait(false);
+ if (response?.Value?.CurrentPage != null)
+ {
+ response.Value.InitializeNextPageRequest(this.Client, response.NextLink);
+ // Copy the additional data collection to the page itself so that information is not lost
+ response.Value.AdditionalData = response.AdditionalData;
+ return response.Value;
+ }
+
+ return null;
+ }
+
+ ///
+ /// Issues the PUT request and returns a object.
+ ///
+ /// The for the request.
+ /// The DirectoryObject object set with the properties to update.
+ /// The object of the request
+ public System.Threading.Tasks.Task> PutResponseAsync(DirectoryObject directoryobject, CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(directoryobject, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest Select(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified top value to the request.
+ ///
+ /// The top value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest Top(int value)
+ {
+ this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
+ return this;
+ }
+
+ ///
+ /// Adds the specified filter value to the request.
+ ///
+ /// The filter value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest Filter(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$filter", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified skip value to the request.
+ ///
+ /// The skip value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest Skip(int value)
+ {
+ this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
+ return this;
+ }
+
+ ///
+ /// Adds the specified orderby value to the request.
+ ///
+ /// The orderby value.
+ /// The request object to send.
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequest OrderBy(string value)
+ {
+ this.QueryOptions.Add(new QueryOption("$orderby", value));
+ return this;
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs
new file mode 100644
index 00000000000..929e97296d2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.cs
@@ -0,0 +1,172 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: MethodRequestBuilder.cs.tt
+
+namespace Microsoft.Graph
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder.
+ ///
+ public partial class UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder : BaseFunctionMethodRequestBuilder, IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder
+ {
+ ///
+ /// Constructs a new .
+ ///
+ /// The URL for the request.
+ /// The for handling requests.
+ /// A transitive parameter for the OData method call.
+ /// A directoryScopeType parameter for the OData method call.
+ /// A directoryScopeId parameter for the OData method call.
+ public UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder(
+ string requestUrl,
+ IBaseClient client,
+ bool transitive,
+ string directoryScopeType,
+ string directoryScopeId)
+ : base(requestUrl, client)
+ {
+ this.SetParameter("transitive", transitive, false);
+ this.SetParameter("directoryScopeType", directoryScopeType, false);
+ this.SetParameter("directoryScopeId", directoryScopeId, false);
+ this.SetFunctionParameters();
+ }
+
+ ///
+ /// A method used by the base class to construct a request class instance.
+ ///
+ /// The request URL to
+ /// The query and header options for the request.
+ /// An instance of a specific request class.
+ protected override IUnifiedRoleDefinitionAssignedPrincipalsRequest CreateRequest(string functionUrl, IEnumerable
options)
+ {
+ var request = new UnifiedRoleDefinitionAssignedPrincipalsRequest(functionUrl, this.Client, options);
+
+ return request;
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectCheckMemberGroupsRequestBuilder.
+ ///
+ /// A groupIds parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectCheckMemberGroupsRequestBuilder CheckMemberGroups(
+ IEnumerable groupIds)
+ {
+ return new DirectoryObjectCheckMemberGroupsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.checkMemberGroups"),
+ this.Client,
+ groupIds);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectCheckMemberObjectsRequestBuilder.
+ ///
+ /// A ids parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectCheckMemberObjectsRequestBuilder CheckMemberObjects(
+ IEnumerable ids)
+ {
+ return new DirectoryObjectCheckMemberObjectsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.checkMemberObjects"),
+ this.Client,
+ ids);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectGetByIdsRequestBuilder.
+ ///
+ /// A ids parameter for the OData method call.
+ /// A types parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectGetByIdsRequestBuilder GetByIds(
+ IEnumerable ids,
+ IEnumerable types)
+ {
+ return new DirectoryObjectGetByIdsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.getByIds"),
+ this.Client,
+ ids,
+ types);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectGetMemberGroupsRequestBuilder.
+ ///
+ /// A securityEnabledOnly parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectGetMemberGroupsRequestBuilder GetMemberGroups(
+ bool? securityEnabledOnly)
+ {
+ return new DirectoryObjectGetMemberGroupsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.getMemberGroups"),
+ this.Client,
+ securityEnabledOnly);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectGetMemberObjectsRequestBuilder.
+ ///
+ /// A securityEnabledOnly parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectGetMemberObjectsRequestBuilder GetMemberObjects(
+ bool? securityEnabledOnly)
+ {
+ return new DirectoryObjectGetMemberObjectsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.getMemberObjects"),
+ this.Client,
+ securityEnabledOnly);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectGetUserOwnedObjectsRequestBuilder.
+ ///
+ /// A userId parameter for the OData method call.
+ /// A type parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectGetUserOwnedObjectsRequestBuilder GetUserOwnedObjects(
+ string userId,
+ string type)
+ {
+ return new DirectoryObjectGetUserOwnedObjectsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.getUserOwnedObjects"),
+ this.Client,
+ userId,
+ type);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectRestoreRequestBuilder.
+ ///
+ /// The .
+ public IDirectoryObjectRestoreRequestBuilder Restore()
+ {
+ return new DirectoryObjectRestoreRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.restore"),
+ this.Client);
+ }
+ ///
+ /// Gets the request builder for DirectoryObjectValidatePropertiesRequestBuilder.
+ ///
+ /// A entityType parameter for the OData method call.
+ /// A displayName parameter for the OData method call.
+ /// A mailNickname parameter for the OData method call.
+ /// A onBehalfOfUserId parameter for the OData method call.
+ /// The .
+ public IDirectoryObjectValidatePropertiesRequestBuilder ValidateProperties(
+ string entityType,
+ string displayName,
+ string mailNickname,
+ Guid? onBehalfOfUserId)
+ {
+ return new DirectoryObjectValidatePropertiesRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.validateProperties"),
+ this.Client,
+ entityType,
+ displayName,
+ mailNickname,
+ onBehalfOfUserId);
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionRequestBuilder.cs b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionRequestBuilder.cs
index ff223b7f11b..e9cfebee94c 100644
--- a/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/requests/UnifiedRoleDefinitionRequestBuilder.cs
@@ -62,5 +62,22 @@ public IUnifiedRoleDefinitionInheritsPermissionsFromCollectionRequestBuilder Inh
}
}
+ ///
+ /// Gets the request builder for UnifiedRoleDefinitionAssignedPrincipals.
+ ///
+ /// The .
+ public IUnifiedRoleDefinitionAssignedPrincipalsRequestBuilder AssignedPrincipals(
+ bool transitive,
+ string directoryScopeType,
+ string directoryScopeId)
+ {
+ return new UnifiedRoleDefinitionAssignedPrincipalsRequestBuilder(
+ this.AppendSegmentToRequestUrl("microsoft.graph.assignedPrincipals"),
+ this.Client,
+ transitive,
+ directoryScopeType,
+ directoryScopeId);
+ }
+
}
}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/AttackSimulationInfo.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/AttackSimulationInfo.cs
new file mode 100644
index 00000000000..992db0aa5b9
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/AttackSimulationInfo.cs
@@ -0,0 +1,65 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type AttackSimulationInfo.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class AttackSimulationInfo
+ {
+
+ ///
+ /// Gets or sets attackSimDateTime.
+ /// Specifies the date time of the attack simulation.
+ ///
+ [JsonPropertyName("attackSimDateTime")]
+ public DateTimeOffset? AttackSimDateTime { get; set; }
+
+ ///
+ /// Gets or sets attackSimDurationTime.
+ /// Specifies the duration (in time) for the attack simulation
+ ///
+ [JsonPropertyName("attackSimDurationTime")]
+ public Microsoft.Graph.Duration AttackSimDurationTime { get; set; }
+
+ ///
+ /// Gets or sets attackSimId.
+ /// Specifies the activity id for the attack simulation.
+ ///
+ [JsonPropertyName("attackSimId")]
+ public Guid? AttackSimId { get; set; }
+
+ ///
+ /// Gets or sets attackSimUserId.
+ /// Specifies the user id of the user who got the attack simulation email
+ ///
+ [JsonPropertyName("attackSimUserId")]
+ public string AttackSimUserId { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryCustodian.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryCustodian.cs
index adfc9678b7c..51384b9c7ba 100644
--- a/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryCustodian.cs
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryCustodian.cs
@@ -79,7 +79,7 @@ public EdiscoveryCustodian()
///
/// Gets or sets user sources.
- /// Data source entity for a the custodian. This is the container for a custodian's mailbox and OneDrive for Business site.
+ /// Data source entity for a custodian. This is the container for a custodian's mailbox and OneDrive for Business site.
///
[JsonPropertyName("userSources")]
public IEdiscoveryCustodianUserSourcesCollectionPage UserSources { get; set; }
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryHoldPolicy.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryHoldPolicy.cs
index 1a0cd14f213..8d2b9a1edbe 100644
--- a/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryHoldPolicy.cs
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EdiscoveryHoldPolicy.cs
@@ -51,6 +51,7 @@ public EdiscoveryHoldPolicy()
///
/// Gets or sets site sources.
+ /// Data sources that represent SharePoint sites.
///
[JsonPropertyName("siteSources")]
public IEdiscoveryHoldPolicySiteSourcesCollectionPage SiteSources { get; set; }
@@ -64,6 +65,7 @@ public EdiscoveryHoldPolicy()
///
/// Gets or sets user sources.
+ /// Data sources that represent Exchange mailboxes.
///
[JsonPropertyName("userSources")]
public IEdiscoveryHoldPolicyUserSourcesCollectionPage UserSources { get; set; }
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EmailContentThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailContentThreatSubmission.cs
new file mode 100644
index 00000000000..ba48587ed63
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailContentThreatSubmission.cs
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Email Content Threat Submission.
+ ///
+ public partial class EmailContentThreatSubmission : EmailThreatSubmission
+ {
+
+ ///
+ /// The EmailContentThreatSubmission constructor
+ ///
+ public EmailContentThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.emailContentThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets file content.
+ /// Base64 encoded file content.
+ ///
+ [JsonPropertyName("fileContent")]
+ public string FileContent { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmission.cs
new file mode 100644
index 00000000000..fa19bf77750
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmission.cs
@@ -0,0 +1,97 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Email Threat Submission.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class EmailThreatSubmission : ThreatSubmission
+ {
+
+ ///
+ /// The internal EmailThreatSubmission constructor
+ ///
+ protected internal EmailThreatSubmission()
+ {
+ // Don't allow initialization of abstract entity types
+ }
+
+ ///
+ /// Gets or sets attack simulation info.
+ /// If the email is phishing simulation, this field will not be null.
+ ///
+ [JsonPropertyName("attackSimulationInfo")]
+ public AttackSimulationInfo AttackSimulationInfo { get; set; }
+
+ ///
+ /// Gets or sets internet message id.
+ /// Specifies the internet message id of the email being submitted. This information is present in the email header.
+ ///
+ [JsonPropertyName("internetMessageId")]
+ public string InternetMessageId { get; set; }
+
+ ///
+ /// Gets or sets original category.
+ /// The original category of the submission. The possible values are: notJunk, spam, phishing, malware and unkownFutureValue.
+ ///
+ [JsonPropertyName("originalCategory")]
+ public SubmissionCategory? OriginalCategory { get; set; }
+
+ ///
+ /// Gets or sets received date time.
+ /// Specifies the date and time stamp when the email was received.
+ ///
+ [JsonPropertyName("receivedDateTime")]
+ public DateTimeOffset? ReceivedDateTime { get; set; }
+
+ ///
+ /// Gets or sets recipient email address.
+ /// Specifies the email address (in smtp format) of the recipient who received the email.
+ ///
+ [JsonPropertyName("recipientEmailAddress")]
+ public string RecipientEmailAddress { get; set; }
+
+ ///
+ /// Gets or sets sender.
+ /// Specifies the email address of the sender.
+ ///
+ [JsonPropertyName("sender")]
+ public string Sender { get; set; }
+
+ ///
+ /// Gets or sets sender ip.
+ /// Specifies the IP address of the sender.
+ ///
+ [JsonPropertyName("senderIP")]
+ public string SenderIP { get; set; }
+
+ ///
+ /// Gets or sets subject.
+ /// Specifies the subject of the email .
+ ///
+ [JsonPropertyName("subject")]
+ public string Subject { get; set; }
+
+ ///
+ /// Gets or sets tenant allow or block list action.
+ /// It is used to automatically add allows for the components such as URL, file, sender; which are deemed bad by Microsoft so that similar messages in the future can be allowed.
+ ///
+ [JsonPropertyName("tenantAllowOrBlockListAction")]
+ public TenantAllowOrBlockListAction TenantAllowOrBlockListAction { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmissionPolicy.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmissionPolicy.cs
new file mode 100644
index 00000000000..91a9f4d73c7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailThreatSubmissionPolicy.cs
@@ -0,0 +1,116 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Email Threat Submission Policy.
+ ///
+ public partial class EmailThreatSubmissionPolicy : Microsoft.Graph.Entity
+ {
+
+ ///
+ /// Gets or sets customized notification sender email address.
+ /// Specifies the email address of the sender from which email notifications will be sent to end users to inform them whether an email is spam, phish or clean. The default value is null. Optional for creation.
+ ///
+ [JsonPropertyName("customizedNotificationSenderEmailAddress")]
+ public string CustomizedNotificationSenderEmailAddress { get; set; }
+
+ ///
+ /// Gets or sets customized report recipient email address.
+ /// Specifies the destination where the reported messages from end users will land whenever they report something as phish, junk or not junk. The default value is null. Optional for creation.
+ ///
+ [JsonPropertyName("customizedReportRecipientEmailAddress")]
+ public string CustomizedReportRecipientEmailAddress { get; set; }
+
+ ///
+ /// Gets or sets is always report enabled for users.
+ /// Indicates whether end users can report a message as spam, phish or junk directly without a confirmation(popup). The default value is true. Optional for creation.
+ ///
+ [JsonPropertyName("isAlwaysReportEnabledForUsers")]
+ public bool? IsAlwaysReportEnabledForUsers { get; set; }
+
+ ///
+ /// Gets or sets is ask me enabled for users.
+ /// Indicates whether end users can confirm using a popup before reporting messages as spam, phish or not junk. The default value is true. Optional for creation.
+ ///
+ [JsonPropertyName("isAskMeEnabledForUsers")]
+ public bool? IsAskMeEnabledForUsers { get; set; }
+
+ ///
+ /// Gets or sets is customized message enabled.
+ /// Indicates whether the email notifications sent to end users to inform them if an email is phish, spam or junk is customized or not. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isCustomizedMessageEnabled")]
+ public bool? IsCustomizedMessageEnabled { get; set; }
+
+ ///
+ /// Gets or sets is customized message enabled for phishing.
+ /// If enabled, customized message only shows when email is reported as phishing. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isCustomizedMessageEnabledForPhishing")]
+ public bool? IsCustomizedMessageEnabledForPhishing { get; set; }
+
+ ///
+ /// Gets or sets is customized notification sender enabled.
+ /// Indicates whether to use the sender email address set using customizedNotificationSenderEmailAddress for sending email notifications to end users. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isCustomizedNotificationSenderEnabled")]
+ public bool? IsCustomizedNotificationSenderEnabled { get; set; }
+
+ ///
+ /// Gets or sets is never report enabled for users.
+ /// Indicates whether end users can simply move the message from one folder to another based on the action of spam, phish or not junk without actually reporting it. The default value is true. Optional for creation.
+ ///
+ [JsonPropertyName("isNeverReportEnabledForUsers")]
+ public bool? IsNeverReportEnabledForUsers { get; set; }
+
+ ///
+ /// Gets or sets is organization branding enabled.
+ /// Indicates whether the branding logo should be used in the email notifications sent to end users. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isOrganizationBrandingEnabled")]
+ public bool? IsOrganizationBrandingEnabled { get; set; }
+
+ ///
+ /// Gets or sets is report from quarantine enabled.
+ /// Indicates whether end users can submit from the quarantine page. The default value is true. Optional for creation.
+ ///
+ [JsonPropertyName("isReportFromQuarantineEnabled")]
+ public bool? IsReportFromQuarantineEnabled { get; set; }
+
+ ///
+ /// Gets or sets is report to customized email address enabled.
+ /// Indicates whether emails reported by end users should be send to the custom mailbox configured using customizedReportRecipientEmailAddress. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isReportToCustomizedEmailAddressEnabled")]
+ public bool? IsReportToCustomizedEmailAddressEnabled { get; set; }
+
+ ///
+ /// Gets or sets is report to microsoft enabled.
+ /// If enabled, the email will be sent to Microsoft for analysis. The default value is false. Required for creation.
+ ///
+ [JsonPropertyName("isReportToMicrosoftEnabled")]
+ public bool? IsReportToMicrosoftEnabled { get; set; }
+
+ ///
+ /// Gets or sets is review email notification enabled.
+ /// Indicates whether an email notification is sent to the end user who reported the email when it has been reviewed by the admin. The default value is false. Optional for creation.
+ ///
+ [JsonPropertyName("isReviewEmailNotificationEnabled")]
+ public bool? IsReviewEmailNotificationEnabled { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/EmailUrlThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailUrlThreatSubmission.cs
new file mode 100644
index 00000000000..90a6bf07150
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/EmailUrlThreatSubmission.cs
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Email Url Threat Submission.
+ ///
+ public partial class EmailUrlThreatSubmission : EmailThreatSubmission
+ {
+
+ ///
+ /// The EmailUrlThreatSubmission constructor
+ ///
+ public EmailUrlThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.emailUrlThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets message url.
+ /// Specifies the url of the message to be submitted.
+ ///
+ [JsonPropertyName("messageUrl")]
+ public string MessageUrl { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/FileContentThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/FileContentThreatSubmission.cs
new file mode 100644
index 00000000000..96add469321
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/FileContentThreatSubmission.cs
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type File Content Threat Submission.
+ ///
+ public partial class FileContentThreatSubmission : FileThreatSubmission
+ {
+
+ ///
+ /// The FileContentThreatSubmission constructor
+ ///
+ public FileContentThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.fileContentThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets file content.
+ /// It specifies the file content in base 64 format.
+ ///
+ [JsonPropertyName("fileContent")]
+ public string FileContent { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/FileThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/FileThreatSubmission.cs
new file mode 100644
index 00000000000..a2a55528518
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/FileThreatSubmission.cs
@@ -0,0 +1,41 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type File Threat Submission.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class FileThreatSubmission : ThreatSubmission
+ {
+
+ ///
+ /// The FileThreatSubmission constructor
+ ///
+ public FileThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.fileThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets file name.
+ /// It specifies the file name to be submitted.
+ ///
+ [JsonPropertyName("fileName")]
+ public string FileName { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/FileUrlThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/FileUrlThreatSubmission.cs
new file mode 100644
index 00000000000..76fee030f8d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/FileUrlThreatSubmission.cs
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type File Url Threat Submission.
+ ///
+ public partial class FileUrlThreatSubmission : FileThreatSubmission
+ {
+
+ ///
+ /// The FileUrlThreatSubmission constructor
+ ///
+ public FileUrlThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.fileUrlThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets file url.
+ /// It specifies the URL of the file which needs to be submitted.
+ ///
+ [JsonPropertyName("fileUrl")]
+ public string FileUrl { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/LongRunningOperationStatus.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/LongRunningOperationStatus.cs
new file mode 100644
index 00000000000..201c7cabd72
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/LongRunningOperationStatus.cs
@@ -0,0 +1,53 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum LongRunningOperationStatus.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum LongRunningOperationStatus
+ {
+
+ ///
+ /// Not Started
+ ///
+ NotStarted = 0,
+
+ ///
+ /// Running
+ ///
+ Running = 1,
+
+ ///
+ /// Succeeded
+ ///
+ Succeeded = 2,
+
+ ///
+ /// Failed
+ ///
+ Failed = 3,
+
+ ///
+ /// Skipped
+ ///
+ Skipped = 4,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 5,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/OcrSettings.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/OcrSettings.cs
index f1ecb36a48f..61f3d2436d6 100644
--- a/src/Microsoft.Graph/Generated/securitynamespace/model/OcrSettings.cs
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/OcrSettings.cs
@@ -37,7 +37,7 @@ public partial class OcrSettings
///
/// Gets or sets timeout.
- /// The timeout duration for the OCR engine. A longer timeout may increase success of OCR, but may add to the total processing time.
+ /// The timeout duration for the OCR engine. A longer timeout might increase success of OCR, but might add to the total processing time.
///
[JsonPropertyName("timeout")]
public Microsoft.Graph.Duration Timeout { get; set; }
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionAdminReview.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionAdminReview.cs
new file mode 100644
index 00000000000..863b3f42286
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionAdminReview.cs
@@ -0,0 +1,58 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type SubmissionAdminReview.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class SubmissionAdminReview
+ {
+
+ ///
+ /// Gets or sets reviewBy.
+ /// Specifies who reviewed the email. The identification is an email ID or other identity strings.
+ ///
+ [JsonPropertyName("reviewBy")]
+ public string ReviewBy { get; set; }
+
+ ///
+ /// Gets or sets reviewDateTime.
+ /// Specifies the date time when the review occurred.
+ ///
+ [JsonPropertyName("reviewDateTime")]
+ public DateTimeOffset? ReviewDateTime { get; set; }
+
+ ///
+ /// Gets or sets reviewResult.
+ /// Specifies what the review result was. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable, and unknownFutureValue.
+ ///
+ [JsonPropertyName("reviewResult")]
+ public SubmissionResultCategory? ReviewResult { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionCategory.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionCategory.cs
new file mode 100644
index 00000000000..11e5bfb0bdc
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionCategory.cs
@@ -0,0 +1,48 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionCategory.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionCategory
+ {
+
+ ///
+ /// Not Junk
+ ///
+ NotJunk = 0,
+
+ ///
+ /// Spam
+ ///
+ Spam = 1,
+
+ ///
+ /// Phishing
+ ///
+ Phishing = 2,
+
+ ///
+ /// Malware
+ ///
+ Malware = 3,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 4,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionClientSource.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionClientSource.cs
new file mode 100644
index 00000000000..cc4b89cda8b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionClientSource.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionClientSource.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionClientSource
+ {
+
+ ///
+ /// Microsoft
+ ///
+ Microsoft = 0,
+
+ ///
+ /// Other
+ ///
+ Other = 1,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 2,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionContentType.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionContentType.cs
new file mode 100644
index 00000000000..af7a526269b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionContentType.cs
@@ -0,0 +1,48 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionContentType.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionContentType
+ {
+
+ ///
+ /// Email
+ ///
+ Email = 0,
+
+ ///
+ /// Url
+ ///
+ Url = 1,
+
+ ///
+ /// File
+ ///
+ File = 2,
+
+ ///
+ /// App
+ ///
+ App = 3,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 4,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionDetectedFile.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionDetectedFile.cs
new file mode 100644
index 00000000000..fda56383d32
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionDetectedFile.cs
@@ -0,0 +1,51 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type SubmissionDetectedFile.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class SubmissionDetectedFile
+ {
+
+ ///
+ /// Gets or sets fileHash.
+ /// The file hash.
+ ///
+ [JsonPropertyName("fileHash")]
+ public string FileHash { get; set; }
+
+ ///
+ /// Gets or sets fileName.
+ /// The file name.
+ ///
+ [JsonPropertyName("fileName")]
+ public string FileName { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResult.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResult.cs
new file mode 100644
index 00000000000..a949f35f232
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResult.cs
@@ -0,0 +1,72 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type SubmissionResult.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class SubmissionResult
+ {
+
+ ///
+ /// Gets or sets category.
+ /// The submission result category. The possible values are: notJunk, spam, phishing, malware, allowedByPolicy, blockedByPolicy, spoof, unknown, noResultAvailable and unkownFutureValue.
+ ///
+ [JsonPropertyName("category")]
+ public SubmissionResultCategory? Category { get; set; }
+
+ ///
+ /// Gets or sets detail.
+ /// Specifies the additional details provided by Microsoft to substantiate their analysis result.
+ ///
+ [JsonPropertyName("detail")]
+ public SubmissionResultDetail? Detail { get; set; }
+
+ ///
+ /// Gets or sets detectedFiles.
+ /// Specifies the files detected by Microsoft in the submitted emails.
+ ///
+ [JsonPropertyName("detectedFiles")]
+ public IEnumerable DetectedFiles { get; set; }
+
+ ///
+ /// Gets or sets detectedUrls.
+ /// Specifes the URLs detected by Microsoft in the submitted email.
+ ///
+ [JsonPropertyName("detectedUrls")]
+ public IEnumerable DetectedUrls { get; set; }
+
+ ///
+ /// Gets or sets userMailboxSetting.
+ /// Specifies the setting for user mailbox denoted by a comma-separated string.
+ ///
+ [JsonPropertyName("userMailboxSetting")]
+ public UserMailboxSetting? UserMailboxSetting { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultCategory.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultCategory.cs
new file mode 100644
index 00000000000..49adeeb9e6e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultCategory.cs
@@ -0,0 +1,73 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionResultCategory.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionResultCategory
+ {
+
+ ///
+ /// Not Junk
+ ///
+ NotJunk = 0,
+
+ ///
+ /// Spam
+ ///
+ Spam = 1,
+
+ ///
+ /// Phishing
+ ///
+ Phishing = 2,
+
+ ///
+ /// Malware
+ ///
+ Malware = 3,
+
+ ///
+ /// Allowed By Policy
+ ///
+ AllowedByPolicy = 4,
+
+ ///
+ /// Blocked By Policy
+ ///
+ BlockedByPolicy = 5,
+
+ ///
+ /// Spoof
+ ///
+ Spoof = 6,
+
+ ///
+ /// Unknown
+ ///
+ Unknown = 7,
+
+ ///
+ /// No Result Available
+ ///
+ NoResultAvailable = 8,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 9,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultDetail.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultDetail.cs
new file mode 100644
index 00000000000..8790083b613
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionResultDetail.cs
@@ -0,0 +1,293 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionResultDetail.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionResultDetail
+ {
+
+ ///
+ /// None
+ ///
+ None = 0,
+
+ ///
+ /// Under Investigation
+ ///
+ UnderInvestigation = 1,
+
+ ///
+ /// Simulated Threat
+ ///
+ SimulatedThreat = 2,
+
+ ///
+ /// Allowed By Sec Ops
+ ///
+ AllowedBySecOps = 3,
+
+ ///
+ /// Allowed By Third Party Filters
+ ///
+ AllowedByThirdPartyFilters = 4,
+
+ ///
+ /// Message Not Found
+ ///
+ MessageNotFound = 5,
+
+ ///
+ /// Url File Should Not Be Blocked
+ ///
+ UrlFileShouldNotBeBlocked = 6,
+
+ ///
+ /// Url File Should Be Blocked
+ ///
+ UrlFileShouldBeBlocked = 7,
+
+ ///
+ /// Url File Cannot Make Decision
+ ///
+ UrlFileCannotMakeDecision = 8,
+
+ ///
+ /// Domain Impersonation
+ ///
+ DomainImpersonation = 9,
+
+ ///
+ /// User Impersonation
+ ///
+ UserImpersonation = 10,
+
+ ///
+ /// Brand Impersonation
+ ///
+ BrandImpersonation = 11,
+
+ ///
+ /// Outbound Should Not Be Blocked
+ ///
+ OutboundShouldNotBeBlocked = 12,
+
+ ///
+ /// Outbound Should Be Blocked
+ ///
+ OutboundShouldBeBlocked = 13,
+
+ ///
+ /// Outbound Bulk
+ ///
+ OutboundBulk = 14,
+
+ ///
+ /// Outbound Cannot Make Decision
+ ///
+ OutboundCannotMakeDecision = 15,
+
+ ///
+ /// Outbound Not Rescanned
+ ///
+ OutboundNotRescanned = 16,
+
+ ///
+ /// Zero Hour Auto Purge Allowed
+ ///
+ ZeroHourAutoPurgeAllowed = 17,
+
+ ///
+ /// Zero Hour Auto Purge Blocked
+ ///
+ ZeroHourAutoPurgeBlocked = 18,
+
+ ///
+ /// Zero Hour Auto Purge Quarantine Released
+ ///
+ ZeroHourAutoPurgeQuarantineReleased = 19,
+
+ ///
+ /// On Premises Skip
+ ///
+ OnPremisesSkip = 20,
+
+ ///
+ /// Allowed By Tenant Allow Block List
+ ///
+ AllowedByTenantAllowBlockList = 21,
+
+ ///
+ /// Blocked By Tenant Allow Block List
+ ///
+ BlockedByTenantAllowBlockList = 22,
+
+ ///
+ /// Allowed Url By Tenant Allow Block List
+ ///
+ AllowedUrlByTenantAllowBlockList = 23,
+
+ ///
+ /// Allowed File By Tenant Allow Block List
+ ///
+ AllowedFileByTenantAllowBlockList = 24,
+
+ ///
+ /// Allowed Sender By Tenant Allow Block List
+ ///
+ AllowedSenderByTenantAllowBlockList = 25,
+
+ ///
+ /// Allowed Recipient By Tenant Allow Block List
+ ///
+ AllowedRecipientByTenantAllowBlockList = 26,
+
+ ///
+ /// Blocked Url By Tenant Allow Block List
+ ///
+ BlockedUrlByTenantAllowBlockList = 27,
+
+ ///
+ /// Blocked File By Tenant Allow Block List
+ ///
+ BlockedFileByTenantAllowBlockList = 28,
+
+ ///
+ /// Blocked Sender By Tenant Allow Block List
+ ///
+ BlockedSenderByTenantAllowBlockList = 29,
+
+ ///
+ /// Blocked Recipient By Tenant Allow Block List
+ ///
+ BlockedRecipientByTenantAllowBlockList = 30,
+
+ ///
+ /// Allowed By Connection
+ ///
+ AllowedByConnection = 31,
+
+ ///
+ /// Blocked By Connection
+ ///
+ BlockedByConnection = 32,
+
+ ///
+ /// Allowed By Exchange Transport Rule
+ ///
+ AllowedByExchangeTransportRule = 33,
+
+ ///
+ /// Blocked By Exchange Transport Rule
+ ///
+ BlockedByExchangeTransportRule = 34,
+
+ ///
+ /// Quarantine Released
+ ///
+ QuarantineReleased = 35,
+
+ ///
+ /// Quarantine Released Then Blocked
+ ///
+ QuarantineReleasedThenBlocked = 36,
+
+ ///
+ /// Junk Mail Rule Disabled
+ ///
+ JunkMailRuleDisabled = 37,
+
+ ///
+ /// Allowed By User Setting
+ ///
+ AllowedByUserSetting = 38,
+
+ ///
+ /// Blocked By User Setting
+ ///
+ BlockedByUserSetting = 39,
+
+ ///
+ /// Allowed By Tenant
+ ///
+ AllowedByTenant = 40,
+
+ ///
+ /// Blocked By Tenant
+ ///
+ BlockedByTenant = 41,
+
+ ///
+ /// Invalid False Positive
+ ///
+ InvalidFalsePositive = 42,
+
+ ///
+ /// Invalid False Negative
+ ///
+ InvalidFalseNegative = 43,
+
+ ///
+ /// Spoof Blocked
+ ///
+ SpoofBlocked = 44,
+
+ ///
+ /// Good Reclassified As Bad
+ ///
+ GoodReclassifiedAsBad = 45,
+
+ ///
+ /// Good Reclassified As Bulk
+ ///
+ GoodReclassifiedAsBulk = 46,
+
+ ///
+ /// Good Reclassified As Good
+ ///
+ GoodReclassifiedAsGood = 47,
+
+ ///
+ /// Good Reclassified As Cannot Make Decision
+ ///
+ GoodReclassifiedAsCannotMakeDecision = 48,
+
+ ///
+ /// Bad Reclassified As Good
+ ///
+ BadReclassifiedAsGood = 49,
+
+ ///
+ /// Bad Reclassified As Bulk
+ ///
+ BadReclassifiedAsBulk = 50,
+
+ ///
+ /// Bad Reclassified As Bad
+ ///
+ BadReclassifiedAsBad = 51,
+
+ ///
+ /// Bad Reclassified As Cannot Make Decision
+ ///
+ BadReclassifiedAsCannotMakeDecision = 52,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 53,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionSource.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionSource.cs
new file mode 100644
index 00000000000..fc8b9dc01df
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionSource.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum SubmissionSource.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum SubmissionSource
+ {
+
+ ///
+ /// User
+ ///
+ User = 0,
+
+ ///
+ /// Administrator
+ ///
+ Administrator = 1,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 2,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionUserIdentity.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionUserIdentity.cs
new file mode 100644
index 00000000000..79c80bebddd
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/SubmissionUserIdentity.cs
@@ -0,0 +1,31 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type SubmissionUserIdentity.
+ ///
+ public partial class SubmissionUserIdentity : Microsoft.Graph.Identity
+ {
+
+ ///
+ /// Gets or sets email.
+ /// The email of user who is making the submission when logged in (delegated token case).
+ ///
+ [JsonPropertyName("email")]
+ public string Email { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListAction.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListAction.cs
new file mode 100644
index 00000000000..bddecb1c485
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListAction.cs
@@ -0,0 +1,38 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum TenantAllowBlockListAction.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum TenantAllowBlockListAction
+ {
+
+ ///
+ /// Allow
+ ///
+ Allow = 0,
+
+ ///
+ /// Block
+ ///
+ Block = 1,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 2,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryResult.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryResult.cs
new file mode 100644
index 00000000000..ac8b99eff01
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryResult.cs
@@ -0,0 +1,72 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type TenantAllowBlockListEntryResult.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class TenantAllowBlockListEntryResult
+ {
+
+ ///
+ /// Gets or sets entryType.
+ /// The entry type of tenant allow block list. The possible values are: url, fileHash, sender, recipient and unkownFutureValue.
+ ///
+ [JsonPropertyName("entryType")]
+ public TenantAllowBlockListEntryType? EntryType { get; set; }
+
+ ///
+ /// Gets or sets expirationDateTime.
+ /// Specifies when will this entry expire in date time.
+ ///
+ [JsonPropertyName("expirationDateTime")]
+ public DateTimeOffset? ExpirationDateTime { get; set; }
+
+ ///
+ /// Gets or sets identity.
+ /// Specifies the identity of the entry generated by the tenant allow block list system.
+ ///
+ [JsonPropertyName("identity")]
+ public string Identity { get; set; }
+
+ ///
+ /// Gets or sets status.
+ /// Specifies whether the tenant allow block list entry creation operation was successful. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue.
+ ///
+ [JsonPropertyName("status")]
+ public LongRunningOperationStatus? Status { get; set; }
+
+ ///
+ /// Gets or sets value.
+ /// Specifies the value of the created tenant allow block list entry.
+ ///
+ [JsonPropertyName("value")]
+ public string Value { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryType.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryType.cs
new file mode 100644
index 00000000000..4f1f2b2754c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowBlockListEntryType.cs
@@ -0,0 +1,48 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum TenantAllowBlockListEntryType.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ public enum TenantAllowBlockListEntryType
+ {
+
+ ///
+ /// Url
+ ///
+ Url = 0,
+
+ ///
+ /// File Hash
+ ///
+ FileHash = 1,
+
+ ///
+ /// Sender
+ ///
+ Sender = 2,
+
+ ///
+ /// Recipient
+ ///
+ Recipient = 3,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 4,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowOrBlockListAction.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowOrBlockListAction.cs
new file mode 100644
index 00000000000..a5321637951
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/TenantAllowOrBlockListAction.cs
@@ -0,0 +1,65 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: ComplexType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type TenantAllowOrBlockListAction.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class TenantAllowOrBlockListAction
+ {
+
+ ///
+ /// Gets or sets action.
+ /// Specifies whether the tenant allow block list is an allow or block. The possible values are: allow, block, and unkownFutureValue.
+ ///
+ [JsonPropertyName("action")]
+ public TenantAllowBlockListAction? Action { get; set; }
+
+ ///
+ /// Gets or sets expirationDateTime.
+ /// Specifies when the tenant allow-block-list expires in date time.
+ ///
+ [JsonPropertyName("expirationDateTime")]
+ public DateTimeOffset? ExpirationDateTime { get; set; }
+
+ ///
+ /// Gets or sets note.
+ /// Specifies the note added to the tenant allow block list entry in the format of string.
+ ///
+ [JsonPropertyName("note")]
+ public string Note { get; set; }
+
+ ///
+ /// Gets or sets results.
+ /// Contains the result of the submission that lead to the tenant allow-block-list entry creation.
+ ///
+ [JsonPropertyName("results")]
+ public IEnumerable Results { get; set; }
+
+ ///
+ /// Gets or sets additional data.
+ ///
+ [JsonExtensionData]
+ public IDictionary AdditionalData { get; set; }
+
+ ///
+ /// Gets or sets @odata.type.
+ ///
+ [JsonPropertyName("@odata.type")]
+ public string ODataType { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmission.cs
new file mode 100644
index 00000000000..5814bd7e833
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmission.cs
@@ -0,0 +1,104 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Threat Submission.
+ ///
+ [JsonConverter(typeof(Microsoft.Graph.DerivedTypeConverter))]
+ public partial class ThreatSubmission : Microsoft.Graph.Entity
+ {
+
+ ///
+ /// The internal ThreatSubmission constructor
+ ///
+ protected internal ThreatSubmission()
+ {
+ // Don't allow initialization of abstract entity types
+ }
+
+ ///
+ /// Gets or sets admin review.
+ /// Specifies the admin review property which constitutes of who reviewed the user submission, when and what was it identified as.
+ ///
+ [JsonPropertyName("adminReview")]
+ public SubmissionAdminReview AdminReview { get; set; }
+
+ ///
+ /// Gets or sets category.
+ /// Specifies the category of the submission. Supports $filter = category eq 'value'. The possible values are: notJunk, spam, phishing, malware and unkownFutureValue.
+ ///
+ [JsonPropertyName("category")]
+ public SubmissionCategory? Category { get; set; }
+
+ ///
+ /// Gets or sets client source.
+ /// Specifies the source of the submission. The possible values are: microsoft, other and unkownFutureValue.
+ ///
+ [JsonPropertyName("clientSource")]
+ public SubmissionClientSource? ClientSource { get; set; }
+
+ ///
+ /// Gets or sets content type.
+ /// Specifies the type of content being submitted. The possible values are: email, url, file, app and unkownFutureValue.
+ ///
+ [JsonPropertyName("contentType")]
+ public SubmissionContentType? ContentType { get; set; }
+
+ ///
+ /// Gets or sets created by.
+ /// Specifies who submitted the email as a threat. Supports $filter = createdBy/email eq 'value'.
+ ///
+ [JsonPropertyName("createdBy")]
+ public SubmissionUserIdentity CreatedBy { get; set; }
+
+ ///
+ /// Gets or sets created date time.
+ /// Specifies when the threat submission was created. Supports $filter = createdDateTime ge 2022-01-01T00:00:00Z and createdDateTime lt 2022-01-02T00:00:00Z.
+ ///
+ [JsonPropertyName("createdDateTime")]
+ public DateTimeOffset? CreatedDateTime { get; set; }
+
+ ///
+ /// Gets or sets result.
+ /// Specifies the result of the analysis performed by Microsoft.
+ ///
+ [JsonPropertyName("result")]
+ public SubmissionResult Result { get; set; }
+
+ ///
+ /// Gets or sets source.
+ /// Specifies the role of the submitter. Supports $filter = source eq 'value'. The possible values are: administrator, user and unkownFutureValue.
+ ///
+ [JsonPropertyName("source")]
+ public SubmissionSource? Source { get; set; }
+
+ ///
+ /// Gets or sets status.
+ /// Indicates whether the threat submission has been analyzed by Microsoft. Supports $filter = status eq 'value'. The possible values are: notStarted, running, succeeded, failed, skipped and unkownFutureValue.
+ ///
+ [JsonPropertyName("status")]
+ public LongRunningOperationStatus? Status { get; set; }
+
+ ///
+ /// Gets or sets tenant id.
+ /// Indicates the tenant id of the submitter. Not required when created using a POST operation. It is extracted from the token of the post API call.
+ ///
+ [JsonPropertyName("tenantId")]
+ public string TenantId { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionReviewRequestBody.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionReviewRequestBody.cs
new file mode 100644
index 00000000000..e4e4dcf44db
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionReviewRequestBody.cs
@@ -0,0 +1,30 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: MethodRequestBody.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type ThreatSubmissionReviewRequestBody.
+ ///
+ public partial class ThreatSubmissionReviewRequestBody
+ {
+
+ ///
+ /// Gets or sets Category.
+ ///
+ [JsonPropertyName("category")]
+ public string Category { get; set; }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionRoot.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionRoot.cs
new file mode 100644
index 00000000000..a8419616074
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/ThreatSubmissionRoot.cs
@@ -0,0 +1,77 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Threat Submission Root.
+ ///
+ public partial class ThreatSubmissionRoot : Microsoft.Graph.Entity
+ {
+
+ ///
+ /// Gets or sets email threats.
+ ///
+ [JsonPropertyName("emailThreats")]
+ public IThreatSubmissionRootEmailThreatsCollectionPage EmailThreats { get; set; }
+
+ ///
+ /// Gets or sets emailThreatsNextLink.
+ ///
+ [JsonPropertyName("emailThreats@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string EmailThreatsNextLink { get; set; }
+
+ ///
+ /// Gets or sets email threat submission policies.
+ ///
+ [JsonPropertyName("emailThreatSubmissionPolicies")]
+ public IThreatSubmissionRootEmailThreatSubmissionPoliciesCollectionPage EmailThreatSubmissionPolicies { get; set; }
+
+ ///
+ /// Gets or sets emailThreatSubmissionPoliciesNextLink.
+ ///
+ [JsonPropertyName("emailThreatSubmissionPolicies@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string EmailThreatSubmissionPoliciesNextLink { get; set; }
+
+ ///
+ /// Gets or sets file threats.
+ ///
+ [JsonPropertyName("fileThreats")]
+ public IThreatSubmissionRootFileThreatsCollectionPage FileThreats { get; set; }
+
+ ///
+ /// Gets or sets fileThreatsNextLink.
+ ///
+ [JsonPropertyName("fileThreats@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string FileThreatsNextLink { get; set; }
+
+ ///
+ /// Gets or sets url threats.
+ ///
+ [JsonPropertyName("urlThreats")]
+ public IThreatSubmissionRootUrlThreatsCollectionPage UrlThreats { get; set; }
+
+ ///
+ /// Gets or sets urlThreatsNextLink.
+ ///
+ [JsonPropertyName("urlThreats@odata.nextLink")]
+ [JsonConverter(typeof(NextLinkConverter))]
+ public string UrlThreatsNextLink { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/TopicModelingSettings.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/TopicModelingSettings.cs
index bc825964f9b..b98ee6e781c 100644
--- a/src/Microsoft.Graph/Generated/securitynamespace/model/TopicModelingSettings.cs
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/TopicModelingSettings.cs
@@ -23,28 +23,28 @@ public partial class TopicModelingSettings
///
/// Gets or sets dynamicallyAdjustTopicCount.
- /// To learn more, see Adjust maximum number of themes dynamically.
+ /// Indicates whether the themes model should dynamically optimize the number of generated topics. To learn more, see Adjust maximum number of themes dynamically.
///
[JsonPropertyName("dynamicallyAdjustTopicCount")]
public bool? DynamicallyAdjustTopicCount { get; set; }
///
/// Gets or sets ignoreNumbers.
- /// To learn more, see Include numbers in themes.
+ /// Indicates whether the themes model should exclude numbers while parsing document texts. To learn more, see Include numbers in themes.
///
[JsonPropertyName("ignoreNumbers")]
public bool? IgnoreNumbers { get; set; }
///
/// Gets or sets isEnabled.
- /// Indicates whether themes is enabled for the case.
+ /// Indicates whether themes model is enabled for the case.
///
[JsonPropertyName("isEnabled")]
public bool? IsEnabled { get; set; }
///
/// Gets or sets topicCount.
- /// To learn more, see Maximum number of themes.
+ /// The total number of topics that the themes model will generate for a review set. To learn more, see Maximum number of themes.
///
[JsonPropertyName("topicCount")]
public Int32? TopicCount { get; set; }
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/UnifiedGroupSource.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/UnifiedGroupSource.cs
index f9e0cb385ab..bcfb1ec6f38 100644
--- a/src/Microsoft.Graph/Generated/securitynamespace/model/UnifiedGroupSource.cs
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/UnifiedGroupSource.cs
@@ -38,7 +38,7 @@ public UnifiedGroupSource()
///
/// Gets or sets group.
- /// Represent a group.
+ /// Represents a group.
///
[JsonPropertyName("group")]
public Microsoft.Graph.Group Group { get; set; }
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/UrlThreatSubmission.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/UrlThreatSubmission.cs
new file mode 100644
index 00000000000..b4cc49011ea
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/UrlThreatSubmission.cs
@@ -0,0 +1,40 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityType.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The type Url Threat Submission.
+ ///
+ public partial class UrlThreatSubmission : ThreatSubmission
+ {
+
+ ///
+ /// The UrlThreatSubmission constructor
+ ///
+ public UrlThreatSubmission()
+ {
+ this.ODataType = "microsoft.graph.security.urlThreatSubmission";
+ }
+
+ ///
+ /// Gets or sets web url.
+ /// Denotes the webUrl that needs to be submitted.
+ ///
+ [JsonPropertyName("webUrl")]
+ public string WebUrl { get; set; }
+
+ }
+}
+
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/model/UserMailboxSetting.cs b/src/Microsoft.Graph/Generated/securitynamespace/model/UserMailboxSetting.cs
new file mode 100644
index 00000000000..05128fab88e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/model/UserMailboxSetting.cs
@@ -0,0 +1,119 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EnumType.cs.tt
+
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System.Text.Json.Serialization;
+
+ ///
+ /// The enum UserMailboxSetting.
+ ///
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ [System.Flags]
+ public enum UserMailboxSetting
+ {
+
+ ///
+ /// None
+ ///
+ None = 0,
+
+ ///
+ /// Junk Mail Deletion
+ ///
+ JunkMailDeletion = 1,
+
+ ///
+ /// Is From Address In Address Book
+ ///
+ IsFromAddressInAddressBook = 2,
+
+ ///
+ /// Is From Address In Address Safe List
+ ///
+ IsFromAddressInAddressSafeList = 4,
+
+ ///
+ /// Is From Address In Address Block List
+ ///
+ IsFromAddressInAddressBlockList = 8,
+
+ ///
+ /// Is From Address In Address Implicit Safe List
+ ///
+ IsFromAddressInAddressImplicitSafeList = 16,
+
+ ///
+ /// Is From Address In Address Implicit Junk List
+ ///
+ IsFromAddressInAddressImplicitJunkList = 32,
+
+ ///
+ /// Is From Domain In Domain Safe List
+ ///
+ IsFromDomainInDomainSafeList = 64,
+
+ ///
+ /// Is From Domain In Domain Block List
+ ///
+ IsFromDomainInDomainBlockList = 128,
+
+ ///
+ /// Is Recipient In Recipient Safe List
+ ///
+ IsRecipientInRecipientSafeList = 256,
+
+ ///
+ /// Custom Rule
+ ///
+ CustomRule = 512,
+
+ ///
+ /// Junk Mail Rule
+ ///
+ JunkMailRule = 1024,
+
+ ///
+ /// Sender Pra Present
+ ///
+ SenderPraPresent = 2048,
+
+ ///
+ /// From First Time Sender
+ ///
+ FromFirstTimeSender = 4096,
+
+ ///
+ /// Exclusive
+ ///
+ Exclusive = 8192,
+
+ ///
+ /// Prior Seen Pass
+ ///
+ PriorSeenPass = 16384,
+
+ ///
+ /// Sender Authentication Succeeded
+ ///
+ SenderAuthenticationSucceeded = 32768,
+
+ ///
+ /// Is Junk Mail Rule Enabled
+ ///
+ IsJunkMailRuleEnabled = 65536,
+
+ ///
+ /// Unknown Future Value
+ ///
+ UnknownFutureValue = 131072,
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequest.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequest.cs
new file mode 100644
index 00000000000..3f9c1dbd2c5
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type EmailContentThreatSubmissionRequest.
+ ///
+ public partial class EmailContentThreatSubmissionRequest : Microsoft.Graph.BaseRequest, IEmailContentThreatSubmissionRequest
+ {
+ ///
+ /// Constructs a new EmailContentThreatSubmissionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public EmailContentThreatSubmissionRequest(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client,
+ IEnumerable options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified EmailContentThreatSubmission using POST.
+ ///
+ /// The EmailContentThreatSubmission to create.
+ /// The for the request.
+ /// The created EmailContentThreatSubmission.
+ public async System.Threading.Tasks.Task CreateAsync(EmailContentThreatSubmission emailContentThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(emailContentThreatSubmissionToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified EmailContentThreatSubmission using POST and returns a object.
+ ///
+ /// The EmailContentThreatSubmission to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(EmailContentThreatSubmission emailContentThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(emailContentThreatSubmissionToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified EmailContentThreatSubmission.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified EmailContentThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified EmailContentThreatSubmission.
+ ///
+ /// The for the request.
+ /// The EmailContentThreatSubmission.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified EmailContentThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailContentThreatSubmission using PATCH.
+ ///
+ /// The EmailContentThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated EmailContentThreatSubmission.
+ public async System.Threading.Tasks.Task UpdateAsync(EmailContentThreatSubmission emailContentThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(emailContentThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailContentThreatSubmission using PATCH and returns a object.
+ ///
+ /// The EmailContentThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(EmailContentThreatSubmission emailContentThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(emailContentThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailContentThreatSubmission using PUT.
+ ///
+ /// The EmailContentThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(EmailContentThreatSubmission emailContentThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(emailContentThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailContentThreatSubmission using PUT and returns a object.
+ ///
+ /// The EmailContentThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(EmailContentThreatSubmission emailContentThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(emailContentThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public IEmailContentThreatSubmissionRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public IEmailContentThreatSubmissionRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public IEmailContentThreatSubmissionRequest Select(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public IEmailContentThreatSubmissionRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(EmailContentThreatSubmission emailContentThreatSubmissionToInitialize)
+ {
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequestBuilder.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequestBuilder.cs
new file mode 100644
index 00000000000..ecf49fbb15b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailContentThreatSubmissionRequestBuilder.cs
@@ -0,0 +1,54 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type EmailContentThreatSubmissionRequestBuilder.
+ ///
+ public partial class EmailContentThreatSubmissionRequestBuilder : EmailThreatSubmissionRequestBuilder, IEmailContentThreatSubmissionRequestBuilder
+ {
+
+ ///
+ /// Constructs a new EmailContentThreatSubmissionRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public EmailContentThreatSubmissionRequestBuilder(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public new IEmailContentThreatSubmissionRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public new IEmailContentThreatSubmissionRequest Request(IEnumerable options)
+ {
+ return new EmailContentThreatSubmissionRequest(this.RequestUrl, this.Client, options);
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequest.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequest.cs
new file mode 100644
index 00000000000..c8f3b8b294c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type EmailThreatSubmissionPolicyRequest.
+ ///
+ public partial class EmailThreatSubmissionPolicyRequest : Microsoft.Graph.BaseRequest, IEmailThreatSubmissionPolicyRequest
+ {
+ ///
+ /// Constructs a new EmailThreatSubmissionPolicyRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public EmailThreatSubmissionPolicyRequest(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client,
+ IEnumerable options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified EmailThreatSubmissionPolicy using POST.
+ ///
+ /// The EmailThreatSubmissionPolicy to create.
+ /// The for the request.
+ /// The created EmailThreatSubmissionPolicy.
+ public async System.Threading.Tasks.Task CreateAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(emailThreatSubmissionPolicyToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified EmailThreatSubmissionPolicy using POST and returns a object.
+ ///
+ /// The EmailThreatSubmissionPolicy to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionPolicyToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified EmailThreatSubmissionPolicy.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified EmailThreatSubmissionPolicy and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified EmailThreatSubmissionPolicy.
+ ///
+ /// The for the request.
+ /// The EmailThreatSubmissionPolicy.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified EmailThreatSubmissionPolicy and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmissionPolicy using PATCH.
+ ///
+ /// The EmailThreatSubmissionPolicy to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated EmailThreatSubmissionPolicy.
+ public async System.Threading.Tasks.Task UpdateAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(emailThreatSubmissionPolicyToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmissionPolicy using PATCH and returns a object.
+ ///
+ /// The EmailThreatSubmissionPolicy to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionPolicyToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmissionPolicy using PUT.
+ ///
+ /// The EmailThreatSubmissionPolicy object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(emailThreatSubmissionPolicyToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmissionPolicy using PUT and returns a object.
+ ///
+ /// The EmailThreatSubmissionPolicy object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionPolicyToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public IEmailThreatSubmissionPolicyRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public IEmailThreatSubmissionPolicyRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public IEmailThreatSubmissionPolicyRequest Select(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public IEmailThreatSubmissionPolicyRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(EmailThreatSubmissionPolicy emailThreatSubmissionPolicyToInitialize)
+ {
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequestBuilder.cs
new file mode 100644
index 00000000000..dd65b46089c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionPolicyRequestBuilder.cs
@@ -0,0 +1,54 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type EmailThreatSubmissionPolicyRequestBuilder.
+ ///
+ public partial class EmailThreatSubmissionPolicyRequestBuilder : Microsoft.Graph.EntityRequestBuilder, IEmailThreatSubmissionPolicyRequestBuilder
+ {
+
+ ///
+ /// Constructs a new EmailThreatSubmissionPolicyRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public EmailThreatSubmissionPolicyRequestBuilder(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public new IEmailThreatSubmissionPolicyRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public new IEmailThreatSubmissionPolicyRequest Request(IEnumerable options)
+ {
+ return new EmailThreatSubmissionPolicyRequest(this.RequestUrl, this.Client, options);
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequest.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequest.cs
new file mode 100644
index 00000000000..1a0ccf76be2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type EmailThreatSubmissionRequest.
+ ///
+ public partial class EmailThreatSubmissionRequest : Microsoft.Graph.BaseRequest, IEmailThreatSubmissionRequest
+ {
+ ///
+ /// Constructs a new EmailThreatSubmissionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public EmailThreatSubmissionRequest(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client,
+ IEnumerable options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified EmailThreatSubmission using POST.
+ ///
+ /// The EmailThreatSubmission to create.
+ /// The for the request.
+ /// The created EmailThreatSubmission.
+ public async System.Threading.Tasks.Task CreateAsync(EmailThreatSubmission emailThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(emailThreatSubmissionToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified EmailThreatSubmission using POST and returns a object.
+ ///
+ /// The EmailThreatSubmission to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(EmailThreatSubmission emailThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified EmailThreatSubmission.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified EmailThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified EmailThreatSubmission.
+ ///
+ /// The for the request.
+ /// The EmailThreatSubmission.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified EmailThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmission using PATCH.
+ ///
+ /// The EmailThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated EmailThreatSubmission.
+ public async System.Threading.Tasks.Task UpdateAsync(EmailThreatSubmission emailThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(emailThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmission using PATCH and returns a object.
+ ///
+ /// The EmailThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(EmailThreatSubmission emailThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmission using PUT.
+ ///
+ /// The EmailThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(EmailThreatSubmission emailThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(emailThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailThreatSubmission using PUT and returns a object.
+ ///
+ /// The EmailThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(EmailThreatSubmission emailThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(emailThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public IEmailThreatSubmissionRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public IEmailThreatSubmissionRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public IEmailThreatSubmissionRequest Select(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public IEmailThreatSubmissionRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(EmailThreatSubmission emailThreatSubmissionToInitialize)
+ {
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequestBuilder.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequestBuilder.cs
new file mode 100644
index 00000000000..2c0ea70b722
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailThreatSubmissionRequestBuilder.cs
@@ -0,0 +1,54 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type EmailThreatSubmissionRequestBuilder.
+ ///
+ public partial class EmailThreatSubmissionRequestBuilder : ThreatSubmissionRequestBuilder, IEmailThreatSubmissionRequestBuilder
+ {
+
+ ///
+ /// Constructs a new EmailThreatSubmissionRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public EmailThreatSubmissionRequestBuilder(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public new IEmailThreatSubmissionRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public new IEmailThreatSubmissionRequest Request(IEnumerable options)
+ {
+ return new EmailThreatSubmissionRequest(this.RequestUrl, this.Client, options);
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequest.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequest.cs
new file mode 100644
index 00000000000..f01b3d66231
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type EmailUrlThreatSubmissionRequest.
+ ///
+ public partial class EmailUrlThreatSubmissionRequest : Microsoft.Graph.BaseRequest, IEmailUrlThreatSubmissionRequest
+ {
+ ///
+ /// Constructs a new EmailUrlThreatSubmissionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public EmailUrlThreatSubmissionRequest(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client,
+ IEnumerable options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified EmailUrlThreatSubmission using POST.
+ ///
+ /// The EmailUrlThreatSubmission to create.
+ /// The for the request.
+ /// The created EmailUrlThreatSubmission.
+ public async System.Threading.Tasks.Task CreateAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(emailUrlThreatSubmissionToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified EmailUrlThreatSubmission using POST and returns a object.
+ ///
+ /// The EmailUrlThreatSubmission to create.
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> CreateResponseAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ return this.SendAsyncWithGraphResponse(emailUrlThreatSubmissionToCreate, cancellationToken);
+ }
+
+ ///
+ /// Deletes the specified EmailUrlThreatSubmission.
+ ///
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Deletes the specified EmailUrlThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The task of to await.
+ public System.Threading.Tasks.Task DeleteResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.DELETE;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Gets the specified EmailUrlThreatSubmission.
+ ///
+ /// The for the request.
+ /// The EmailUrlThreatSubmission.
+ public async System.Threading.Tasks.Task GetAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ var retrievedEntity = await this.SendAsync(null, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(retrievedEntity);
+ return retrievedEntity;
+ }
+
+ ///
+ /// Gets the specified EmailUrlThreatSubmission and returns a object.
+ ///
+ /// The for the request.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> GetResponseAsync(CancellationToken cancellationToken = default)
+ {
+ this.Method = HttpMethods.GET;
+ return this.SendAsyncWithGraphResponse(null, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailUrlThreatSubmission using PATCH.
+ ///
+ /// The EmailUrlThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The updated EmailUrlThreatSubmission.
+ public async System.Threading.Tasks.Task UpdateAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ var updatedEntity = await this.SendAsync(emailUrlThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailUrlThreatSubmission using PATCH and returns a object.
+ ///
+ /// The EmailUrlThreatSubmission to update.
+ /// The for the request.
+ /// Thrown when an object returned in a response is used for updating an object in Microsoft Graph.
+ /// The object of the request.
+ public System.Threading.Tasks.Task> UpdateResponseAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PATCH;
+ return this.SendAsyncWithGraphResponse(emailUrlThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Updates the specified EmailUrlThreatSubmission using PUT.
+ ///
+ /// The EmailUrlThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await.
+ public async System.Threading.Tasks.Task PutAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ var updatedEntity = await this.SendAsync(emailUrlThreatSubmissionToUpdate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(updatedEntity);
+ return updatedEntity;
+ }
+
+ ///
+ /// Updates the specified EmailUrlThreatSubmission using PUT and returns a object.
+ ///
+ /// The EmailUrlThreatSubmission object to update.
+ /// The for the request.
+ /// The task to await of .
+ public System.Threading.Tasks.Task> PutResponseAsync(EmailUrlThreatSubmission emailUrlThreatSubmissionToUpdate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.PUT;
+ return this.SendAsyncWithGraphResponse(emailUrlThreatSubmissionToUpdate, cancellationToken);
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expand value.
+ /// The request object to send.
+ public IEmailUrlThreatSubmissionRequest Expand(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified expand value to the request.
+ ///
+ /// The expression from which to calculate the expand value.
+ /// The request object to send.
+ public IEmailUrlThreatSubmissionRequest Expand(Expression> expandExpression)
+ {
+ if (expandExpression == null)
+ {
+ throw new ArgumentNullException(nameof(expandExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(expandExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(expandExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The select value.
+ /// The request object to send.
+ public IEmailUrlThreatSubmissionRequest Select(string value)
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ return this;
+ }
+
+ ///
+ /// Adds the specified select value to the request.
+ ///
+ /// The expression from which to calculate the select value.
+ /// The request object to send.
+ public IEmailUrlThreatSubmissionRequest Select(Expression> selectExpression)
+ {
+ if (selectExpression == null)
+ {
+ throw new ArgumentNullException(nameof(selectExpression));
+ }
+ string error;
+ string value = Microsoft.Graph.ExpressionExtractHelper.ExtractMembers(selectExpression, out error);
+ if (value == null)
+ {
+ throw new ArgumentException(error, nameof(selectExpression));
+ }
+ else
+ {
+ this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
+ }
+ return this;
+ }
+
+ ///
+ /// Initializes any collection properties after deserialization, like next requests for paging.
+ ///
+ /// The with the collection properties to initialize.
+ private void InitializeCollectionProperties(EmailUrlThreatSubmission emailUrlThreatSubmissionToInitialize)
+ {
+
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequestBuilder.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequestBuilder.cs
new file mode 100644
index 00000000000..7c143b2ee51
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/EmailUrlThreatSubmissionRequestBuilder.cs
@@ -0,0 +1,54 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequestBuilder.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+
+ ///
+ /// The type EmailUrlThreatSubmissionRequestBuilder.
+ ///
+ public partial class EmailUrlThreatSubmissionRequestBuilder : EmailThreatSubmissionRequestBuilder, IEmailUrlThreatSubmissionRequestBuilder
+ {
+
+ ///
+ /// Constructs a new EmailUrlThreatSubmissionRequestBuilder.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ public EmailUrlThreatSubmissionRequestBuilder(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client)
+ : base(requestUrl, client)
+ {
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The built request.
+ public new IEmailUrlThreatSubmissionRequest Request()
+ {
+ return this.Request(null);
+ }
+
+ ///
+ /// Builds the request.
+ ///
+ /// The query and header options for the request.
+ /// The built request.
+ public new IEmailUrlThreatSubmissionRequest Request(IEnumerable options)
+ {
+ return new EmailUrlThreatSubmissionRequest(this.RequestUrl, this.Client, options);
+ }
+
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/securitynamespace/requests/FileContentThreatSubmissionRequest.cs b/src/Microsoft.Graph/Generated/securitynamespace/requests/FileContentThreatSubmissionRequest.cs
new file mode 100644
index 00000000000..8cecc42fe5e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/securitynamespace/requests/FileContentThreatSubmissionRequest.cs
@@ -0,0 +1,249 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+//
+
+// Template Source: EntityRequest.cs.tt
+
+namespace Microsoft.Graph.SecurityNamespace
+{
+ using System;
+ using System.Collections.Generic;
+ using System.IO;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Linq.Expressions;
+
+ ///
+ /// The type FileContentThreatSubmissionRequest.
+ ///
+ public partial class FileContentThreatSubmissionRequest : Microsoft.Graph.BaseRequest, IFileContentThreatSubmissionRequest
+ {
+ ///
+ /// Constructs a new FileContentThreatSubmissionRequest.
+ ///
+ /// The URL for the built request.
+ /// The for handling requests.
+ /// Query and header option name value pairs for the request.
+ public FileContentThreatSubmissionRequest(
+ string requestUrl,
+ Microsoft.Graph.IBaseClient client,
+ IEnumerable options)
+ : base(requestUrl, client, options)
+ {
+ }
+
+ ///
+ /// Creates the specified FileContentThreatSubmission using POST.
+ ///
+ /// The FileContentThreatSubmission to create.
+ /// The for the request.
+ /// The created FileContentThreatSubmission.
+ public async System.Threading.Tasks.Task CreateAsync(FileContentThreatSubmission fileContentThreatSubmissionToCreate, CancellationToken cancellationToken = default)
+ {
+ this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
+ this.Method = HttpMethods.POST;
+ var newEntity = await this.SendAsync(fileContentThreatSubmissionToCreate, cancellationToken).ConfigureAwait(false);
+ this.InitializeCollectionProperties(newEntity);
+ return newEntity;
+ }
+
+ ///
+ /// Creates the specified FileContentThreatSubmission using POST and returns a