From f3d9ae7a892878d061e89d985023a1d24eadbb89 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 2 Apr 2024 10:48:10 +0000 Subject: [PATCH 1/2] Update generated files with build 141818 --- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../DeviceAppManagementRequestBuilder.cs | 4 +- .../ManagedAppPolicyItemRequestBuilder.cs | 8 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../ManagedAppPoliciesRequestBuilder.cs | 8 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../Assignments/AssignmentsRequestBuilder.cs | 8 +- ...anagedEBookAssignmentItemRequestBuilder.cs | 14 +- .../Item/ManagedEBookItemRequestBuilder.cs | 8 +- .../ManagedEBooksRequestBuilder.cs | 8 +- ...obileAppConfigurationItemRequestBuilder.cs | 8 +- .../MobileAppConfigurationsRequestBuilder.cs | 8 +- .../Item/MobileAppItemRequestBuilder.cs | 20 +- .../MobileApps/MobileAppsRequestBuilder.cs | 14 +- .../DeviceCompliancePoliciesRequestBuilder.cs | 14 +- ...eviceCompliancePolicyItemRequestBuilder.cs | 20 +- .../DeviceConfigurationsRequestBuilder.cs | 14 +- .../DeviceConfigurationItemRequestBuilder.cs | 20 +- ...eEnrollmentConfigurationsRequestBuilder.cs | 6 +- ...rollmentConfigurationItemRequestBuilder.cs | 14 +- .../DeviceManagementRequestBuilder.cs | 4 +- .../Item/RoleDefinitionItemRequestBuilder.cs | 14 +- .../RoleDefinitionsRequestBuilder.cs | 6 +- .../Items/Item/DriveItemItemRequestBuilder.cs | 6 +- .../RetentionLabelRequestBuilder.cs | 6 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Rows/RowsRequestBuilder.cs | 2 +- .../Item/Points/PointsRequestBuilder.cs | 8 +- .../Points/PointsRequestBuilder.cs | 8 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Rows/RowsRequestBuilder.cs | 2 +- .../Worksheets/WorksheetsRequestBuilder.cs | 2 +- .../ConversationsRequestBuilder.cs | 6 +- .../Item/ConversationItemRequestBuilder.cs | 8 +- .../Groups/Item/GroupItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationThreadItemRequestBuilder.cs | 10 +- .../GroupsWithUniqueNameRequestBuilder.cs | 6 +- .../Item/NamedLocationItemRequestBuilder.cs | 20 +- .../Item/AccessPackageItemRequestBuilder.cs | 8 +- ...ustomCalloutExtensionItemRequestBuilder.cs | 8 +- ...ustomCalloutExtensionItemRequestBuilder.cs | 8 +- .../Item/InvitationItemRequestBuilder.cs | 6 + .../Count/CountRequestBuilder.cs | 118 ++++++++ .../InvitedUserSponsorsRequestBuilder.cs | 177 ++++++++++++ .../Item/DirectoryObjectItemRequestBuilder.cs | 119 ++++++++ .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Me/Events/EventsRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Generated/Me/MeRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MessageItemRequestBuilder.cs | 2 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 8 +- .../Item/OutlookCategoryItemRequestBuilder.cs | 4 +- .../MasterCategoriesRequestBuilder.cs | 6 +- .../Models/AccessPackageResourceAttribute.cs | 14 + .../Generated/Models/Application.cs | 2 +- .../Generated/Models/Entity.cs | 10 + .../Generated/Models/Invitation.cs | 16 ++ .../Generated/Models/MessageRule.cs | 2 +- .../Models/RelyingPartyDetailedSummary.cs | 20 +- .../Security/ActionAfterRetentionPeriod.cs | 18 ++ .../Models/Security/AuthorityTemplate.cs | 40 +++ .../AuthorityTemplateCollectionResponse.cs | 56 ++++ .../Models/Security/CategoryTemplate.cs | 56 ++++ .../CategoryTemplateCollectionResponse.cs | 56 ++++ .../Models/Security/CitationTemplate.cs | 72 +++++ .../CitationTemplateCollectionResponse.cs | 56 ++++ .../Models/Security/DefaultRecordBehavior.cs | 14 + .../Models/Security/DepartmentTemplate.cs | 40 +++ .../DepartmentTemplateCollectionResponse.cs | 56 ++++ .../Models/Security/DispositionReviewStage.cs | 120 ++++++++ ...ispositionReviewStageCollectionResponse.cs | 56 ++++ .../Security/FilePlanAppliedCategory.cs | 56 ++++ .../Models/Security/FilePlanAuthority.cs | 40 +++ .../Models/Security/FilePlanCitation.cs | 72 +++++ .../Models/Security/FilePlanDepartment.cs | 40 +++ .../Models/Security/FilePlanDescriptor.cs | 200 ++++++++++++++ .../Models/Security/FilePlanDescriptorBase.cs | 98 +++++++ .../Security/FilePlanDescriptorTemplate.cs | 89 ++++++ .../Models/Security/FilePlanReference.cs | 40 +++ .../Security/FilePlanReferenceTemplate.cs | 40 +++ ...PlanReferenceTemplateCollectionResponse.cs | 56 ++++ .../Models/Security/FilePlanSubcategory.cs | 40 +++ .../Generated/Models/Security/LabelsRoot.cs | 136 +++++++++ .../Models/Security/RetentionDuration.cs | 78 ++++++ .../Security/RetentionDurationForever.cs | 47 ++++ .../Security/RetentionDurationInDays.cs | 54 ++++ .../Models/Security/RetentionLabel.cs | 249 +++++++++++++++++ .../RetentionLabelCollectionResponse.cs | 56 ++++ .../Models/Security/RetentionTrigger.cs | 18 ++ .../Generated/Models/Security/Security.cs | 16 ++ .../Models/Security/SubcategoryTemplate.cs | 40 +++ .../SubcategoryTemplateCollectionResponse.cs | 56 ++++ .../Generated/Models/SubjectSet.cs | 1 + .../Generated/Models/TargetUserSponsors.cs | 47 ++++ src/Microsoft.Graph/Generated/Models/User.cs | 2 +- .../Item/OrganizationItemRequestBuilder.cs | 6 +- .../Authorities/AuthoritiesRequestBuilder.cs | 231 ++++++++++++++++ .../Authorities/Count/CountRequestBuilder.cs | 118 ++++++++ .../AuthorityTemplateItemRequestBuilder.cs | 221 +++++++++++++++ .../Categories/CategoriesRequestBuilder.cs | 231 ++++++++++++++++ .../Categories/Count/CountRequestBuilder.cs | 118 ++++++++ .../CategoryTemplateItemRequestBuilder.cs | 227 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ .../SubcategoryTemplateItemRequestBuilder.cs | 221 +++++++++++++++ .../SubcategoriesRequestBuilder.cs | 231 ++++++++++++++++ .../Citations/CitationsRequestBuilder.cs | 231 ++++++++++++++++ .../Citations/Count/CountRequestBuilder.cs | 118 ++++++++ .../CitationTemplateItemRequestBuilder.cs | 221 +++++++++++++++ .../Departments/Count/CountRequestBuilder.cs | 118 ++++++++ .../Departments/DepartmentsRequestBuilder.cs | 231 ++++++++++++++++ .../DepartmentTemplateItemRequestBuilder.cs | 221 +++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ .../FilePlanReferencesRequestBuilder.cs | 231 ++++++++++++++++ ...PlanReferenceTemplateItemRequestBuilder.cs | 221 +++++++++++++++ .../Security/Labels/LabelsRequestBuilder.cs | 257 ++++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ .../AuthorityTemplateRequestBuilder.cs | 119 ++++++++ .../CategoryTemplateRequestBuilder.cs | 119 ++++++++ .../CitationTemplateRequestBuilder.cs | 119 ++++++++ .../DepartmentTemplateRequestBuilder.cs | 119 ++++++++ .../Descriptors/DescriptorsRequestBuilder.cs | 251 +++++++++++++++++ ...FilePlanReferenceTemplateRequestBuilder.cs | 119 ++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ .../DispositionReviewStagesRequestBuilder.cs | 231 ++++++++++++++++ ...eviewStageStageNumberItemRequestBuilder.cs | 221 +++++++++++++++ .../RetentionEventTypeRequestBuilder.cs | 119 ++++++++ .../Item/RetentionLabelItemRequestBuilder.cs | 239 ++++++++++++++++ .../RetentionLabelsRequestBuilder.cs | 231 ++++++++++++++++ .../Security/SecurityRequestBuilder.cs | 6 + .../Generated/Sites/SitesRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Users/Item/Events/EventsRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MessageItemRequestBuilder.cs | 2 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 8 +- .../Item/OutlookCategoryItemRequestBuilder.cs | 4 +- .../MasterCategoriesRequestBuilder.cs | 6 +- .../Users/Item/UserItemRequestBuilder.cs | 14 +- .../Generated/Users/UsersRequestBuilder.cs | 10 +- src/Microsoft.Graph/Generated/kiota-lock.json | 2 +- 162 files changed, 8809 insertions(+), 328 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/ActionAfterRetentionPeriod.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/CategoryTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/CategoryTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/CitationTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/CitationTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DefaultRecordBehavior.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStage.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStageCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanAppliedCategory.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanAuthority.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanCitation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanDepartment.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptor.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorBase.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanReference.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/FilePlanSubcategory.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/LabelsRoot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionDuration.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionDurationForever.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionDurationInDays.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionLabel.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionLabelCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RetentionTrigger.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplateCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TargetUserSponsors.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Authorities/AuthoritiesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Authorities/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Authorities/Item/AuthorityTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/CategoriesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/CategoryTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Item/SubcategoryTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/SubcategoriesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Citations/CitationsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Citations/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Citations/Item/CitationTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Departments/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Departments/DepartmentsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/Departments/Item/DepartmentTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/FilePlanReferencesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Item/FilePlanReferenceTemplateItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/LabelsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/AuthorityTemplate/AuthorityTemplateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CategoryTemplate/CategoryTemplateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CitationTemplate/CitationTemplateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DepartmentTemplate/DepartmentTemplateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DescriptorsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/FilePlanReferenceTemplate/FilePlanReferenceTemplateRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/DispositionReviewStagesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Item/DispositionReviewStageStageNumberItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionLabelItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/RetentionLabelsRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 7660e35aeda..405705226c9 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat. - /// Find more info here + /// Retrieve a conversationMember from a chat or channel. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -180,7 +180,7 @@ public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index a888673103c..d74b3e2fd1a 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -123,7 +123,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -147,7 +147,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index a4f46329063..7b4c8c969d4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -60,8 +60,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedAppProtection object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the managedAppProtection object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -185,7 +185,7 @@ public class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration : Requ { } /// - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the managedAppProtection object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index e9adbcadbcf..41b6862037c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index 3acf0594ce7..4ce3ac03e57 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -51,8 +51,8 @@ public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// List properties and relationships of the managedAppPolicy objects. - /// Find more info here + /// List properties and relationships of the managedAppConfiguration objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task PostAsync(ManagedAppPolicy body, Action(requestInfo, ManagedAppPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppConfiguration objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public ManagedAppPoliciesRequestBuilder WithUrl(string rawUrl) return new ManagedAppPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppConfiguration objects. /// public class ManagedAppPoliciesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 7b387e2af65..3d04517fba8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 2383cd32f5c..46e717315ae 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index 884235e7cf0..694be967faf 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -51,8 +51,8 @@ public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// List properties and relationships of the iosVppEBookAssignment objects. - /// Find more info here + /// List properties and relationships of the managedEBookAssignment objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -101,7 +101,7 @@ public async Task PostAsync(ManagedEBookAssignment body, return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,7 +151,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// public class AssignmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index 1377c894563..28d09066338 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -32,8 +32,8 @@ public ManagedEBookAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter r { } /// - /// Deletes a iosVppEBookAssignment. - /// Find more info here + /// Deletes a managedEBookAssignment. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBookAssignment object. - /// Find more info here + /// Read properties and relationships of the managedEBookAssignment object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public async Task PatchAsync(ManagedEBookAssignment body return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a iosVppEBookAssignment. + /// Deletes a managedEBookAssignment. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -181,7 +181,7 @@ public class ManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration { } /// - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index ea06b1da6d1..292db087793 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -85,8 +85,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -154,7 +154,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -211,7 +211,7 @@ public class ManagedEBookItemRequestBuilderDeleteRequestConfiguration : RequestC { } /// - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index 645eb39fc56..31a8ed4152c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs @@ -51,8 +51,8 @@ public ManagedEBooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// List properties and relationships of the managedEBook objects. - /// Find more info here + /// List properties and relationships of the iosVppEBook objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -101,7 +101,7 @@ public async Task PostAsync(ManagedEBook body, Action(requestInfo, ManagedEBook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,7 +151,7 @@ public ManagedEBooksRequestBuilder WithUrl(string rawUrl) return new ManagedEBooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// public class ManagedEBooksRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 002a8d5e35c..e8c8318c396 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -91,8 +91,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -160,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Read properties and relationships of the iosMobileAppConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public class ManagedDeviceMobileAppConfigurationItemRequestBuilderDeleteRequestC { } /// - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Read properties and relationships of the iosMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 9110975cea7..c6d28cc709d 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -51,8 +51,8 @@ public MobileAppConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requ { } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosMobileAppConfiguration objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -101,7 +101,7 @@ public async Task PostAsync(ManagedDeviceMo return await RequestAdapter.SendAsync(requestInfo, ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,7 +151,7 @@ public MobileAppConfigurationsRequestBuilder WithUrl(string rawUrl) return new MobileAppConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// public class MobileAppConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index 2f03099456c..9009add61e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -146,8 +146,8 @@ public MobileAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Deletes a iosiPadOSWebClip. - /// Find more info here + /// Deletes a iosVppApp. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -169,8 +169,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the mobileLobApp object. - /// Find more info here + /// Read properties and relationships of the managedIOSLobApp object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -193,8 +193,8 @@ public async Task GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windowsMobileMSI object. - /// Find more info here + /// Update the properties of a managedAndroidStoreApp object. + /// Find more info here /// /// A /// The request body @@ -219,7 +219,7 @@ public async Task PatchAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a iosiPadOSWebClip. + /// Deletes a iosVppApp. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -238,7 +238,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the mobileLobApp object. + /// Read properties and relationships of the managedIOSLobApp object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -257,7 +257,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windowsMobileMSI object. + /// Update the properties of a managedAndroidStoreApp object. /// /// A /// The request body @@ -295,7 +295,7 @@ public class MobileAppItemRequestBuilderDeleteRequestConfiguration : RequestConf { } /// - /// Read properties and relationships of the mobileLobApp object. + /// Read properties and relationships of the managedIOSLobApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 863a997087f..29362bba8ec 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -147,8 +147,8 @@ public MobileAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// List properties and relationships of the androidLobApp objects. - /// Find more info here + /// List properties and relationships of the managedAndroidLobApp objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -171,8 +171,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new macOSLobApp object. - /// Find more info here + /// Create a new managedAndroidLobApp object. + /// Find more info here /// /// A /// The request body @@ -197,7 +197,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the androidLobApp objects. + /// List properties and relationships of the managedAndroidLobApp objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -216,7 +216,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new macOSLobApp object. + /// Create a new managedAndroidLobApp object. /// /// A /// The request body @@ -247,7 +247,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidLobApp objects. + /// List properties and relationships of the managedAndroidLobApp objects. /// public class MobileAppsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index 445cc201b53..e12e5f9b3c4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -51,8 +51,8 @@ public DeviceCompliancePoliciesRequestBuilder(string rawUrl, IRequestAdapter req { } /// - /// List properties and relationships of the deviceCompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the windows81CompliancePolicy objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -75,8 +75,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new androidCompliancePolicy object. - /// Find more info here + /// Create a new iosCompliancePolicy object. + /// Find more info here /// /// A /// The request body @@ -101,7 +101,7 @@ public async Task PostAsync(DeviceCompliancePolicy body, return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the deviceCompliancePolicy objects. + /// List properties and relationships of the windows81CompliancePolicy objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new androidCompliancePolicy object. + /// Create a new iosCompliancePolicy object. /// /// A /// The request body @@ -151,7 +151,7 @@ public DeviceCompliancePoliciesRequestBuilder WithUrl(string rawUrl) return new DeviceCompliancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceCompliancePolicy objects. + /// List properties and relationships of the windows81CompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index a7e2d6c4491..2ca168d482e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -86,8 +86,8 @@ public DeviceCompliancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter r { } /// - /// Deletes a androidCompliancePolicy. - /// Find more info here + /// Deletes a macOSCompliancePolicy. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,8 +109,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windows10CompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the windows10MobileCompliancePolicy object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -133,8 +133,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windows10CompliancePolicy object. - /// Find more info here + /// Update the properties of a windows81CompliancePolicy object. + /// Find more info here /// /// A /// The request body @@ -159,7 +159,7 @@ public async Task PatchAsync(DeviceCompliancePolicy body return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a androidCompliancePolicy. + /// Deletes a macOSCompliancePolicy. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -178,7 +178,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windows10CompliancePolicy object. + /// Read properties and relationships of the windows10MobileCompliancePolicy object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -197,7 +197,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows10CompliancePolicy object. + /// Update the properties of a windows81CompliancePolicy object. /// /// A /// The request body @@ -235,7 +235,7 @@ public class DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration { } /// - /// Read properties and relationships of the windows10CompliancePolicy object. + /// Read properties and relationships of the windows10MobileCompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 3f595d80b63..fe4f4abf555 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -51,8 +51,8 @@ public DeviceConfigurationsRequestBuilder(string rawUrl, IRequestAdapter request { } /// - /// List properties and relationships of the androidCustomConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosCertificateProfile objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -75,8 +75,8 @@ public async Task GetAsync(Action(requestInfo, DeviceConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new editionUpgradeConfiguration object. - /// Find more info here + /// Create a new windowsPhone81CustomConfiguration object. + /// Find more info here /// /// A /// The request body @@ -101,7 +101,7 @@ public async Task PostAsync(DeviceConfiguration body, Actio return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the androidCustomConfiguration objects. + /// List properties and relationships of the iosCertificateProfile objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new editionUpgradeConfiguration object. + /// Create a new windowsPhone81CustomConfiguration object. /// /// A /// The request body @@ -151,7 +151,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidCustomConfiguration objects. + /// List properties and relationships of the iosCertificateProfile objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index bf0dbed8922..8fedf495e0a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -75,8 +75,8 @@ public DeviceConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requ { } /// - /// Deletes a iosGeneralDeviceConfiguration. - /// Find more info here + /// Deletes a iosCustomConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,8 +98,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceConfiguration object. - /// Find more info here + /// Read properties and relationships of the iosDeviceFeaturesConfiguration object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -132,8 +132,8 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder GetOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters, RequestAdapter, secretReferenceValueId); } /// - /// Update the properties of a windows81GeneralConfiguration object. - /// Find more info here + /// Update the properties of a windows10TeamGeneralConfiguration object. + /// Find more info here /// /// A /// The request body @@ -158,7 +158,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a iosGeneralDeviceConfiguration. + /// Deletes a iosCustomConfiguration. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -177,7 +177,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceConfiguration object. + /// Read properties and relationships of the iosDeviceFeaturesConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows81GeneralConfiguration object. + /// Update the properties of a windows10TeamGeneralConfiguration object. /// /// A /// The request body @@ -234,7 +234,7 @@ public class DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration : R { } /// - /// Read properties and relationships of the deviceConfiguration object. + /// Read properties and relationships of the iosDeviceFeaturesConfiguration object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index 16fb267fae8..b2d1d93f3a1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -75,8 +75,8 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Find more info here /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentLimitConfiguration object. + /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 9d64b5327df..2bd03f92863 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Read properties and relationships of the deviceEnrollmentConfiguration object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -97,8 +97,8 @@ public async Task GetAsync(Action(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// A /// The request body @@ -142,7 +142,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -161,7 +161,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentLimitConfiguration object. + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// A /// The request body @@ -199,7 +199,7 @@ public class DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfigu { } /// - /// Read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 40e9233e3a1..1355333670e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -389,7 +389,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -423,7 +423,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index 3a7717ed08a..ed362d373ab 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -38,8 +38,8 @@ public RoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// Deletes a deviceAndAppManagementRoleDefinition. - /// Find more info here + /// Deletes a roleDefinition. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -61,8 +61,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the roleDefinition object. - /// Find more info here + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -111,7 +111,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceAndAppManagementRoleDefinition. + /// Deletes a roleDefinition. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -187,7 +187,7 @@ public class RoleDefinitionItemRequestBuilderDeleteRequestConfiguration : Reques { } /// - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// public class RoleDefinitionItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index a309a3845e8..5362013ec5b 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -75,8 +75,8 @@ public async Task GetAsync(Action(requestInfo, RoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new roleDefinition object. - /// Find more info here + /// Create a new deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new roleDefinition object. + /// Create a new deviceAndAppManagementRoleDefinition object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 9dadfdb12d2..9b8b1e8d596 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -273,8 +273,8 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. - /// Find more info here + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + /// Find more info here /// /// A /// The request body @@ -347,7 +347,7 @@ public RequestInformation ToGetRequestInformation(Action - /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs index 30e2dd946cc..c6acdf97883 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs @@ -78,8 +78,8 @@ public async Task GetAsync(Action(requestInfo, ItemRetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. - /// Find more info here + /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + /// Find more info here /// /// A /// The request body @@ -142,7 +142,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index 1197cedfb2c..a2173325f34 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -59,7 +59,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 97f948dd78f..6b596009fe8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -59,7 +59,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 89727b2e720..dc71138168d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -33,7 +33,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index e0f8ab93690..4af3c82e55f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -33,7 +33,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index 5c6ca1c855e..356c5c82a44 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -52,8 +52,8 @@ public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -112,7 +112,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -162,7 +162,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs index ac9be42fb3c..24c435ef831 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs @@ -32,8 +32,8 @@ public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -82,7 +82,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +132,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index dd6df877b25..e78ee642e35 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -59,7 +59,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index ba947c9e25d..2f3a18ed81c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -59,7 +59,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 640851ee6c8..d8b309a9123 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -33,7 +33,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index d9328bd0f70..6147deb4dd8 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -33,7 +33,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index 9734eb048f8..bbd63854d3e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -58,7 +58,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Retrieve a list of worksheet objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index ca33d847b6b..7a0157cf99a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -75,8 +75,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use reply thread or reply post to further post to that conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use reply thread or reply post to further post to that conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 54b5746673c..a5be9fc4120 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -61,8 +61,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of conversation object. - /// Find more info here + /// The group's conversations. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -139,7 +139,7 @@ public class ConversationItemRequestBuilderDeleteRequestConfiguration : RequestC { } /// - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// public class ConversationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs index 57e368cb61e..e016d46889b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs @@ -337,8 +337,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a group object. - /// Find more info here + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Find more info here /// /// A /// The request body @@ -401,7 +401,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a group object. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 1af38992280..19e6e0a6128 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 4b6ff61e145..10f2c8e94ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 98187093ec9..9b9cffcc62d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -45,7 +45,7 @@ public ConversationThreadItemRequestBuilder(string rawUrl, IRequestAdapter reque } /// /// Delete conversationThread. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task DeleteAsync(Action - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get a thread object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get a thread object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -193,7 +193,7 @@ public class ConversationThreadItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get a thread object. /// public class ConversationThreadItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs index 87bf8f78819..438ab4206fe 100644 --- a/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs @@ -81,8 +81,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a group object. - /// Find more info here + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. + /// Find more info here /// /// A /// The request body @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a group object. + /// Add a member to a security or Microsoft 365 group through the members navigation property. The following table shows the types of members that can be added to either security groups or Microsoft 365 groups. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 4758430e0fd..48a45ef115b 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -32,8 +32,8 @@ public NamedLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAda { } /// - /// Delete a countryNamedLocation object. - /// Find more info here + /// Delete an ipNamedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a namedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of an ipNamedLocation object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ipNamedLocation object. - /// Find more info here + /// Update the properties of a countryNamedLocation object. + /// Find more info here /// /// A /// The request body @@ -105,7 +105,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a countryNamedLocation object. + /// Delete an ipNamedLocation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ipNamedLocation object. + /// Update the properties of a countryNamedLocation object. /// /// A /// The request body @@ -181,7 +181,7 @@ public class NamedLocationItemRequestBuilderDeleteRequestConfiguration : Request { } /// - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index f64fa2fad61..689ec82a8e7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -97,8 +97,8 @@ public async Task DeleteAsync(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. - /// Find more info here + /// Retrieve the properties and relationships of an accessPackage object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -166,7 +166,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -223,7 +223,7 @@ public class AccessPackageItemRequestBuilderDeleteRequestConfiguration : Request { } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// public class AccessPackageItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index a71206d484c..b626fe9b8b8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -181,7 +181,7 @@ public class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration { } /// - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index 57ec05212f8..d268e62ec7f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -181,7 +181,7 @@ public class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration { } /// - /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs index ab2b7bb3958..181e7905d17 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitationItemRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Invitations.Item.InvitedUser; +using Microsoft.Graph.Invitations.Item.InvitedUserSponsors; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -21,6 +22,11 @@ public InvitedUserRequestBuilder InvitedUser { get => new InvitedUserRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + public InvitedUserSponsorsRequestBuilder InvitedUserSponsors + { + get => new InvitedUserSponsorsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7c9315b2bbd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUserSponsors.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilder.cs new file mode 100644 index 00000000000..8dcab4119ac --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/InvitedUserSponsorsRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Microsoft.Graph.Invitations.Item.InvitedUserSponsors.Count; +using Microsoft.Graph.Invitations.Item.InvitedUserSponsors.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUserSponsors { + /// + /// Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + /// + public class InvitedUserSponsorsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + /// The unique identifier of directoryObject + /// A + public DirectoryObjectItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("directoryObject%2Did", position); + return new DirectoryObjectItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InvitedUserSponsorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InvitedUserSponsorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get invitedUserSponsors from invitations + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get invitedUserSponsors from invitations + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public InvitedUserSponsorsRequestBuilder WithUrl(string rawUrl) + { + return new InvitedUserSponsorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get invitedUserSponsors from invitations + /// + public class InvitedUserSponsorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class InvitedUserSponsorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilder.cs new file mode 100644 index 00000000000..48aecd742a4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUserSponsors/Item/DirectoryObjectItemRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUserSponsors.Item { + /// + /// Provides operations to manage the invitedUserSponsors property of the microsoft.graph.invitation entity. + /// + public class DirectoryObjectItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DirectoryObjectItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUserSponsors/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get invitedUserSponsors from invitations + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get invitedUserSponsors from invitations + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DirectoryObjectItemRequestBuilder WithUrl(string rawUrl) + { + return new DirectoryObjectItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get invitedUserSponsors from invitations + /// + public class DirectoryObjectItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DirectoryObjectItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index c094deb8069..0dd6c518d0d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat. - /// Find more info here + /// Retrieve a conversationMember from a chat or channel. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -180,7 +180,7 @@ public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs index 5aba9cf4ac4..baf364a24c4 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because thestart and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipmentlike a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejectsthe meeting request based on the free/busy schedule of the resource.If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled,the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because thestart and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipmentlike a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejectsthe meeting request based on the free/busy schedule of the resource.If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled,the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 77fe7cbcc9a..820b5ac298b 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 6125e1668b0..f4dd6e3d7b7 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 630c400df31..097c64f6e00 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new mailSearchFolder in the specified user's mailbox. - /// Find more info here + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new mailSearchFolder in the specified user's mailbox. + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 75657279927..c804e0308ee 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index ae90d00cf6b..48978c125ac 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 4ffeb67fb41..91e94c561b9 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -484,8 +484,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. - /// Find more info here + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -546,7 +546,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -596,7 +596,7 @@ public MeRequestBuilder WithUrl(string rawUrl) return new MeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. /// public class MeRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index cb6e4841881..9ab7fbc10b9 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 29c4cdca1e7..1ef9f4e09ce 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -128,7 +128,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 4026b80863f..5ae8d5e0e25 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -32,7 +32,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 2b01e98d8ca..55c29e1a337 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -58,7 +58,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index 6391f083baa..4ae010a9b47 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName property once you have created the category. /// Find more info here /// /// A @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName property once you have created the category. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index 6f9cce4e7d8..5aa301a7f03 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -51,7 +51,7 @@ public MasterCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// Find more info here /// /// A @@ -101,7 +101,7 @@ public async Task PostAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,7 +151,7 @@ public MasterCategoriesRequestBuilder WithUrl(string rawUrl) return new MasterCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// public class MasterCategoriesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs index 27c3779a945..3554ddd692d 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs @@ -29,6 +29,16 @@ public AccessPackageResourceAttributeDestination Destination { set { BackingStore?.Set("destination", value); } } #endif + /// The isEditable property + public bool? IsEditable { + get { return BackingStore?.Get("isEditable"); } + set { BackingStore?.Set("isEditable", value); } + } + /// The isPersistedOnAssignmentRemoval property + public bool? IsPersistedOnAssignmentRemoval { + get { return BackingStore?.Get("isPersistedOnAssignmentRemoval"); } + set { BackingStore?.Set("isPersistedOnAssignmentRemoval", value); } + } /// The name of the attribute in the end system. If the destination is accessPackageUserDirectoryAttributeStore, then a user property such as jobTitle or a directory schema extension for the user object type, such as extension2b676109c7c74ae2b41549205f1947edpersonalTitle. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -98,6 +108,8 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { {"destination", n => { Destination = n.GetObjectValue(AccessPackageResourceAttributeDestination.CreateFromDiscriminatorValue); } }, + {"isEditable", n => { IsEditable = n.GetBoolValue(); } }, + {"isPersistedOnAssignmentRemoval", n => { IsPersistedOnAssignmentRemoval = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"source", n => { Source = n.GetObjectValue(AccessPackageResourceAttributeSource.CreateFromDiscriminatorValue); } }, @@ -111,6 +123,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("destination", Destination); + writer.WriteBoolValue("isEditable", IsEditable); + writer.WriteBoolValue("isPersistedOnAssignmentRemoval", IsPersistedOnAssignmentRemoval); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); writer.WriteObjectValue("source", Source); diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index c71d1156e29..7ebea7b3c7e 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -475,7 +475,7 @@ public Microsoft.Graph.Models.ServicePrincipalLockConfiguration ServicePrincipal set { BackingStore?.Set("servicePrincipalLockConfiguration", value); } } #endif - /// Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). + /// Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SignInAudience { diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 1701cc39f1c..7ccdd24eddf 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -643,12 +643,16 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.security.article" => new Article(), "#microsoft.graph.security.articleIndicator" => new ArticleIndicator(), "#microsoft.graph.security.artifact" => new Microsoft.Graph.Models.Security.Artifact(), + "#microsoft.graph.security.authorityTemplate" => new Microsoft.Graph.Models.Security.AuthorityTemplate(), "#microsoft.graph.security.case" => new Case(), "#microsoft.graph.security.caseOperation" => new CaseOperation(), "#microsoft.graph.security.casesRoot" => new CasesRoot(), + "#microsoft.graph.security.categoryTemplate" => new Microsoft.Graph.Models.Security.CategoryTemplate(), + "#microsoft.graph.security.citationTemplate" => new Microsoft.Graph.Models.Security.CitationTemplate(), "#microsoft.graph.security.dataSet" => new DataSet(), "#microsoft.graph.security.dataSource" => new Microsoft.Graph.Models.Security.DataSource(), "#microsoft.graph.security.dataSourceContainer" => new DataSourceContainer(), + "#microsoft.graph.security.departmentTemplate" => new Microsoft.Graph.Models.Security.DepartmentTemplate(), "#microsoft.graph.security.ediscoveryAddToReviewSetOperation" => new EdiscoveryAddToReviewSetOperation(), "#microsoft.graph.security.ediscoveryCase" => new EdiscoveryCase(), "#microsoft.graph.security.ediscoveryCaseSettings" => new EdiscoveryCaseSettings(), @@ -664,6 +668,9 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.security.ediscoveryReviewTag" => new EdiscoveryReviewTag(), "#microsoft.graph.security.ediscoverySearch" => new EdiscoverySearch(), "#microsoft.graph.security.ediscoveryTagOperation" => new EdiscoveryTagOperation(), + "#microsoft.graph.security.filePlanDescriptor" => new FilePlanDescriptor(), + "#microsoft.graph.security.filePlanDescriptorTemplate" => new FilePlanDescriptorTemplate(), + "#microsoft.graph.security.filePlanReferenceTemplate" => new Microsoft.Graph.Models.Security.FilePlanReferenceTemplate(), "#microsoft.graph.security.host" => new Microsoft.Graph.Models.Security.Host(), "#microsoft.graph.security.hostComponent" => new HostComponent(), "#microsoft.graph.security.hostCookie" => new HostCookie(), @@ -678,12 +685,15 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.security.intelligenceProfile" => new IntelligenceProfile(), "#microsoft.graph.security.intelligenceProfileIndicator" => new IntelligenceProfileIndicator(), "#microsoft.graph.security.ipAddress" => new IpAddress(), + "#microsoft.graph.security.labelsRoot" => new LabelsRoot(), "#microsoft.graph.security.passiveDnsRecord" => new PassiveDnsRecord(), "#microsoft.graph.security.retentionEvent" => new RetentionEvent(), "#microsoft.graph.security.retentionEventType" => new Microsoft.Graph.Models.Security.RetentionEventType(), + "#microsoft.graph.security.retentionLabel" => new Microsoft.Graph.Models.Security.RetentionLabel(), "#microsoft.graph.security.search" => new Microsoft.Graph.Models.Security.Search(), "#microsoft.graph.security.siteSource" => new SiteSource(), "#microsoft.graph.security.sslCertificate" => new Microsoft.Graph.Models.Security.SslCertificate(), + "#microsoft.graph.security.subcategoryTemplate" => new SubcategoryTemplate(), "#microsoft.graph.security.subdomain" => new Subdomain(), "#microsoft.graph.security.tag" => new Tag(), "#microsoft.graph.security.threatIntelligence" => new Microsoft.Graph.Models.Security.ThreatIntelligence(), diff --git a/src/Microsoft.Graph/Generated/Models/Invitation.cs b/src/Microsoft.Graph/Generated/Models/Invitation.cs index f84eb0e3f4d..67c70fddda1 100644 --- a/src/Microsoft.Graph/Generated/Models/Invitation.cs +++ b/src/Microsoft.Graph/Generated/Models/Invitation.cs @@ -62,6 +62,20 @@ public Microsoft.Graph.Models.InvitedUserMessageInfo InvitedUserMessageInfo { get { return BackingStore?.Get("invitedUserMessageInfo"); } set { BackingStore?.Set("invitedUserMessageInfo", value); } } +#endif + /// The invitedUserSponsors property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InvitedUserSponsors { + get { return BackingStore?.Get?>("invitedUserSponsors"); } + set { BackingStore?.Set("invitedUserSponsors", value); } + } +#nullable restore +#else + public List InvitedUserSponsors { + get { return BackingStore?.Get>("invitedUserSponsors"); } + set { BackingStore?.Set("invitedUserSponsors", value); } + } #endif /// The userType of the user being invited. By default, this is Guest. You can invite as Member if you're a company administrator. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,6 +167,7 @@ public override IDictionary> GetFieldDeserializers() {"invitedUserDisplayName", n => { InvitedUserDisplayName = n.GetStringValue(); } }, {"invitedUserEmailAddress", n => { InvitedUserEmailAddress = n.GetStringValue(); } }, {"invitedUserMessageInfo", n => { InvitedUserMessageInfo = n.GetObjectValue(Microsoft.Graph.Models.InvitedUserMessageInfo.CreateFromDiscriminatorValue); } }, + {"invitedUserSponsors", n => { InvitedUserSponsors = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"invitedUserType", n => { InvitedUserType = n.GetStringValue(); } }, {"resetRedemption", n => { ResetRedemption = n.GetBoolValue(); } }, {"sendInvitationMessage", n => { SendInvitationMessage = n.GetBoolValue(); } }, @@ -171,6 +186,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("invitedUserDisplayName", InvitedUserDisplayName); writer.WriteStringValue("invitedUserEmailAddress", InvitedUserEmailAddress); writer.WriteObjectValue("invitedUserMessageInfo", InvitedUserMessageInfo); + writer.WriteCollectionOfObjectValues("invitedUserSponsors", InvitedUserSponsors); writer.WriteStringValue("invitedUserType", InvitedUserType); writer.WriteStringValue("inviteRedeemUrl", InviteRedeemUrl); writer.WriteStringValue("inviteRedirectUrl", InviteRedirectUrl); diff --git a/src/Microsoft.Graph/Generated/Models/MessageRule.cs b/src/Microsoft.Graph/Generated/Models/MessageRule.cs index 02519f9b019..80828837c0e 100644 --- a/src/Microsoft.Graph/Generated/Models/MessageRule.cs +++ b/src/Microsoft.Graph/Generated/Models/MessageRule.cs @@ -21,7 +21,7 @@ public MessageRuleActions Actions { set { BackingStore?.Set("actions", value); } } #endif - /// Conditions that when fulfilled, will trigger the corresponding actions for that rule. + /// Conditions that when fulfilled trigger the corresponding actions for that rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public MessageRulePredicates? Conditions { diff --git a/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs b/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs index d2a4b46a50d..5cd6c6005f4 100644 --- a/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs @@ -7,7 +7,7 @@ namespace Microsoft.Graph.Models { public class RelyingPartyDetailedSummary : Entity, IParsable { - /// The failedSignInCount property + /// Number of failed sign ins on AD FS in the period specified. Supports $orderby, $filter (eq). public long? FailedSignInCount { get { return BackingStore?.Get("failedSignInCount"); } set { BackingStore?.Set("failedSignInCount", value); } @@ -17,7 +17,7 @@ public Microsoft.Graph.Models.MigrationStatus? MigrationStatus { get { return BackingStore?.Get("migrationStatus"); } set { BackingStore?.Set("migrationStatus", value); } } - /// The migrationValidationDetails property + /// Specifies all the validations checks done on applications config details. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? MigrationValidationDetails { @@ -31,7 +31,7 @@ public List MigrationValidationDetails { set { BackingStore?.Set("migrationValidationDetails", value); } } #endif - /// The relyingPartyId property + /// Identifies the relying party to this federation service. It's used when issuing claims to the relying party. Supports $orderby, $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RelyingPartyId { @@ -45,7 +45,7 @@ public string RelyingPartyId { set { BackingStore?.Set("relyingPartyId", value); } } #endif - /// The relyingPartyName property + /// Name of the relying party's website or other entity on the Internet that uses an identity provider to authenticate a user who wants to log in. Supports $orderby, $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RelyingPartyName { @@ -59,7 +59,7 @@ public string RelyingPartyName { set { BackingStore?.Set("relyingPartyName", value); } } #endif - /// The replyUrls property + /// Specifies where the relying party expects to receive the token. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ReplyUrls { @@ -73,7 +73,7 @@ public List ReplyUrls { set { BackingStore?.Set("replyUrls", value); } } #endif - /// The serviceId property + /// Uniquely identifies the Active Directory forest. Supports $orderby, $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ServiceId { @@ -87,22 +87,22 @@ public string ServiceId { set { BackingStore?.Set("serviceId", value); } } #endif - /// The signInSuccessRate property + /// Calculated as Number of successful / (Number of successful + Number of failed sign ins) or successfulSignInCount / totalSignInCount on AD FS in the period specified. Supports $orderby, $filter (eq). public double? SignInSuccessRate { get { return BackingStore?.Get("signInSuccessRate"); } set { BackingStore?.Set("signInSuccessRate", value); } } - /// The successfulSignInCount property + /// Number of successful sign ins on AD FS. Supports $orderby, $filter (eq). public long? SuccessfulSignInCount { get { return BackingStore?.Get("successfulSignInCount"); } set { BackingStore?.Set("successfulSignInCount", value); } } - /// The totalSignInCount property + /// Number of successful + failed sign ins on AD FS in the period specified. Supports $orderby, $filter (eq). public long? TotalSignInCount { get { return BackingStore?.Get("totalSignInCount"); } set { BackingStore?.Set("totalSignInCount", value); } } - /// The uniqueUserCount property + /// Number of unique users that signed into the application. Supports $orderby, $filter (eq). public long? UniqueUserCount { get { return BackingStore?.Get("uniqueUserCount"); } set { BackingStore?.Set("uniqueUserCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/ActionAfterRetentionPeriod.cs b/src/Microsoft.Graph/Generated/Models/Security/ActionAfterRetentionPeriod.cs new file mode 100644 index 00000000000..279c1ce426e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/ActionAfterRetentionPeriod.cs @@ -0,0 +1,18 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum ActionAfterRetentionPeriod + { + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "delete")] + Delete, + [EnumMember(Value = "startDispositionReview")] + StartDispositionReview, + [EnumMember(Value = "relabel")] + Relabel, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplate.cs new file mode 100644 index 00000000000..eb11ab4df5a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplate.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class AuthorityTemplate : FilePlanDescriptorTemplate, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new AuthorityTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthorityTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplateCollectionResponse.cs new file mode 100644 index 00000000000..e7db091ba03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/AuthorityTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class AuthorityTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new AuthorityTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthorityTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(AuthorityTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplate.cs new file mode 100644 index 00000000000..f9b756e024d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplate.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class CategoryTemplate : FilePlanDescriptorTemplate, IParsable + { + /// The subcategories property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Subcategories { + get { return BackingStore?.Get?>("subcategories"); } + set { BackingStore?.Set("subcategories", value); } + } +#nullable restore +#else + public List Subcategories { + get { return BackingStore?.Get>("subcategories"); } + set { BackingStore?.Set("subcategories", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CategoryTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CategoryTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"subcategories", n => { Subcategories = n.GetCollectionOfObjectValues(SubcategoryTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("subcategories", Subcategories); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplateCollectionResponse.cs new file mode 100644 index 00000000000..d24b39bb197 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/CategoryTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class CategoryTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CategoryTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CategoryTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(CategoryTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/CitationTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/CitationTemplate.cs new file mode 100644 index 00000000000..182c50bc707 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/CitationTemplate.cs @@ -0,0 +1,72 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class CitationTemplate : FilePlanDescriptorTemplate, IParsable + { + /// The citationJurisdiction property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CitationJurisdiction { + get { return BackingStore?.Get("citationJurisdiction"); } + set { BackingStore?.Set("citationJurisdiction", value); } + } +#nullable restore +#else + public string CitationJurisdiction { + get { return BackingStore?.Get("citationJurisdiction"); } + set { BackingStore?.Set("citationJurisdiction", value); } + } +#endif + /// The citationUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CitationUrl { + get { return BackingStore?.Get("citationUrl"); } + set { BackingStore?.Set("citationUrl", value); } + } +#nullable restore +#else + public string CitationUrl { + get { return BackingStore?.Get("citationUrl"); } + set { BackingStore?.Set("citationUrl", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CitationTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CitationTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"citationJurisdiction", n => { CitationJurisdiction = n.GetStringValue(); } }, + {"citationUrl", n => { CitationUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("citationJurisdiction", CitationJurisdiction); + writer.WriteStringValue("citationUrl", CitationUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/CitationTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/CitationTemplateCollectionResponse.cs new file mode 100644 index 00000000000..9089e548900 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/CitationTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class CitationTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CitationTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CitationTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(CitationTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DefaultRecordBehavior.cs b/src/Microsoft.Graph/Generated/Models/Security/DefaultRecordBehavior.cs new file mode 100644 index 00000000000..3f5c2d005c3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DefaultRecordBehavior.cs @@ -0,0 +1,14 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum DefaultRecordBehavior + { + [EnumMember(Value = "startLocked")] + StartLocked, + [EnumMember(Value = "startUnlocked")] + StartUnlocked, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplate.cs new file mode 100644 index 00000000000..cc0a395c197 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplate.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class DepartmentTemplate : FilePlanDescriptorTemplate, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new DepartmentTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DepartmentTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplateCollectionResponse.cs new file mode 100644 index 00000000000..d8190660908 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DepartmentTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class DepartmentTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new DepartmentTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DepartmentTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(DepartmentTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStage.cs b/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStage.cs new file mode 100644 index 00000000000..c4eef21227f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStage.cs @@ -0,0 +1,120 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class DispositionReviewStage : IAdditionalDataHolder, IBackedModel, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#nullable restore +#else + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The reviewersEmailAddresses property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ReviewersEmailAddresses { + get { return BackingStore?.Get?>("reviewersEmailAddresses"); } + set { BackingStore?.Set("reviewersEmailAddresses", value); } + } +#nullable restore +#else + public List ReviewersEmailAddresses { + get { return BackingStore?.Get>("reviewersEmailAddresses"); } + set { BackingStore?.Set("reviewersEmailAddresses", value); } + } +#endif + /// The stageNumber property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? StageNumber { + get { return BackingStore?.Get("stageNumber"); } + set { BackingStore?.Set("stageNumber", value); } + } +#nullable restore +#else + public string StageNumber { + get { return BackingStore?.Get("stageNumber"); } + set { BackingStore?.Set("stageNumber", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DispositionReviewStage() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static DispositionReviewStage CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DispositionReviewStage(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"name", n => { Name = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"reviewersEmailAddresses", n => { ReviewersEmailAddresses = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"stageNumber", n => { StageNumber = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteCollectionOfPrimitiveValues("reviewersEmailAddresses", ReviewersEmailAddresses); + writer.WriteStringValue("stageNumber", StageNumber); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStageCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStageCollectionResponse.cs new file mode 100644 index 00000000000..95c21f5a752 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DispositionReviewStageCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class DispositionReviewStageCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new DispositionReviewStageCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DispositionReviewStageCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(DispositionReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanAppliedCategory.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanAppliedCategory.cs new file mode 100644 index 00000000000..4f2c10c4044 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanAppliedCategory.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanAppliedCategory : FilePlanDescriptorBase, IParsable + { + /// The subcategory property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanSubcategory? Subcategory { + get { return BackingStore?.Get("subcategory"); } + set { BackingStore?.Set("subcategory", value); } + } +#nullable restore +#else + public FilePlanSubcategory Subcategory { + get { return BackingStore?.Get("subcategory"); } + set { BackingStore?.Set("subcategory", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanAppliedCategory CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanAppliedCategory(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"subcategory", n => { Subcategory = n.GetObjectValue(FilePlanSubcategory.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("subcategory", Subcategory); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanAuthority.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanAuthority.cs new file mode 100644 index 00000000000..293b3147d6d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanAuthority.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanAuthority : FilePlanDescriptorBase, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanAuthority CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanAuthority(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanCitation.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanCitation.cs new file mode 100644 index 00000000000..243b6d5a482 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanCitation.cs @@ -0,0 +1,72 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanCitation : FilePlanDescriptorBase, IParsable + { + /// The citationJurisdiction property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CitationJurisdiction { + get { return BackingStore?.Get("citationJurisdiction"); } + set { BackingStore?.Set("citationJurisdiction", value); } + } +#nullable restore +#else + public string CitationJurisdiction { + get { return BackingStore?.Get("citationJurisdiction"); } + set { BackingStore?.Set("citationJurisdiction", value); } + } +#endif + /// The citationUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CitationUrl { + get { return BackingStore?.Get("citationUrl"); } + set { BackingStore?.Set("citationUrl", value); } + } +#nullable restore +#else + public string CitationUrl { + get { return BackingStore?.Get("citationUrl"); } + set { BackingStore?.Set("citationUrl", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanCitation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanCitation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"citationJurisdiction", n => { CitationJurisdiction = n.GetStringValue(); } }, + {"citationUrl", n => { CitationUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("citationJurisdiction", CitationJurisdiction); + writer.WriteStringValue("citationUrl", CitationUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanDepartment.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDepartment.cs new file mode 100644 index 00000000000..dfec3114c77 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDepartment.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanDepartment : FilePlanDescriptorBase, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanDepartment CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanDepartment(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptor.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptor.cs new file mode 100644 index 00000000000..e7b72c92df9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptor.cs @@ -0,0 +1,200 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanDescriptor : Microsoft.Graph.Models.Entity, IParsable + { + /// The authority property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanAuthority? Authority { + get { return BackingStore?.Get("authority"); } + set { BackingStore?.Set("authority", value); } + } +#nullable restore +#else + public FilePlanAuthority Authority { + get { return BackingStore?.Get("authority"); } + set { BackingStore?.Set("authority", value); } + } +#endif + /// The authorityTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.AuthorityTemplate? AuthorityTemplate { + get { return BackingStore?.Get("authorityTemplate"); } + set { BackingStore?.Set("authorityTemplate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.AuthorityTemplate AuthorityTemplate { + get { return BackingStore?.Get("authorityTemplate"); } + set { BackingStore?.Set("authorityTemplate", value); } + } +#endif + /// The category property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanAppliedCategory? Category { + get { return BackingStore?.Get("category"); } + set { BackingStore?.Set("category", value); } + } +#nullable restore +#else + public FilePlanAppliedCategory Category { + get { return BackingStore?.Get("category"); } + set { BackingStore?.Set("category", value); } + } +#endif + /// The categoryTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.CategoryTemplate? CategoryTemplate { + get { return BackingStore?.Get("categoryTemplate"); } + set { BackingStore?.Set("categoryTemplate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.CategoryTemplate CategoryTemplate { + get { return BackingStore?.Get("categoryTemplate"); } + set { BackingStore?.Set("categoryTemplate", value); } + } +#endif + /// The citation property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanCitation? Citation { + get { return BackingStore?.Get("citation"); } + set { BackingStore?.Set("citation", value); } + } +#nullable restore +#else + public FilePlanCitation Citation { + get { return BackingStore?.Get("citation"); } + set { BackingStore?.Set("citation", value); } + } +#endif + /// The citationTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.CitationTemplate? CitationTemplate { + get { return BackingStore?.Get("citationTemplate"); } + set { BackingStore?.Set("citationTemplate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.CitationTemplate CitationTemplate { + get { return BackingStore?.Get("citationTemplate"); } + set { BackingStore?.Set("citationTemplate", value); } + } +#endif + /// The department property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanDepartment? Department { + get { return BackingStore?.Get("department"); } + set { BackingStore?.Set("department", value); } + } +#nullable restore +#else + public FilePlanDepartment Department { + get { return BackingStore?.Get("department"); } + set { BackingStore?.Set("department", value); } + } +#endif + /// The departmentTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.DepartmentTemplate? DepartmentTemplate { + get { return BackingStore?.Get("departmentTemplate"); } + set { BackingStore?.Set("departmentTemplate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.DepartmentTemplate DepartmentTemplate { + get { return BackingStore?.Get("departmentTemplate"); } + set { BackingStore?.Set("departmentTemplate", value); } + } +#endif + /// The filePlanReference property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.FilePlanReference? FilePlanReference { + get { return BackingStore?.Get("filePlanReference"); } + set { BackingStore?.Set("filePlanReference", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.FilePlanReference FilePlanReference { + get { return BackingStore?.Get("filePlanReference"); } + set { BackingStore?.Set("filePlanReference", value); } + } +#endif + /// The filePlanReferenceTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.FilePlanReferenceTemplate? FilePlanReferenceTemplate { + get { return BackingStore?.Get("filePlanReferenceTemplate"); } + set { BackingStore?.Set("filePlanReferenceTemplate", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.FilePlanReferenceTemplate FilePlanReferenceTemplate { + get { return BackingStore?.Get("filePlanReferenceTemplate"); } + set { BackingStore?.Set("filePlanReferenceTemplate", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanDescriptor CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanDescriptor(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"authority", n => { Authority = n.GetObjectValue(FilePlanAuthority.CreateFromDiscriminatorValue); } }, + {"authorityTemplate", n => { AuthorityTemplate = n.GetObjectValue(Microsoft.Graph.Models.Security.AuthorityTemplate.CreateFromDiscriminatorValue); } }, + {"category", n => { Category = n.GetObjectValue(FilePlanAppliedCategory.CreateFromDiscriminatorValue); } }, + {"categoryTemplate", n => { CategoryTemplate = n.GetObjectValue(Microsoft.Graph.Models.Security.CategoryTemplate.CreateFromDiscriminatorValue); } }, + {"citation", n => { Citation = n.GetObjectValue(FilePlanCitation.CreateFromDiscriminatorValue); } }, + {"citationTemplate", n => { CitationTemplate = n.GetObjectValue(Microsoft.Graph.Models.Security.CitationTemplate.CreateFromDiscriminatorValue); } }, + {"department", n => { Department = n.GetObjectValue(FilePlanDepartment.CreateFromDiscriminatorValue); } }, + {"departmentTemplate", n => { DepartmentTemplate = n.GetObjectValue(Microsoft.Graph.Models.Security.DepartmentTemplate.CreateFromDiscriminatorValue); } }, + {"filePlanReference", n => { FilePlanReference = n.GetObjectValue(Microsoft.Graph.Models.Security.FilePlanReference.CreateFromDiscriminatorValue); } }, + {"filePlanReferenceTemplate", n => { FilePlanReferenceTemplate = n.GetObjectValue(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("authority", Authority); + writer.WriteObjectValue("authorityTemplate", AuthorityTemplate); + writer.WriteObjectValue("category", Category); + writer.WriteObjectValue("categoryTemplate", CategoryTemplate); + writer.WriteObjectValue("citation", Citation); + writer.WriteObjectValue("citationTemplate", CitationTemplate); + writer.WriteObjectValue("department", Department); + writer.WriteObjectValue("departmentTemplate", DepartmentTemplate); + writer.WriteObjectValue("filePlanReference", FilePlanReference); + writer.WriteObjectValue("filePlanReferenceTemplate", FilePlanReferenceTemplate); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorBase.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorBase.cs new file mode 100644 index 00000000000..078bcb13138 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorBase.cs @@ -0,0 +1,98 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanDescriptorBase : IAdditionalDataHolder, IBackedModel, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public FilePlanDescriptorBase() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static FilePlanDescriptorBase CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.security.filePlanAppliedCategory" => new FilePlanAppliedCategory(), + "#microsoft.graph.security.filePlanAuthority" => new FilePlanAuthority(), + "#microsoft.graph.security.filePlanCitation" => new FilePlanCitation(), + "#microsoft.graph.security.filePlanDepartment" => new FilePlanDepartment(), + "#microsoft.graph.security.filePlanReference" => new FilePlanReference(), + "#microsoft.graph.security.filePlanSubcategory" => new FilePlanSubcategory(), + _ => new FilePlanDescriptorBase(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorTemplate.cs new file mode 100644 index 00000000000..e4dc44dbd03 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanDescriptorTemplate.cs @@ -0,0 +1,89 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanDescriptorTemplate : Microsoft.Graph.Models.Entity, IParsable + { + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.IdentitySet? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.IdentitySet CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanDescriptorTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.security.authorityTemplate" => new AuthorityTemplate(), + "#microsoft.graph.security.categoryTemplate" => new CategoryTemplate(), + "#microsoft.graph.security.citationTemplate" => new CitationTemplate(), + "#microsoft.graph.security.departmentTemplate" => new DepartmentTemplate(), + "#microsoft.graph.security.filePlanReferenceTemplate" => new FilePlanReferenceTemplate(), + "#microsoft.graph.security.subcategoryTemplate" => new SubcategoryTemplate(), + _ => new FilePlanDescriptorTemplate(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("displayName", DisplayName); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanReference.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReference.cs new file mode 100644 index 00000000000..8deb24dde8a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReference.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanReference : FilePlanDescriptorBase, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanReference CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanReference(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplate.cs new file mode 100644 index 00000000000..2922af361fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplate.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanReferenceTemplate : FilePlanDescriptorTemplate, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanReferenceTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanReferenceTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplateCollectionResponse.cs new file mode 100644 index 00000000000..139ac1bba5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanReferenceTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanReferenceTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanReferenceTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanReferenceTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(FilePlanReferenceTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/FilePlanSubcategory.cs b/src/Microsoft.Graph/Generated/Models/Security/FilePlanSubcategory.cs new file mode 100644 index 00000000000..e20133f10e6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/FilePlanSubcategory.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class FilePlanSubcategory : FilePlanDescriptorBase, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new FilePlanSubcategory CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilePlanSubcategory(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/LabelsRoot.cs b/src/Microsoft.Graph/Generated/Models/Security/LabelsRoot.cs new file mode 100644 index 00000000000..f7d876718e1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/LabelsRoot.cs @@ -0,0 +1,136 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class LabelsRoot : Microsoft.Graph.Models.Entity, IParsable + { + /// The authorities property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Authorities { + get { return BackingStore?.Get?>("authorities"); } + set { BackingStore?.Set("authorities", value); } + } +#nullable restore +#else + public List Authorities { + get { return BackingStore?.Get>("authorities"); } + set { BackingStore?.Set("authorities", value); } + } +#endif + /// The categories property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Categories { + get { return BackingStore?.Get?>("categories"); } + set { BackingStore?.Set("categories", value); } + } +#nullable restore +#else + public List Categories { + get { return BackingStore?.Get>("categories"); } + set { BackingStore?.Set("categories", value); } + } +#endif + /// The citations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Citations { + get { return BackingStore?.Get?>("citations"); } + set { BackingStore?.Set("citations", value); } + } +#nullable restore +#else + public List Citations { + get { return BackingStore?.Get>("citations"); } + set { BackingStore?.Set("citations", value); } + } +#endif + /// The departments property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Departments { + get { return BackingStore?.Get?>("departments"); } + set { BackingStore?.Set("departments", value); } + } +#nullable restore +#else + public List Departments { + get { return BackingStore?.Get>("departments"); } + set { BackingStore?.Set("departments", value); } + } +#endif + /// The filePlanReferences property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FilePlanReferences { + get { return BackingStore?.Get?>("filePlanReferences"); } + set { BackingStore?.Set("filePlanReferences", value); } + } +#nullable restore +#else + public List FilePlanReferences { + get { return BackingStore?.Get>("filePlanReferences"); } + set { BackingStore?.Set("filePlanReferences", value); } + } +#endif + /// The retentionLabels property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RetentionLabels { + get { return BackingStore?.Get?>("retentionLabels"); } + set { BackingStore?.Set("retentionLabels", value); } + } +#nullable restore +#else + public List RetentionLabels { + get { return BackingStore?.Get>("retentionLabels"); } + set { BackingStore?.Set("retentionLabels", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new LabelsRoot CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new LabelsRoot(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"authorities", n => { Authorities = n.GetCollectionOfObjectValues(AuthorityTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"categories", n => { Categories = n.GetCollectionOfObjectValues(CategoryTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"citations", n => { Citations = n.GetCollectionOfObjectValues(CitationTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"departments", n => { Departments = n.GetCollectionOfObjectValues(DepartmentTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"filePlanReferences", n => { FilePlanReferences = n.GetCollectionOfObjectValues(FilePlanReferenceTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + {"retentionLabels", n => { RetentionLabels = n.GetCollectionOfObjectValues(RetentionLabel.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("authorities", Authorities); + writer.WriteCollectionOfObjectValues("categories", Categories); + writer.WriteCollectionOfObjectValues("citations", Citations); + writer.WriteCollectionOfObjectValues("departments", Departments); + writer.WriteCollectionOfObjectValues("filePlanReferences", FilePlanReferences); + writer.WriteCollectionOfObjectValues("retentionLabels", RetentionLabels); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionDuration.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionDuration.cs new file mode 100644 index 00000000000..b7335d44790 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionDuration.cs @@ -0,0 +1,78 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class RetentionDuration : IAdditionalDataHolder, IBackedModel, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RetentionDuration() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static RetentionDuration CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.security.retentionDurationForever" => new RetentionDurationForever(), + "#microsoft.graph.security.retentionDurationInDays" => new RetentionDurationInDays(), + _ => new RetentionDuration(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationForever.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationForever.cs new file mode 100644 index 00000000000..6cb04a1d475 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationForever.cs @@ -0,0 +1,47 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class RetentionDurationForever : RetentionDuration, IParsable + { + /// + /// Instantiates a new and sets the default values. + /// + public RetentionDurationForever() : base() + { + OdataType = "#microsoft.graph.security.retentionDurationForever"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new RetentionDurationForever CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RetentionDurationForever(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationInDays.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationInDays.cs new file mode 100644 index 00000000000..17b87d1a3b3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionDurationInDays.cs @@ -0,0 +1,54 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class RetentionDurationInDays : RetentionDuration, IParsable + { + /// The days property + public int? Days { + get { return BackingStore?.Get("days"); } + set { BackingStore?.Set("days", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public RetentionDurationInDays() : base() + { + OdataType = "#microsoft.graph.security.retentionDurationInDays"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new RetentionDurationInDays CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RetentionDurationInDays(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"days", n => { Days = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteIntValue("days", Days); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionLabel.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionLabel.cs new file mode 100644 index 00000000000..1d369235707 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionLabel.cs @@ -0,0 +1,249 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class RetentionLabel : Microsoft.Graph.Models.Entity, IParsable + { + /// The actionAfterRetentionPeriod property + public Microsoft.Graph.Models.Security.ActionAfterRetentionPeriod? ActionAfterRetentionPeriod { + get { return BackingStore?.Get("actionAfterRetentionPeriod"); } + set { BackingStore?.Set("actionAfterRetentionPeriod", value); } + } + /// The behaviorDuringRetentionPeriod property + public Microsoft.Graph.Models.Security.BehaviorDuringRetentionPeriod? BehaviorDuringRetentionPeriod { + get { return BackingStore?.Get("behaviorDuringRetentionPeriod"); } + set { BackingStore?.Set("behaviorDuringRetentionPeriod", value); } + } + /// The createdBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.IdentitySet? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.IdentitySet CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The defaultRecordBehavior property + public Microsoft.Graph.Models.Security.DefaultRecordBehavior? DefaultRecordBehavior { + get { return BackingStore?.Get("defaultRecordBehavior"); } + set { BackingStore?.Set("defaultRecordBehavior", value); } + } + /// The descriptionForAdmins property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DescriptionForAdmins { + get { return BackingStore?.Get("descriptionForAdmins"); } + set { BackingStore?.Set("descriptionForAdmins", value); } + } +#nullable restore +#else + public string DescriptionForAdmins { + get { return BackingStore?.Get("descriptionForAdmins"); } + set { BackingStore?.Set("descriptionForAdmins", value); } + } +#endif + /// The descriptionForUsers property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DescriptionForUsers { + get { return BackingStore?.Get("descriptionForUsers"); } + set { BackingStore?.Set("descriptionForUsers", value); } + } +#nullable restore +#else + public string DescriptionForUsers { + get { return BackingStore?.Get("descriptionForUsers"); } + set { BackingStore?.Set("descriptionForUsers", value); } + } +#endif + /// The descriptors property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public FilePlanDescriptor? Descriptors { + get { return BackingStore?.Get("descriptors"); } + set { BackingStore?.Set("descriptors", value); } + } +#nullable restore +#else + public FilePlanDescriptor Descriptors { + get { return BackingStore?.Get("descriptors"); } + set { BackingStore?.Set("descriptors", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The dispositionReviewStages property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DispositionReviewStages { + get { return BackingStore?.Get?>("dispositionReviewStages"); } + set { BackingStore?.Set("dispositionReviewStages", value); } + } +#nullable restore +#else + public List DispositionReviewStages { + get { return BackingStore?.Get>("dispositionReviewStages"); } + set { BackingStore?.Set("dispositionReviewStages", value); } + } +#endif + /// The isInUse property + public bool? IsInUse { + get { return BackingStore?.Get("isInUse"); } + set { BackingStore?.Set("isInUse", value); } + } + /// The labelToBeApplied property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LabelToBeApplied { + get { return BackingStore?.Get("labelToBeApplied"); } + set { BackingStore?.Set("labelToBeApplied", value); } + } +#nullable restore +#else + public string LabelToBeApplied { + get { return BackingStore?.Get("labelToBeApplied"); } + set { BackingStore?.Set("labelToBeApplied", value); } + } +#endif + /// The lastModifiedBy property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.IdentitySet? LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.IdentitySet LastModifiedBy { + get { return BackingStore?.Get("lastModifiedBy"); } + set { BackingStore?.Set("lastModifiedBy", value); } + } +#endif + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The retentionDuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.RetentionDuration? RetentionDuration { + get { return BackingStore?.Get("retentionDuration"); } + set { BackingStore?.Set("retentionDuration", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.RetentionDuration RetentionDuration { + get { return BackingStore?.Get("retentionDuration"); } + set { BackingStore?.Set("retentionDuration", value); } + } +#endif + /// The retentionEventType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.Security.RetentionEventType? RetentionEventType { + get { return BackingStore?.Get("retentionEventType"); } + set { BackingStore?.Set("retentionEventType", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.Security.RetentionEventType RetentionEventType { + get { return BackingStore?.Get("retentionEventType"); } + set { BackingStore?.Set("retentionEventType", value); } + } +#endif + /// The retentionTrigger property + public Microsoft.Graph.Models.Security.RetentionTrigger? RetentionTrigger { + get { return BackingStore?.Get("retentionTrigger"); } + set { BackingStore?.Set("retentionTrigger", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new RetentionLabel CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RetentionLabel(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"actionAfterRetentionPeriod", n => { ActionAfterRetentionPeriod = n.GetEnumValue(); } }, + {"behaviorDuringRetentionPeriod", n => { BehaviorDuringRetentionPeriod = n.GetEnumValue(); } }, + {"createdBy", n => { CreatedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"defaultRecordBehavior", n => { DefaultRecordBehavior = n.GetEnumValue(); } }, + {"descriptionForAdmins", n => { DescriptionForAdmins = n.GetStringValue(); } }, + {"descriptionForUsers", n => { DescriptionForUsers = n.GetStringValue(); } }, + {"descriptors", n => { Descriptors = n.GetObjectValue(FilePlanDescriptor.CreateFromDiscriminatorValue); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"dispositionReviewStages", n => { DispositionReviewStages = n.GetCollectionOfObjectValues(DispositionReviewStage.CreateFromDiscriminatorValue)?.ToList(); } }, + {"isInUse", n => { IsInUse = n.GetBoolValue(); } }, + {"labelToBeApplied", n => { LabelToBeApplied = n.GetStringValue(); } }, + {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(Microsoft.Graph.Models.IdentitySet.CreateFromDiscriminatorValue); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"retentionDuration", n => { RetentionDuration = n.GetObjectValue(Microsoft.Graph.Models.Security.RetentionDuration.CreateFromDiscriminatorValue); } }, + {"retentionEventType", n => { RetentionEventType = n.GetObjectValue(Microsoft.Graph.Models.Security.RetentionEventType.CreateFromDiscriminatorValue); } }, + {"retentionTrigger", n => { RetentionTrigger = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("actionAfterRetentionPeriod", ActionAfterRetentionPeriod); + writer.WriteEnumValue("behaviorDuringRetentionPeriod", BehaviorDuringRetentionPeriod); + writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteEnumValue("defaultRecordBehavior", DefaultRecordBehavior); + writer.WriteStringValue("descriptionForAdmins", DescriptionForAdmins); + writer.WriteStringValue("descriptionForUsers", DescriptionForUsers); + writer.WriteObjectValue("descriptors", Descriptors); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteCollectionOfObjectValues("dispositionReviewStages", DispositionReviewStages); + writer.WriteBoolValue("isInUse", IsInUse); + writer.WriteStringValue("labelToBeApplied", LabelToBeApplied); + writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteObjectValue("retentionDuration", RetentionDuration); + writer.WriteObjectValue("retentionEventType", RetentionEventType); + writer.WriteEnumValue("retentionTrigger", RetentionTrigger); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionLabelCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionLabelCollectionResponse.cs new file mode 100644 index 00000000000..9cf203e4b1c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionLabelCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class RetentionLabelCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new RetentionLabelCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RetentionLabelCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(RetentionLabel.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/RetentionTrigger.cs b/src/Microsoft.Graph/Generated/Models/Security/RetentionTrigger.cs new file mode 100644 index 00000000000..5dda65c661a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RetentionTrigger.cs @@ -0,0 +1,18 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum RetentionTrigger + { + [EnumMember(Value = "dateLabeled")] + DateLabeled, + [EnumMember(Value = "dateCreated")] + DateCreated, + [EnumMember(Value = "dateModified")] + DateModified, + [EnumMember(Value = "dateOfEvent")] + DateOfEvent, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/Security.cs b/src/Microsoft.Graph/Generated/Models/Security/Security.cs index 7f97479404c..fb369814ebc 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Security.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Security.cs @@ -76,6 +76,20 @@ public List Incidents { get { return BackingStore?.Get>("incidents"); } set { BackingStore?.Set("incidents", value); } } +#endif + /// The labels property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public LabelsRoot? Labels { + get { return BackingStore?.Get("labels"); } + set { BackingStore?.Set("labels", value); } + } +#nullable restore +#else + public LabelsRoot Labels { + get { return BackingStore?.Get("labels"); } + set { BackingStore?.Set("labels", value); } + } #endif /// The secureScoreControlProfiles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -184,6 +198,7 @@ public override IDictionary> GetFieldDeserializers() {"attackSimulation", n => { AttackSimulation = n.GetObjectValue(Microsoft.Graph.Models.AttackSimulationRoot.CreateFromDiscriminatorValue); } }, {"cases", n => { Cases = n.GetObjectValue(CasesRoot.CreateFromDiscriminatorValue); } }, {"incidents", n => { Incidents = n.GetCollectionOfObjectValues(Incident.CreateFromDiscriminatorValue)?.ToList(); } }, + {"labels", n => { Labels = n.GetObjectValue(LabelsRoot.CreateFromDiscriminatorValue); } }, {"secureScoreControlProfiles", n => { SecureScoreControlProfiles = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SecureScoreControlProfile.CreateFromDiscriminatorValue)?.ToList(); } }, {"secureScores", n => { SecureScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SecureScore.CreateFromDiscriminatorValue)?.ToList(); } }, {"subjectRightsRequests", n => { SubjectRightsRequests = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SubjectRightsRequest.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -205,6 +220,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("attackSimulation", AttackSimulation); writer.WriteObjectValue("cases", Cases); writer.WriteCollectionOfObjectValues("incidents", Incidents); + writer.WriteObjectValue("labels", Labels); writer.WriteCollectionOfObjectValues("secureScoreControlProfiles", SecureScoreControlProfiles); writer.WriteCollectionOfObjectValues("secureScores", SecureScores); writer.WriteCollectionOfObjectValues("subjectRightsRequests", SubjectRightsRequests); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplate.cs b/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplate.cs new file mode 100644 index 00000000000..966c6050dc8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplate.cs @@ -0,0 +1,40 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SubcategoryTemplate : FilePlanDescriptorTemplate, IParsable + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new SubcategoryTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubcategoryTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplateCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplateCollectionResponse.cs new file mode 100644 index 00000000000..088f78a46bf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SubcategoryTemplateCollectionResponse.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SubcategoryTemplateCollectionResponse : Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new SubcategoryTemplateCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubcategoryTemplateCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(SubcategoryTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectSet.cs b/src/Microsoft.Graph/Generated/Models/SubjectSet.cs index 5e4e8e8a50f..23efc845a24 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectSet.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectSet.cs @@ -60,6 +60,7 @@ public static SubjectSet CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.singleUser" => new SingleUser(), "#microsoft.graph.targetApplicationOwners" => new TargetApplicationOwners(), "#microsoft.graph.targetManager" => new TargetManager(), + "#microsoft.graph.targetUserSponsors" => new TargetUserSponsors(), _ => new SubjectSet(), }; } diff --git a/src/Microsoft.Graph/Generated/Models/TargetUserSponsors.cs b/src/Microsoft.Graph/Generated/Models/TargetUserSponsors.cs new file mode 100644 index 00000000000..58d18c76852 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TargetUserSponsors.cs @@ -0,0 +1,47 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TargetUserSponsors : SubjectSet, IParsable + { + /// + /// Instantiates a new and sets the default values. + /// + public TargetUserSponsors() : base() + { + OdataType = "#microsoft.graph.targetUserSponsors"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new TargetUserSponsors CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TargetUserSponsors(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 807f8fd1840..45e2d95c784 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -1645,7 +1645,7 @@ public string UserPrincipalName { set { BackingStore?.Set("userPrincipalName", value); } } #endif - /// A string value that can be used to classify user types in your directory, such as Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Microsoft Entra ID? + /// A string value that can be used to classify user types in your directory. The possible values are Member and Guest. Returned only on $select. Supports $filter (eq, ne, not, in, and eq on null values). NOTE: For more information about the permissions for member and guest users, see What are the default user permissions in Microsoft Entra ID? #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserType { diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index 0667af9642f..b30bcef6e9c 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -132,8 +132,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. - /// Find more info here + /// Update the properties of a organization object. + /// Find more info here /// /// A /// The request body @@ -196,7 +196,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + /// Update the properties of a organization object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Authorities/AuthoritiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/AuthoritiesRequestBuilder.cs new file mode 100644 index 00000000000..69b2d9038a6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/AuthoritiesRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Authorities.Count; +using Microsoft.Graph.Security.Labels.Authorities.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Authorities { + /// + /// Provides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity. + /// + public class AuthoritiesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of authorityTemplate + /// A + public AuthorityTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("authorityTemplate%2Did", position); + return new AuthorityTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthoritiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthoritiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get authorities from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthorityTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to authorities for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.AuthorityTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get authorities from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to authorities for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/authorities", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public AuthoritiesRequestBuilder WithUrl(string rawUrl) + { + return new AuthoritiesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get authorities from security + /// + public class AuthoritiesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthoritiesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthoritiesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..633d27958a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Authorities.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Item/AuthorityTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Item/AuthorityTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..d53f34b2828 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Authorities/Item/AuthorityTemplateItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Authorities.Item { + /// + /// Provides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity. + /// + public class AuthorityTemplateItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthorityTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities/{authorityTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthorityTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/authorities/{authorityTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property authorities for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get authorities from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.AuthorityTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property authorities in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.AuthorityTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property authorities for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/authorities/{authorityTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get authorities from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property authorities in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.AuthorityTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/authorities/{authorityTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public AuthorityTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new AuthorityTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthorityTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get authorities from security + /// + public class AuthorityTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthorityTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthorityTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/CategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/CategoriesRequestBuilder.cs new file mode 100644 index 00000000000..2f4669e8fd6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/CategoriesRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Categories.Count; +using Microsoft.Graph.Security.Labels.Categories.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories { + /// + /// Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity. + /// + public class CategoriesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of categoryTemplate + /// A + public CategoryTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("categoryTemplate%2Did", position); + return new CategoryTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get categories from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CategoryTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to categories for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.CategoryTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.CategoryTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get categories from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to categories for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.CategoryTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.CategoryTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/categories", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CategoriesRequestBuilder WithUrl(string rawUrl) + { + return new CategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get categories from security + /// + public class CategoriesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoriesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoriesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6223a14f6df --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/CategoryTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/CategoryTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..739f586fbdf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/CategoryTemplateItemRequestBuilder.cs @@ -0,0 +1,227 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Categories.Item.Subcategories; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories.Item { + /// + /// Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity. + /// + public class CategoryTemplateItemRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the subcategories property of the microsoft.graph.security.categoryTemplate entity. + public SubcategoriesRequestBuilder Subcategories + { + get => new SubcategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoryTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoryTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property categories for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get categories from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property categories in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.CategoryTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.CategoryTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property categories for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get categories from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property categories in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.CategoryTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.CategoryTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CategoryTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new CategoryTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoryTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get categories from security + /// + public class CategoryTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoryTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoryTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..21f435aa771 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories.Item.Subcategories.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Item/SubcategoryTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Item/SubcategoryTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..a2211f393da --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/Item/SubcategoryTemplateItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories.Item.Subcategories.Item { + /// + /// Provides operations to manage the subcategories property of the microsoft.graph.security.categoryTemplate entity. + /// + public class SubcategoryTemplateItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubcategoryTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/{subcategoryTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubcategoryTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/{subcategoryTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property subcategories for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get subcategories from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubcategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property subcategories in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(SubcategoryTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(SubcategoryTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubcategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property subcategories for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/{subcategoryTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get subcategories from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property subcategories in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(SubcategoryTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(SubcategoryTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories/{subcategoryTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public SubcategoryTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new SubcategoryTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class SubcategoryTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get subcategories from security + /// + public class SubcategoryTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class SubcategoryTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class SubcategoryTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/SubcategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/SubcategoriesRequestBuilder.cs new file mode 100644 index 00000000000..deae8dc917a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Categories/Item/Subcategories/SubcategoriesRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Categories.Item.Subcategories.Count; +using Microsoft.Graph.Security.Labels.Categories.Item.Subcategories.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Categories.Item.Subcategories { + /// + /// Provides operations to manage the subcategories property of the microsoft.graph.security.categoryTemplate entity. + /// + public class SubcategoriesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subcategories property of the microsoft.graph.security.categoryTemplate entity. + /// The unique identifier of subcategoryTemplate + /// A + public SubcategoryTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subcategoryTemplate%2Did", position); + return new SubcategoryTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubcategoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubcategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get subcategories from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubcategoryTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to subcategories for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(SubcategoryTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(SubcategoryTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubcategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get subcategories from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to subcategories for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(SubcategoryTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(SubcategoryTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/categories/{categoryTemplate%2Did}/subcategories", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public SubcategoriesRequestBuilder WithUrl(string rawUrl) + { + return new SubcategoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get subcategories from security + /// + public class SubcategoriesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class SubcategoriesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class SubcategoriesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Citations/CitationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Citations/CitationsRequestBuilder.cs new file mode 100644 index 00000000000..502ef93ca63 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Citations/CitationsRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Citations.Count; +using Microsoft.Graph.Security.Labels.Citations.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Citations { + /// + /// Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity. + /// + public class CitationsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of citationTemplate + /// A + public CitationTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("citationTemplate%2Did", position); + return new CitationTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CitationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get citations from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CitationTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to citations for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.CitationTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.CitationTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CitationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get citations from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to citations for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.CitationTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.CitationTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/citations", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CitationsRequestBuilder WithUrl(string rawUrl) + { + return new CitationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get citations from security + /// + public class CitationsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Citations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Citations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0052da7e04e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Citations/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Citations.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Citations/Item/CitationTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Citations/Item/CitationTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..664610989cc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Citations/Item/CitationTemplateItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Citations.Item { + /// + /// Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity. + /// + public class CitationTemplateItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CitationTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations/{citationTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CitationTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/citations/{citationTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property citations for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get citations from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CitationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property citations in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.CitationTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.CitationTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CitationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property citations for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/citations/{citationTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get citations from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property citations in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.CitationTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.CitationTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/citations/{citationTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CitationTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new CitationTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get citations from security + /// + public class CitationTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Departments/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Departments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..77d602c9fde --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Departments/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Departments.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Departments/DepartmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Departments/DepartmentsRequestBuilder.cs new file mode 100644 index 00000000000..75400e8a78d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Departments/DepartmentsRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Departments.Count; +using Microsoft.Graph.Security.Labels.Departments.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Departments { + /// + /// Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity. + /// + public class DepartmentsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of departmentTemplate + /// A + public DepartmentTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("departmentTemplate%2Did", position); + return new DepartmentTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DepartmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DepartmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get departments from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DepartmentTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to departments for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.DepartmentTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get departments from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to departments for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/departments", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DepartmentsRequestBuilder WithUrl(string rawUrl) + { + return new DepartmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get departments from security + /// + public class DepartmentsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/Departments/Item/DepartmentTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/Departments/Item/DepartmentTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..7d71a04db69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/Departments/Item/DepartmentTemplateItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.Departments.Item { + /// + /// Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity. + /// + public class DepartmentTemplateItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DepartmentTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments/{departmentTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DepartmentTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/departments/{departmentTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property departments for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get departments from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.DepartmentTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property departments in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.DepartmentTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property departments for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/departments/{departmentTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get departments from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property departments in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.DepartmentTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/departments/{departmentTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DepartmentTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new DepartmentTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get departments from security + /// + public class DepartmentTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b62d6b07e7d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.FilePlanReferences.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/FilePlanReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/FilePlanReferencesRequestBuilder.cs new file mode 100644 index 00000000000..627817d6334 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/FilePlanReferencesRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.FilePlanReferences.Count; +using Microsoft.Graph.Security.Labels.FilePlanReferences.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.FilePlanReferences { + /// + /// Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity. + /// + public class FilePlanReferencesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of filePlanReferenceTemplate + /// A + public FilePlanReferenceTemplateItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("filePlanReferenceTemplate%2Did", position); + return new FilePlanReferenceTemplateItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilePlanReferencesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilePlanReferencesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get filePlanReferences from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilePlanReferenceTemplateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to filePlanReferences for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.FilePlanReferenceTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get filePlanReferences from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to filePlanReferences for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/filePlanReferences", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public FilePlanReferencesRequestBuilder WithUrl(string rawUrl) + { + return new FilePlanReferencesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get filePlanReferences from security + /// + public class FilePlanReferencesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferencesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferencesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Item/FilePlanReferenceTemplateItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Item/FilePlanReferenceTemplateItemRequestBuilder.cs new file mode 100644 index 00000000000..157ab255a40 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/FilePlanReferences/Item/FilePlanReferenceTemplateItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.FilePlanReferences.Item { + /// + /// Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity. + /// + public class FilePlanReferenceTemplateItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilePlanReferenceTemplateItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences/{filePlanReferenceTemplate%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilePlanReferenceTemplateItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/filePlanReferences/{filePlanReferenceTemplate%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property filePlanReferences for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get filePlanReferences from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.FilePlanReferenceTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property filePlanReferences in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.FilePlanReferenceTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property filePlanReferences for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/filePlanReferences/{filePlanReferenceTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get filePlanReferences from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property filePlanReferences in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.FilePlanReferenceTemplate body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/filePlanReferences/{filePlanReferenceTemplate%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public FilePlanReferenceTemplateItemRequestBuilder WithUrl(string rawUrl) + { + return new FilePlanReferenceTemplateItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferenceTemplateItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get filePlanReferences from security + /// + public class FilePlanReferenceTemplateItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferenceTemplateItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferenceTemplateItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/LabelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/LabelsRequestBuilder.cs new file mode 100644 index 00000000000..49841b8f164 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/LabelsRequestBuilder.cs @@ -0,0 +1,257 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.Authorities; +using Microsoft.Graph.Security.Labels.Categories; +using Microsoft.Graph.Security.Labels.Citations; +using Microsoft.Graph.Security.Labels.Departments; +using Microsoft.Graph.Security.Labels.FilePlanReferences; +using Microsoft.Graph.Security.Labels.RetentionLabels; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels { + /// + /// Provides operations to manage the labels property of the microsoft.graph.security entity. + /// + public class LabelsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the authorities property of the microsoft.graph.security.labelsRoot entity. + public AuthoritiesRequestBuilder Authorities + { + get => new AuthoritiesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categories property of the microsoft.graph.security.labelsRoot entity. + public CategoriesRequestBuilder Categories + { + get => new CategoriesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the citations property of the microsoft.graph.security.labelsRoot entity. + public CitationsRequestBuilder Citations + { + get => new CitationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity. + public DepartmentsRequestBuilder Departments + { + get => new DepartmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the filePlanReferences property of the microsoft.graph.security.labelsRoot entity. + public FilePlanReferencesRequestBuilder FilePlanReferences + { + get => new FilePlanReferencesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity. + public RetentionLabelsRequestBuilder RetentionLabels + { + get => new RetentionLabelsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public LabelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public LabelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property labels for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get labels from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LabelsRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property labels in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(LabelsRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(LabelsRoot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, LabelsRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property labels for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get labels from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property labels in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(LabelsRoot body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(LabelsRoot body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public LabelsRequestBuilder WithUrl(string rawUrl) + { + return new LabelsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class LabelsRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get labels from security + /// + public class LabelsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class LabelsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class LabelsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3f4e2b0ca30 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/AuthorityTemplate/AuthorityTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/AuthorityTemplate/AuthorityTemplateRequestBuilder.cs new file mode 100644 index 00000000000..3a2daa0d0fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/AuthorityTemplate/AuthorityTemplateRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.AuthorityTemplate { + /// + /// Provides operations to manage the authorityTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + /// + public class AuthorityTemplateRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthorityTemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/authorityTemplate{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthorityTemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/authorityTemplate{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get authorityTemplate from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.AuthorityTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get authorityTemplate from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public AuthorityTemplateRequestBuilder WithUrl(string rawUrl) + { + return new AuthorityTemplateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get authorityTemplate from security + /// + public class AuthorityTemplateRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AuthorityTemplateRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CategoryTemplate/CategoryTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CategoryTemplate/CategoryTemplateRequestBuilder.cs new file mode 100644 index 00000000000..3e21e7e9386 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CategoryTemplate/CategoryTemplateRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.CategoryTemplate { + /// + /// Provides operations to manage the categoryTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + /// + public class CategoryTemplateRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CategoryTemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/categoryTemplate{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CategoryTemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/categoryTemplate{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get categoryTemplate from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CategoryTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get categoryTemplate from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CategoryTemplateRequestBuilder WithUrl(string rawUrl) + { + return new CategoryTemplateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get categoryTemplate from security + /// + public class CategoryTemplateRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CategoryTemplateRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CitationTemplate/CitationTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CitationTemplate/CitationTemplateRequestBuilder.cs new file mode 100644 index 00000000000..3947465a165 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/CitationTemplate/CitationTemplateRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.CitationTemplate { + /// + /// Provides operations to manage the citationTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + /// + public class CitationTemplateRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CitationTemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/citationTemplate{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CitationTemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/citationTemplate{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get citationTemplate from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.CitationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get citationTemplate from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CitationTemplateRequestBuilder WithUrl(string rawUrl) + { + return new CitationTemplateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get citationTemplate from security + /// + public class CitationTemplateRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CitationTemplateRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DepartmentTemplate/DepartmentTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DepartmentTemplate/DepartmentTemplateRequestBuilder.cs new file mode 100644 index 00000000000..78736c5af6a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DepartmentTemplate/DepartmentTemplateRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.DepartmentTemplate { + /// + /// Provides operations to manage the departmentTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + /// + public class DepartmentTemplateRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DepartmentTemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/departmentTemplate{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DepartmentTemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/departmentTemplate{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get departmentTemplate from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.DepartmentTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get departmentTemplate from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DepartmentTemplateRequestBuilder WithUrl(string rawUrl) + { + return new DepartmentTemplateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get departmentTemplate from security + /// + public class DepartmentTemplateRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DepartmentTemplateRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DescriptorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DescriptorsRequestBuilder.cs new file mode 100644 index 00000000000..9215f88431a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/DescriptorsRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.AuthorityTemplate; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.CategoryTemplate; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.CitationTemplate; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.DepartmentTemplate; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.FilePlanReferenceTemplate; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors { + /// + /// Provides operations to manage the descriptors property of the microsoft.graph.security.retentionLabel entity. + /// + public class DescriptorsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the authorityTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + public AuthorityTemplateRequestBuilder AuthorityTemplate + { + get => new AuthorityTemplateRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the categoryTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + public CategoryTemplateRequestBuilder CategoryTemplate + { + get => new CategoryTemplateRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the citationTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + public CitationTemplateRequestBuilder CitationTemplate + { + get => new CitationTemplateRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the departmentTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + public DepartmentTemplateRequestBuilder DepartmentTemplate + { + get => new DepartmentTemplateRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the filePlanReferenceTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + public FilePlanReferenceTemplateRequestBuilder FilePlanReferenceTemplate + { + get => new FilePlanReferenceTemplateRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DescriptorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DescriptorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property descriptors for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get descriptors from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilePlanDescriptor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property descriptors in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(FilePlanDescriptor body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(FilePlanDescriptor body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilePlanDescriptor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property descriptors for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get descriptors from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property descriptors in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(FilePlanDescriptor body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(FilePlanDescriptor body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DescriptorsRequestBuilder WithUrl(string rawUrl) + { + return new DescriptorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DescriptorsRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get descriptors from security + /// + public class DescriptorsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DescriptorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DescriptorsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/FilePlanReferenceTemplate/FilePlanReferenceTemplateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/FilePlanReferenceTemplate/FilePlanReferenceTemplateRequestBuilder.cs new file mode 100644 index 00000000000..350fecae2ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/Descriptors/FilePlanReferenceTemplate/FilePlanReferenceTemplateRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors.FilePlanReferenceTemplate { + /// + /// Provides operations to manage the filePlanReferenceTemplate property of the microsoft.graph.security.filePlanDescriptor entity. + /// + public class FilePlanReferenceTemplateRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilePlanReferenceTemplateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/filePlanReferenceTemplate{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilePlanReferenceTemplateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/descriptors/filePlanReferenceTemplate{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get filePlanReferenceTemplate from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.FilePlanReferenceTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get filePlanReferenceTemplate from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public FilePlanReferenceTemplateRequestBuilder WithUrl(string rawUrl) + { + return new FilePlanReferenceTemplateRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get filePlanReferenceTemplate from security + /// + public class FilePlanReferenceTemplateRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilePlanReferenceTemplateRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d8edaf8cd26 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/DispositionReviewStagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/DispositionReviewStagesRequestBuilder.cs new file mode 100644 index 00000000000..695b02ace92 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/DispositionReviewStagesRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages.Count; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages { + /// + /// Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity. + /// + public class DispositionReviewStagesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity. + /// The unique identifier of dispositionReviewStage + /// A + public DispositionReviewStageStageNumberItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("dispositionReviewStage%2DstageNumber", position); + return new DispositionReviewStageStageNumberItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DispositionReviewStagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DispositionReviewStagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get dispositionReviewStages from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DispositionReviewStageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to dispositionReviewStages for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(DispositionReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(DispositionReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DispositionReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get dispositionReviewStages from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to dispositionReviewStages for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(DispositionReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DispositionReviewStage body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DispositionReviewStagesRequestBuilder WithUrl(string rawUrl) + { + return new DispositionReviewStagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get dispositionReviewStages from security + /// + public class DispositionReviewStagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DispositionReviewStagesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DispositionReviewStagesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Item/DispositionReviewStageStageNumberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Item/DispositionReviewStageStageNumberItemRequestBuilder.cs new file mode 100644 index 00000000000..fe93c34dc79 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/DispositionReviewStages/Item/DispositionReviewStageStageNumberItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages.Item { + /// + /// Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity. + /// + public class DispositionReviewStageStageNumberItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DispositionReviewStageStageNumberItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/{dispositionReviewStage%2DstageNumber}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DispositionReviewStageStageNumberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/{dispositionReviewStage%2DstageNumber}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property dispositionReviewStages for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get dispositionReviewStages from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DispositionReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property dispositionReviewStages in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(DispositionReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(DispositionReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DispositionReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property dispositionReviewStages for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/{dispositionReviewStage%2DstageNumber}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get dispositionReviewStages from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property dispositionReviewStages in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(DispositionReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DispositionReviewStage body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/dispositionReviewStages/{dispositionReviewStage%2DstageNumber}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DispositionReviewStageStageNumberItemRequestBuilder WithUrl(string rawUrl) + { + return new DispositionReviewStageStageNumberItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DispositionReviewStageStageNumberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get dispositionReviewStages from security + /// + public class DispositionReviewStageStageNumberItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DispositionReviewStageStageNumberItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DispositionReviewStageStageNumberItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs new file mode 100644 index 00000000000..8b39f0a23cb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionEventType/RetentionEventTypeRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item.RetentionEventType { + /// + /// Provides operations to manage the retentionEventType property of the microsoft.graph.security.retentionLabel entity. + /// + public class RetentionEventTypeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RetentionEventTypeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/retentionEventType{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RetentionEventTypeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}/retentionEventType{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get retentionEventType from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.RetentionEventType.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get retentionEventType from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public RetentionEventTypeRequestBuilder WithUrl(string rawUrl) + { + return new RetentionEventTypeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get retentionEventType from security + /// + public class RetentionEventTypeRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionEventTypeRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionLabelItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionLabelItemRequestBuilder.cs new file mode 100644 index 00000000000..42725eca187 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/Item/RetentionLabelItemRequestBuilder.cs @@ -0,0 +1,239 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.Descriptors; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.DispositionReviewStages; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item.RetentionEventType; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels.Item { + /// + /// Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity. + /// + public class RetentionLabelItemRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the descriptors property of the microsoft.graph.security.retentionLabel entity. + public DescriptorsRequestBuilder Descriptors + { + get => new DescriptorsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the dispositionReviewStages property of the microsoft.graph.security.retentionLabel entity. + public DispositionReviewStagesRequestBuilder DispositionReviewStages + { + get => new DispositionReviewStagesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the retentionEventType property of the microsoft.graph.security.retentionLabel entity. + public RetentionEventTypeRequestBuilder RetentionEventType + { + get => new RetentionEventTypeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RetentionLabelItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RetentionLabelItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property retentionLabels for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get retentionLabels from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.RetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property retentionLabels in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Security.RetentionLabel body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Security.RetentionLabel body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.RetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property retentionLabels for security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get retentionLabels from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property retentionLabels in security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.RetentionLabel body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Security.RetentionLabel body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/labels/retentionLabels/{retentionLabel%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public RetentionLabelItemRequestBuilder WithUrl(string rawUrl) + { + return new RetentionLabelItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionLabelItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get retentionLabels from security + /// + public class RetentionLabelItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionLabelItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionLabelItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/RetentionLabelsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/RetentionLabelsRequestBuilder.cs new file mode 100644 index 00000000000..39348e33305 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Labels/RetentionLabels/RetentionLabelsRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models.Security; +using Microsoft.Graph.Security.Labels.RetentionLabels.Count; +using Microsoft.Graph.Security.Labels.RetentionLabels.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.Labels.RetentionLabels { + /// + /// Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity. + /// + public class RetentionLabelsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the retentionLabels property of the microsoft.graph.security.labelsRoot entity. + /// The unique identifier of retentionLabel + /// A + public RetentionLabelItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("retentionLabel%2Did", position); + return new RetentionLabelItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RetentionLabelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RetentionLabelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/labels/retentionLabels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get retentionLabels from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RetentionLabelCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to retentionLabels for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Models.Security.RetentionLabel body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Models.Security.RetentionLabel body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Security.RetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get retentionLabels from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to retentionLabels for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.RetentionLabel body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Security.RetentionLabel body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/labels/retentionLabels", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public RetentionLabelsRequestBuilder WithUrl(string rawUrl) + { + return new RetentionLabelsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get retentionLabels from security + /// + public class RetentionLabelsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionLabelsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RetentionLabelsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs index 3e3f8fff7e2..aeb82474be2 100644 --- a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs @@ -6,6 +6,7 @@ using Microsoft.Graph.Security.AttackSimulation; using Microsoft.Graph.Security.Cases; using Microsoft.Graph.Security.Incidents; +using Microsoft.Graph.Security.Labels; using Microsoft.Graph.Security.MicrosoftGraphSecurityRunHuntingQuery; using Microsoft.Graph.Security.SecureScoreControlProfiles; using Microsoft.Graph.Security.SecureScores; @@ -52,6 +53,11 @@ public IncidentsRequestBuilder Incidents { get => new IncidentsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the labels property of the microsoft.graph.security entity. + public LabelsRequestBuilder Labels + { + get => new LabelsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the runHuntingQuery method. public MicrosoftGraphSecurityRunHuntingQueryRequestBuilder MicrosoftGraphSecurityRunHuntingQuery { diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index 149b13bea4d..6e46c0281ff 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -75,8 +75,8 @@ public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. - /// Find more info here + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -99,7 +99,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -127,7 +127,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// public class SitesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 924c06f8de2..a395cc2c4bb 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 87339b782a6..a5396b6610a 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index bc0e2c791b5..b6184736682 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 458b0d5dda8..7d7f8fd356b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -55,8 +55,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat. - /// Find more info here + /// Retrieve a conversationMember from a chat or channel. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -180,7 +180,7 @@ public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs index 52c55a95913..045fa7bc8e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because thestart and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipmentlike a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejectsthe meeting request based on the free/busy schedule of the resource.If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled,the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because thestart and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipmentlike a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejectsthe meeting request based on the free/busy schedule of the resource.If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled,the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 605e832b823..73e0c5af0c6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 4545afbfa8a..29dece944c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// A /// The request body @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 335259e2602..47fb958d983 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new mailSearchFolder in the specified user's mailbox. - /// Find more info here + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new mailSearchFolder in the specified user's mailbox. + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 8e8350c7f3d..5b70f354980 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 24cecc24d68..3eb2d513cbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 5d44bbbb8c5..60a43661c76 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -57,8 +57,8 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body @@ -157,7 +157,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 363d79993cb..86506a5a5f9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -128,7 +128,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 7a0a0e6fce3..59b5f049099 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -32,7 +32,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index 9ff444afd1b..069e4c579a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -58,7 +58,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,8 +81,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index 2a555355344..97f4f5e21b7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -79,7 +79,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName property once you have created the category. /// Find more info here /// /// A @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName propertyonce you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You can't modify the displayName property once you have created the category. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs index b60a48273a3..a3f7e94d099 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/MasterCategoriesRequestBuilder.cs @@ -51,7 +51,7 @@ public MasterCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// Find more info here /// /// A @@ -101,7 +101,7 @@ public async Task PostAsync(OutlookCategory body, Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,7 +151,7 @@ public MasterCategoriesRequestBuilder WithUrl(string rawUrl) return new MasterCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the categories that have been defined for the user. + /// Get all the categories that have been defined for a user. /// public class MasterCategoriesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 48183d3af97..3660010b2f1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -507,8 +507,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Read properties and relationships of the user object. - /// Find more info here + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -531,8 +531,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. - /// Find more info here + /// Update the properties of a user object. + /// Find more info here /// /// A /// The request body @@ -588,7 +588,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the user object. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -607,7 +607,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. Customers through Microsoft Entra ID for customers can also use this API operation to update their details. See Default user permissions in customer tenants for the list of properties they can update. + /// Update the properties of a user object. /// /// A /// The request body @@ -645,7 +645,7 @@ public class UserItemRequestBuilderDeleteRequestConfiguration : RequestConfigura { } /// - /// Read properties and relationships of the user object. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. /// public class UserItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index 51e4d85ba3d..101e9ae6d72 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -75,8 +75,8 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// List properties and relationships of the user objects. - /// Find more info here + /// Retrieve a list of user objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task GetAsync(Action /// Create a new user object. - /// Find more info here + /// Find more info here /// /// A /// The request body @@ -125,7 +125,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -175,7 +175,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. /// public class UsersRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 96a62671188..e4b9da26110 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "D4DD4F270D48120E1814446F47EE0C07DA6C4B939E76307D63197A3C0DD737B47454EBD3AC1A4D8470A42AB362ABFA613086102AFA820CF88DFE885633889FC4", + "descriptionHash": "9C59E1DB383899393065FEE092B602194F9064374349EA49CBB84FA5B28723EAF80DF8ECB2A15AEACC275FC0154D9FC57E91013FA913BCE4F0217F7B0048F92C", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.13.0", From ea61418804cd73ae38347dde0c156d466f1a0a6f Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Thu, 4 Apr 2024 11:46:50 +0300 Subject: [PATCH 2/2] Bump version and release notes --- CHANGELOG.md | 4 ++++ scripts/IncrementMinorVersion.ps1 | 4 +++- src/Microsoft.Graph/Microsoft.Graph.csproj | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3dd9dac1611..660019bbed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.47.0] - 2024-04-04 + +- Latest metadata updates from 4th April 2024. + ## [5.46.0] - 2024-03-27 - Latest metadata updates from 27th March 2024. diff --git a/scripts/IncrementMinorVersion.ps1 b/scripts/IncrementMinorVersion.ps1 index c06e787cae9..737922912ac 100644 --- a/scripts/IncrementMinorVersion.ps1 +++ b/scripts/IncrementMinorVersion.ps1 @@ -15,7 +15,7 @@ #> -$fullFileName = $PWD.ToString() + "\src\Microsoft.Graph\Microsoft.Graph.csproj" +$fullFileName = Join-Path $PWD.ToString() "src" "Microsoft.Graph" "Microsoft.Graph.csproj" # Read .csproj file as UTF-8 $xmlDoc = New-Object -TypeName XML @@ -59,3 +59,5 @@ $updatedVersionPrefixString = "{0}.{1}.{2}" -f $majorVersion, $minorVersion, $pa $xmlDoc.Project.PropertyGroup[0].VersionPrefix = $updatedVersionPrefixString $xmlDoc.Save($fullFileName) + +Write-Host "Version incremented from $versionPrefixString to $updatedVersionPrefixString" diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index 5cac93698ba..0885f52bf68 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.46.0 + 5.47.0