From e3b85b894ae96311af20118b0dad0140bbc0b18b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 10:56:51 +0000 Subject: [PATCH 1/6] Bump actions/checkout from 3.5.0 to 3.5.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.5.0...v3.5.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/validatePullRequest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index 4058286718b..497bd66dc81 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -13,7 +13,7 @@ jobs: env: solutionName: Microsoft.Graph.sln steps: - - uses: actions/checkout@v3.5.0 + - uses: actions/checkout@v3.5.1 - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: From 549e38c48caf893ea0008d024dbffc05fe064b6b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:56:53 +0000 Subject: [PATCH 2/6] Bump actions/checkout from 3.5.1 to 3.5.2 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.1 to 3.5.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.5.1...v3.5.2) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/validatePullRequest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index 497bd66dc81..dfa1e439fcc 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -13,7 +13,7 @@ jobs: env: solutionName: Microsoft.Graph.sln steps: - - uses: actions/checkout@v3.5.1 + - uses: actions/checkout@v3.5.2 - name: Setup .NET uses: actions/setup-dotnet@v3.0.3 with: From de6e3f19019ad200dc63cc4fc7136ab0e57c9b12 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:57:02 +0000 Subject: [PATCH 3/6] Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.3.6 to 1.4.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.3.6...v1.4.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/auto-merge-dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml index d72e8d3101a..af1ca98f0e6 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/auto-merge-dependabot.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.3.6 + uses: dependabot/fetch-metadata@v1.4.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" From b0993129b2e1c27f63d8b35751812f58076d5510 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Wed, 19 Apr 2023 17:12:42 +0000 Subject: [PATCH 4/6] Update generated files with build 113018 --- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Invite/InviteRequestBuilder.cs | 6 +- .../Item/Promote/PromoteRequestBuilder.cs | 5 +- .../Generated/Drives/DrivesRequestBuilder.cs | 6 +- .../Drives/Item/DriveItemRequestBuilder.cs | 7 +- .../RangeNamespace/RangeRequestBuilder.cs | 6 +- .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Item/Points/PointsRequestBuilder.cs | 8 +- .../RangeNamespace/RangeRequestBuilder.cs | 6 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../Education/Me/User/UserRequestBuilder.cs | 5 + .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../Users/Item/User/UserRequestBuilder.cs | 5 + .../ConversationsRequestBuilder.cs | 6 +- .../InReplyTo/Reply/ReplyRequestBuilder.cs | 6 +- .../Posts/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Threads/Item/Posts/PostsRequestBuilder.cs | 8 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Groups/Item/Drive/DriveRequestBuilder.cs | 7 +- .../Item/Drives/DrivesRequestBuilder.cs | 7 +- .../Sites/Item/Drive/DriveRequestBuilder.cs | 7 +- .../Sites/Item/Drives/DrivesRequestBuilder.cs | 7 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- ...penShiftChangeRequestItemRequestBuilder.cs | 6 +- .../Item/OpenShiftItemRequestBuilder.cs | 6 +- .../OpenShifts/OpenShiftsRequestBuilder.cs | 5 +- .../InReplyTo/Reply/ReplyRequestBuilder.cs | 6 +- .../Posts/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Threads/Item/Posts/PostsRequestBuilder.cs | 8 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- ...AuthenticationMethodModesRequestBuilder.cs | 235 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ ...ationMethodModeDetailItemRequestBuilder.cs | 243 +++++++++++++++++ .../AuthenticationStrengthRequestBuilder.cs | 253 +++++++++++++++++ .../Policies/Count/CountRequestBuilder.cs | 118 ++++++++ ...icationStrengthPolicyItemRequestBuilder.cs | 258 ++++++++++++++++++ ...CombinationConfigurationsRequestBuilder.cs | 235 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ ...binationConfigurationItemRequestBuilder.cs | 243 +++++++++++++++++ ...pdateAllowedCombinationsPostRequestBody.cs | 64 +++++ ...UpdateAllowedCombinationsRequestBuilder.cs | 96 +++++++ .../Item/Usage/UsageRequestBuilder.cs | 91 ++++++ .../Policies/PoliciesRequestBuilder.cs | 235 ++++++++++++++++ .../ConditionalAccessRequestBuilder.cs | 5 + .../Item/History/HistoryRequestBuilder.cs | 8 +- .../InvitedUser/InvitedUserRequestBuilder.cs | 5 + .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../CalendarViewRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- ...penShiftChangeRequestItemRequestBuilder.cs | 6 +- .../Item/OpenShiftItemRequestBuilder.cs | 6 +- .../OpenShifts/OpenShiftsRequestBuilder.cs | 5 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Item/MailFolderItemRequestBuilder.cs | 12 +- .../MailFolders/MailFoldersRequestBuilder.cs | 18 +- .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../Generated/Me/MeRequestBuilder.cs | 13 +- .../Item/MessageItemRequestBuilder.cs | 12 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 20 +- .../ChecklistItemsRequestBuilder.cs | 12 +- .../Models/AgreementCollectionResponse.cs | 11 +- .../Generated/Models/AppManagementPolicy.cs | 6 +- .../Generated/Models/Application.cs | 2 +- .../AuthenticationCombinationConfiguration.cs | 52 ++++ ...binationConfigurationCollectionResponse.cs | 48 ++++ .../Models/AuthenticationMethodModeDetail.cs | 55 ++++ ...ationMethodModeDetailCollectionResponse.cs | 48 ++++ .../Models/AuthenticationMethodModes.cs | 40 +++ .../Models/AuthenticationStrengthPolicy.cs | 124 +++++++++ ...icationStrengthPolicyCollectionResponse.cs | 48 ++++ .../AuthenticationStrengthPolicyType.cs | 12 + .../AuthenticationStrengthRequirements.cs | 12 + .../Models/AuthenticationStrengthRoot.cs | 80 ++++++ .../Models/AuthenticationStrengthUsage.cs | 95 +++++++ .../Models/BaseAuthenticationMethod.cs | 32 +++ .../Generated/Models/ChatMessage.cs | 16 ++ .../Generated/Models/ChatMessageActions.cs | 14 + .../Models/ChatMessageHistoryItem.cs | 93 +++++++ ...hatMessageHistoryItemCollectionResponse.cs | 48 ++++ .../Models/ConditionalAccessGrantControls.cs | 16 ++ .../Generated/Models/ConditionalAccessRoot.cs | 16 ++ .../Generated/Models/Device.cs | 2 +- .../DeviceManagementTroubleshootingEvent.cs | 3 - .../Generated/Models/Entity.cs | 5 + .../Models/Fido2CombinationConfiguration.cs | 54 ++++ ...binationConfigurationCollectionResponse.cs | 48 ++++ src/Microsoft.Graph/Generated/Models/Group.cs | 2 +- .../Models/ManagedAppRegistration.cs | 3 - .../Generated/Models/ManagedDevice.cs | 3 - .../Generated/Models/MobileApp.cs | 3 + .../Generated/Models/PolicyRoot.cs | 16 ++ .../Generated/Models/RoleDefinition.cs | 3 - .../Generated/Models/Schedule.cs | 4 +- .../Generated/Models/ServicePrincipal.cs | 2 +- .../Models/UpdateAllowedCombinationsResult.cs | 127 +++++++++ src/Microsoft.Graph/Generated/Models/User.cs | 2 +- .../Item/DirectoryObjectItemRequestBuilder.cs | 6 +- ...nticationStrengthPoliciesRequestBuilder.cs | 235 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ ...icationStrengthPolicyItemRequestBuilder.cs | 258 ++++++++++++++++++ ...CombinationConfigurationsRequestBuilder.cs | 235 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 ++++++++ ...binationConfigurationItemRequestBuilder.cs | 243 +++++++++++++++++ ...pdateAllowedCombinationsPostRequestBody.cs | 64 +++++ ...UpdateAllowedCombinationsRequestBuilder.cs | 96 +++++++ .../Item/Usage/UsageRequestBuilder.cs | 91 ++++++ .../Policies/PoliciesRequestBuilder.cs | 5 + .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../Item/UserItemRequestBuilder.cs | 5 + .../Sites/Item/Drive/DriveRequestBuilder.cs | 7 +- .../Sites/Item/Drives/DrivesRequestBuilder.cs | 7 +- .../Generated/Sites/SitesRequestBuilder.cs | 8 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- ...penShiftChangeRequestItemRequestBuilder.cs | 6 +- .../Item/OpenShiftItemRequestBuilder.cs | 6 +- .../OpenShifts/OpenShiftsRequestBuilder.cs | 5 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../CalendarViewRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- ...penShiftChangeRequestItemRequestBuilder.cs | 6 +- .../Item/OpenShiftItemRequestBuilder.cs | 6 +- .../OpenShifts/OpenShiftsRequestBuilder.cs | 5 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Item/MailFolderItemRequestBuilder.cs | 12 +- .../MailFolders/MailFoldersRequestBuilder.cs | 18 +- .../MailboxSettingsRequestBuilder.cs | 184 +++++++++++++ .../Item/MessageItemRequestBuilder.cs | 12 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 20 +- .../ChecklistItemsRequestBuilder.cs | 12 +- .../Users/Item/UserItemRequestBuilder.cs | 5 + .../Generated/Users/UsersRequestBuilder.cs | 8 +- src/Microsoft.Graph/Generated/kiota-lock.json | 4 +- 145 files changed, 6318 insertions(+), 262 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BaseAuthenticationMethod.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItemCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Fido2CombinationConfigurationCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 2a100a57b67..7a42f5bd1c2 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 0bb1445adca..ebb8e2f76bf 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 0e35b3e8091..d76918f2c7f 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -28,8 +28,8 @@ public InviteRequestBuilder(Dictionary pathParameters, IRequestA public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. - /// Find more info here + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs index a5d6b5066ab..3414219cff4 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/Promote/PromoteRequestBuilder.cs @@ -27,7 +27,8 @@ public PromoteRequestBuilder(Dictionary pathParameters, IRequest public PromoteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/domains/{domain%2Did}/promote", rawUrl) { } /// - /// Invoke action promote + /// Promote a verified subdomain to the root domain. A verified domain has its **isVerified** property set to `true`. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -46,7 +47,7 @@ public async Task PostAsync(Action(requestInfo, PromoteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Invoke action promote + /// Promote a verified subdomain to the root domain. A verified domain has its **isVerified** property set to `true`. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs index 1c1b90286bd..3c38c28f294 100644 --- a/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/DrivesRequestBuilder.cs @@ -40,7 +40,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Get entities from drives /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -80,7 +80,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Get entities from drives /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +134,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Drive return requestInfo; } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Get entities from drives /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs index 6f9c7e7f39a..c2b7c6450e7 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/DriveItemRequestBuilder.cs @@ -88,8 +88,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. - /// Find more info here + /// Get entity from drives by key /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -161,7 +160,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Get entity from drives by key /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -231,7 +230,7 @@ public DriveItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// Get entity from drives by key /// public class DriveItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 46f08e18b67..d0c94daf406 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -28,8 +28,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. - /// Find more info here + /// Retrieve the properties and relationships of range object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 03321216c9a..f0e9d56a91f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -51,7 +51,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// Retrieve a list of nameditem objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/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 ee53f99ecaa..64aa01999ca 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 @@ -47,7 +47,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/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 9d4e497a61f..7dffc323b00 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 @@ -41,8 +41,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index c57256d145a..e79554ef4ea 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -28,8 +28,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. - /// Find more info here + /// Retrieve the properties and relationships of range object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index 5e16f09c667..7d5b43d877a 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 @@ -47,7 +47,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..247e8dec941 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/User/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Me.User.MailboxSettings { + /// + /// Builds and executes requests for operations under \education\me\user\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/user/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs index 51a1fac9bc1..a817871a383 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/User/UserRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Education.Me.User.MailboxSettings; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -13,6 +14,10 @@ namespace Microsoft.Graph.Education.Me.User { /// Provides operations to manage the user property of the microsoft.graph.educationUser entity. /// public class UserRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..0ba9d1baaf8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Education.Users.Item.User.MailboxSettings { + /// + /// Builds and executes requests for operations under \education\users\{educationUser-id}\user\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/user/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs index 8e3672142f2..34df90fca9e 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/User/UserRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Education.Users.Item.User.MailboxSettings; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -13,6 +14,10 @@ namespace Microsoft.Graph.Education.Users.Item.User { /// Provides operations to manage the user property of the microsoft.graph.educationUser entity. /// public class UserRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new UserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 9f06ea5761d..868be5ebe4e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -60,8 +60,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -108,7 +108,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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 36ead25c80d..37881603ccd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 00c1d3a29ee..51bc363209c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 86b96feed2a..bb87bc2df55 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -40,8 +40,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. - /// Find more info here + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +60,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 7f95b27073f..cf0a6b0cfdc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs index 562829fc308..fa942a24222 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drive/DriveRequestBuilder.cs @@ -28,8 +28,7 @@ public DriveRequestBuilder(Dictionary pathParameters, IRequestAd public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/drive{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. - /// Find more info here + /// The group's default drive. Read-only. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +47,7 @@ public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The group's default drive. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -74,7 +73,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The group's default drive. Read-only. /// public class DriveRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs index 04f0aec1aca..06511cdded1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Drives/DrivesRequestBuilder.cs @@ -40,8 +40,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. - /// Find more info here + /// The group's drives. Read-only. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, DriveCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The group's drives. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +85,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The group's drives. Read-only. /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs index 4fd0862c989..570f2a5d6d6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drive/DriveRequestBuilder.cs @@ -28,8 +28,7 @@ public DriveRequestBuilder(Dictionary pathParameters, IRequestAd public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drive{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. - /// Find more info here + /// The default drive (document library) for this site. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +47,7 @@ public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The default drive (document library) for this site. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -74,7 +73,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The default drive (document library) for this site. /// public class DriveRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs index 5de57ab39f1..a615b89767e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Drives/DrivesRequestBuilder.cs @@ -40,8 +40,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. - /// Find more info here + /// The collection of drives (document libraries) under this site. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, DriveCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The collection of drives (document libraries) under this site. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +85,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The collection of drives (document libraries) under this site. /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 83d43dad462..f8be8f7f9bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index d7a439251f3..a47cb584daa 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 2e92afa0f42..25707140fdf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShiftChangeRequests from groups + /// The open shift requests in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShiftChangeRequests from groups + /// The open shift requests in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShiftChangeRequests from groups + /// The open shift requests in the schedule. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 3303f175000..15218bb7cef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShifts from groups + /// The set of open shifts in a scheduling group in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShifts from groups + /// The set of open shifts in a scheduling group in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShifts from groups + /// The set of open shifts in a scheduling group in the schedule. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 261b65c2bfa..03d0df7a75c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -60,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to openShifts for groups + /// Create an instance of an openShift object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to openShifts for groups + /// Create an instance of an openShift object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 4bf169eae6b..bdc997cc237 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index ff306bd20ec..e16a82728d5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 85ea5ac3a97..42dbd415bbb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -40,8 +40,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. - /// Find more info here + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +60,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the **post** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **post** instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index a5267d5eabf..da835e6d18c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -27,8 +27,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs new file mode 100644 index 00000000000..d1178edf752 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/AuthenticationMethodModesRequestBuilder.cs @@ -0,0 +1,235 @@ +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes.Count; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes.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.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes { + /// + /// Provides operations to manage the authenticationMethodModes property of the microsoft.graph.authenticationStrengthRoot entity. + /// + public class AuthenticationMethodModesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the authenticationMethodModes property of the microsoft.graph.authenticationStrengthRoot entity. + public AuthenticationMethodModeDetailItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("authenticationMethodModeDetail%2Did", position); + return new AuthenticationMethodModeDetailItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AuthenticationMethodModesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationMethodModesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationMethodModesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationMethodModesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get authenticationMethodModes from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethodModeDetailCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to authenticationMethodModes for identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationMethodModeDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthenticationMethodModeDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethodModeDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get authenticationMethodModes from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationMethodModesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to authenticationMethodModes for identity + /// + /// 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(AuthenticationMethodModeDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationMethodModeDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationMethodModesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get authenticationMethodModes from identity + /// + public class AuthenticationMethodModesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationMethodModesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationMethodModesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationMethodModesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new authenticationMethodModesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationMethodModesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationMethodModesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new authenticationMethodModesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AuthenticationMethodModesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7aa441786f7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/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.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs new file mode 100644 index 00000000000..33df2952714 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationMethodModes/Item/AuthenticationMethodModeDetailItemRequestBuilder.cs @@ -0,0 +1,243 @@ +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.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes.Item { + /// + /// Provides operations to manage the authenticationMethodModes property of the microsoft.graph.authenticationStrengthRoot entity. + /// + public class AuthenticationMethodModeDetailItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AuthenticationMethodModeDetailItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationMethodModeDetailItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/{authenticationMethodModeDetail%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationMethodModeDetailItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationMethodModeDetailItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/authenticationMethodModes/{authenticationMethodModeDetail%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property authenticationMethodModes for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get authenticationMethodModes from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethodModeDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property authenticationMethodModes in identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationMethodModeDetail body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationMethodModeDetail body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationMethodModeDetail.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property authenticationMethodModes for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationMethodModeDetailItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get authenticationMethodModes from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationMethodModeDetailItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property authenticationMethodModes in identity + /// + /// 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(AuthenticationMethodModeDetail body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationMethodModeDetail body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationMethodModeDetailItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationMethodModeDetailItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationMethodModeDetailItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationMethodModeDetailItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get authenticationMethodModes from identity + /// + public class AuthenticationMethodModeDetailItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationMethodModeDetailItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationMethodModeDetailItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationMethodModeDetailItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthenticationMethodModeDetailItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationMethodModeDetailItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationMethodModeDetailItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationMethodModeDetailItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationMethodModeDetailItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs new file mode 100644 index 00000000000..b36a8e34d9f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/AuthenticationStrengthRequestBuilder.cs @@ -0,0 +1,253 @@ +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.AuthenticationMethodModes; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies; +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.Identity.ConditionalAccess.AuthenticationStrength { + /// + /// Provides operations to manage the authenticationStrength property of the microsoft.graph.conditionalAccessRoot entity. + /// + public class AuthenticationStrengthRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the authenticationMethodModes property of the microsoft.graph.authenticationStrengthRoot entity. + public AuthenticationMethodModesRequestBuilder AuthenticationMethodModes { get => + new AuthenticationMethodModesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the policies property of the microsoft.graph.authenticationStrengthRoot entity. + public PoliciesRequestBuilder Policies { get => + new PoliciesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new AuthenticationStrengthRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationStrengthRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationStrengthRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationStrengthRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property authenticationStrength for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get authenticationStrength from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property authenticationStrength in identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationStrengthRoot body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationStrengthRoot body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property authenticationStrength for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get authenticationStrength from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property authenticationStrength in identity + /// + /// 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(AuthenticationStrengthRoot body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationStrengthRoot body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new authenticationStrengthRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get authenticationStrength from identity + /// + public class AuthenticationStrengthRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationStrengthRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationStrengthRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new authenticationStrengthRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new authenticationStrengthRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..655994d02b1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs new file mode 100644 index 00000000000..370fcc1a60a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs @@ -0,0 +1,258 @@ +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.UpdateAllowedCombinations; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.Usage; +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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item { + /// + /// Provides operations to manage the policies property of the microsoft.graph.authenticationStrengthRoot entity. + /// + public class AuthenticationStrengthPolicyItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + public CombinationConfigurationsRequestBuilder CombinationConfigurations { get => + new CombinationConfigurationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the updateAllowedCombinations method. + public UpdateAllowedCombinationsRequestBuilder UpdateAllowedCombinations { get => + new UpdateAllowedCombinationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the usage method. + public UsageRequestBuilder Usage { get => + new UsageRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPolicyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property policies for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get policies from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property policies in identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationStrengthPolicy body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationStrengthPolicy body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property policies for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get policies from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property policies in identity + /// + /// 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(AuthenticationStrengthPolicy body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationStrengthPolicy body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get policies from identity + /// + public class AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs new file mode 100644 index 00000000000..680a43de422 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -0,0 +1,235 @@ +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations.Count; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations.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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations { + /// + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + /// + public class CombinationConfigurationsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + public AuthenticationCombinationConfigurationItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("authenticationCombinationConfiguration%2Did", position); + return new AuthenticationCombinationConfigurationItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CombinationConfigurationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CombinationConfigurationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CombinationConfigurationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CombinationConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get combinationConfigurations from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to combinationConfigurations for identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthenticationCombinationConfiguration body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get combinationConfigurations from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CombinationConfigurationsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to combinationConfigurations for identity + /// + /// 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(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationCombinationConfiguration body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CombinationConfigurationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get combinationConfigurations from identity + /// + public class CombinationConfigurationsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CombinationConfigurationsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CombinationConfigurationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CombinationConfigurationsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new combinationConfigurationsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CombinationConfigurationsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CombinationConfigurationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new combinationConfigurationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CombinationConfigurationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c8654ff0950 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs new file mode 100644 index 00000000000..74c5442d03b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -0,0 +1,243 @@ +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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.CombinationConfigurations.Item { + /// + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationCombinationConfigurationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationCombinationConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property combinationConfigurations for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get combinationConfigurations from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property combinationConfigurations in identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationCombinationConfiguration body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property combinationConfigurations for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get combinationConfigurations from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property combinationConfigurations in identity + /// + /// 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(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationCombinationConfiguration body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get combinationConfigurations from identity + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs new file mode 100644 index 00000000000..6983a4d361b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs @@ -0,0 +1,64 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.UpdateAllowedCombinations { + public class UpdateAllowedCombinationsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// The allowedCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedCombinations { + get { return BackingStore?.Get?>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#nullable restore +#else + public List AllowedCombinations { + get { return BackingStore?.Get>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// + /// Instantiates a new updateAllowedCombinationsPostRequestBody and sets the default values. + /// + public UpdateAllowedCombinationsPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UpdateAllowedCombinationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UpdateAllowedCombinationsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs new file mode 100644 index 00000000000..5e7f17f21ac --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -0,0 +1,96 @@ +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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.UpdateAllowedCombinations { + /// + /// Provides operations to call the updateAllowedCombinations method. + /// + public class UpdateAllowedCombinationsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UpdateAllowedCombinationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", pathParameters) { + } + /// + /// Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UpdateAllowedCombinationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", rawUrl) { + } + /// + /// Invoke action updateAllowedCombinations + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(UpdateAllowedCombinationsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(UpdateAllowedCombinationsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UpdateAllowedCombinationsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke action updateAllowedCombinations + /// + /// 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(UpdateAllowedCombinationsPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(UpdateAllowedCombinationsPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new updateAllowedCombinationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs new file mode 100644 index 00000000000..674ddad1b29 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/Item/Usage/UsageRequestBuilder.cs @@ -0,0 +1,91 @@ +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.Identity.ConditionalAccess.AuthenticationStrength.Policies.Item.Usage { + /// + /// Provides operations to call the usage method. + /// + public class UsageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new UsageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/usage()", pathParameters) { + } + /// + /// Instantiates a new UsageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies/{authenticationStrengthPolicy%2Did}/usage()", rawUrl) { + } + /// + /// Invoke function usage + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthUsage.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function usage + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UsageRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UsageRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new usageRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UsageRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs new file mode 100644 index 00000000000..4f36e69cd74 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/AuthenticationStrength/Policies/PoliciesRequestBuilder.cs @@ -0,0 +1,235 @@ +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.Count; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength.Policies.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.Identity.ConditionalAccess.AuthenticationStrength.Policies { + /// + /// Provides operations to manage the policies property of the microsoft.graph.authenticationStrengthRoot entity. + /// + public class PoliciesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the policies property of the microsoft.graph.authenticationStrengthRoot entity. + public AuthenticationStrengthPolicyItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("authenticationStrengthPolicy%2Did", position); + return new AuthenticationStrengthPolicyItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new PoliciesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PoliciesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/authenticationStrength/policies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get policies from identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to policies for identity + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationStrengthPolicy body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthenticationStrengthPolicy body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get policies from identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new PoliciesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to policies for identity + /// + /// 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(AuthenticationStrengthPolicy body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationStrengthPolicy body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new PoliciesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get policies from identity + /// + public class PoliciesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PoliciesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public PoliciesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new PoliciesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new policiesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public PoliciesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PoliciesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new policiesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public PoliciesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs index 2ed1339d34d..bbf090332ad 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationContextClassReferences; +using Microsoft.Graph.Identity.ConditionalAccess.AuthenticationStrength; using Microsoft.Graph.Identity.ConditionalAccess.NamedLocations; using Microsoft.Graph.Identity.ConditionalAccess.Policies; using Microsoft.Graph.Identity.ConditionalAccess.Templates; @@ -21,6 +22,10 @@ public class ConditionalAccessRequestBuilder : BaseRequestBuilder { public AuthenticationContextClassReferencesRequestBuilder AuthenticationContextClassReferences { get => new AuthenticationContextClassReferencesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the authenticationStrength property of the microsoft.graph.conditionalAccessRoot entity. + public AuthenticationStrengthRequestBuilder AuthenticationStrength { get => + new AuthenticationStrengthRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the namedLocations property of the microsoft.graph.conditionalAccessRoot entity. public NamedLocationsRequestBuilder NamedLocations { get => new NamedLocationsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index 130c1addf51..b5d0b909e95 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -40,8 +40,8 @@ public HistoryRequestBuilder(Dictionary pathParameters, IRequest public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the riskyUserHistoryItems from the history navigation property. - /// Find more info here + /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -81,7 +81,7 @@ public async Task PostAsync(RiskyUserHistoryItem body, Act return await RequestAdapter.SendAsync(requestInfo, RiskyUserHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public RequestInformation ToPostRequestInformation(RiskyUserHistoryItem body, Ac return requestInfo; } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs index 6e7badb363e..6eef2b0fa77 100644 --- a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/InvitedUserRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Invitations.Item.InvitedUser.MailboxSettings; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -13,6 +14,10 @@ namespace Microsoft.Graph.Invitations.Item.InvitedUser { /// Provides operations to manage the invitedUser property of the microsoft.graph.invitation entity. /// public class InvitedUserRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new InvitedUserRequestBuilder and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..c09eb1c5136 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Invitations/Item/InvitedUser/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Invitations.Item.InvitedUser.MailboxSettings { + /// + /// Builds and executes requests for operations under \invitations\{invitation-id}\invitedUser\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/invitations/{invitation%2Did}/invitedUser/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index b3339cafa19..81be4478f67 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -45,7 +45,7 @@ public CalendarViewRequestBuilder(Dictionary pathParameters, IRe public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -91,7 +91,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index cdd9baf7324..0df958d0a00 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 6ac50954884..25997044bb3 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index d75a604db71..622c20aac16 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 82e1d912a4b..e0aff4710c0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index aac6eb74e3c..0e6e5e40ed0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShiftChangeRequests from me + /// The open shift requests in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShiftChangeRequests from me + /// The open shift requests in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShiftChangeRequests from me + /// The open shift requests in the schedule. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 60b86936c58..2c0143b003c 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShifts from me + /// The set of open shifts in a scheduling group in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShifts from me + /// The set of open shifts in a scheduling group in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShifts from me + /// The set of open shifts in a scheduling group in the schedule. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index a557101bc8a..525dd75cbe3 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -60,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to openShifts for me + /// Create an instance of an openShift object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to openShifts for me + /// Create an instance of an openShift object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 9880f270c19..ad4f59c8e6b 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs index 0e998e08576..203b691c1e9 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -53,14 +53,14 @@ public class MailFolderItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MailFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}{?%24select,%24expand}", pathParameters) { + public MailFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MailFolderItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}{?%24select,%24expand}", rawUrl) { + public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", rawUrl) { } /// /// Delete navigation property mailFolders for me @@ -228,6 +228,14 @@ public class MailFolderItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24expand")] public string[] Expand { get; set; } +#endif + /// Include Hidden Folders +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenFolders { get; set; } +#nullable restore +#else + public string IncludeHiddenFolders { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs index e15a573a4ae..a95dfe6f3db 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/MailFoldersRequestBuilder.cs @@ -35,17 +35,17 @@ public MailFolderItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MailFoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + public MailFoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders{?includeHiddenFolders*,%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MailFoldersRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MailFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + public MailFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders{?includeHiddenFolders*,%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -87,7 +87,7 @@ public async Task PostAsync(MailFolder body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// public class MailFoldersRequestBuilderGetQueryParameters { /// Include count of items @@ -166,6 +166,14 @@ public class MailFoldersRequestBuilderGetQueryParameters { #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Include Hidden Folders +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenFolders { get; set; } +#nullable restore +#else + public string IncludeHiddenFolders { get; set; } #endif /// Order items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..dd96ae81b6b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.MailboxSettings { + /// + /// Builds and executes requests for operations under \me\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 8011af8989e..d3485da446b 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -36,6 +36,7 @@ using Microsoft.Graph.Me.JoinedTeams; using Microsoft.Graph.Me.LicenseDetails; using Microsoft.Graph.Me.MailFolders; +using Microsoft.Graph.Me.MailboxSettings; using Microsoft.Graph.Me.ManagedAppRegistrations; using Microsoft.Graph.Me.ManagedDevices; using Microsoft.Graph.Me.Manager; @@ -225,6 +226,10 @@ public class MeRequestBuilder : BaseRequestBuilder { public LicenseDetailsRequestBuilder LicenseDetails { get => new LicenseDetailsRequestBuilder(PathParameters, RequestAdapter); } + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the mailFolders property of the microsoft.graph.user entity. public MailFoldersRequestBuilder MailFolders { get => new MailFoldersRequestBuilder(PathParameters, RequestAdapter); @@ -370,8 +375,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. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -422,7 +427,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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -476,7 +481,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.User return requestInfo; } /// - /// 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. /// public class MeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 6ed3a1e9705..8237a14572b 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -88,14 +88,14 @@ public class MessageItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MessageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?%24select,%24expand}", pathParameters) { + public MessageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MessageItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?%24select,%24expand}", rawUrl) { + public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// /// Delete navigation property messages for me @@ -263,6 +263,14 @@ public class MessageItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24expand")] public string[] Expand { get; set; } +#endif + /// Include Hidden Messages +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenMessages { get; set; } +#nullable restore +#else + public string IncludeHiddenMessages { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index bbe0395dffa..bb0c2a119ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -28,7 +28,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 91160a8cbc5..73f03900e61 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -35,18 +35,18 @@ public MessageItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MessagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + public MessagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages{?includeHiddenMessages*,%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MessagesRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages{?includeHiddenMessages*,%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. - /// Find more info here + /// The messages in a mailbox or folder. Read-only. Nullable. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -87,7 +87,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The messages in a mailbox or folder. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag return requestInfo; } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The messages in a mailbox or folder. Read-only. Nullable. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items @@ -166,6 +166,14 @@ public class MessagesRequestBuilderGetQueryParameters { #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Include Hidden Messages +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenMessages { get; set; } +#nullable restore +#else + public string IncludeHiddenMessages { get; set; } #endif /// Order items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index f4c3c0222b5..4365bf313a2 100644 --- a/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -40,7 +40,8 @@ public ChecklistItemsRequestBuilder(Dictionary pathParameters, I public ChecklistItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -59,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, ChecklistItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to checklistItems for me + /// Create a new checklistItem object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -80,7 +82,7 @@ public async Task PostAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to checklistItems for me + /// Create a new checklistItem object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -134,7 +136,7 @@ public RequestInformation ToPostRequestInformation(ChecklistItem body, Action - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. /// public class ChecklistItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs index fb7b2df6e2a..508f238a246 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs @@ -1,13 +1,10 @@ using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System.Collections.Generic; using System.IO; using System.Linq; using System; namespace Microsoft.Graph.Models { - public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IBackedModel, IParsable { - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,12 +19,6 @@ public List Value { set { BackingStore?.Set("value", value); } } #endif - /// - /// Instantiates a new AgreementCollectionResponse and sets the default values. - /// - public AgreementCollectionResponse() : base() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - } /// /// Creates a new instance of the appropriate class based on discriminator value /// diff --git a/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs b/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs index ab4ea83e7db..007e99a9e82 100644 --- a/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AppManagementPolicy.cs @@ -5,7 +5,7 @@ using System; namespace Microsoft.Graph.Models { public class AppManagementPolicy : PolicyBase, IParsable { - /// The appliesTo property + /// Collection of applications and service principals to which the policy is applied. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AppliesTo { @@ -19,12 +19,12 @@ public List AppliesTo { set { BackingStore?.Set("appliesTo", value); } } #endif - /// The isEnabled property + /// Denotes whether the policy is enabled. public bool? IsEnabled { get { return BackingStore?.Get("isEnabled"); } set { BackingStore?.Set("isEnabled", value); } } - /// The restrictions property + /// Restrictions that apply to an application or service principal object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public AppManagementConfiguration? Restrictions { diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index 2a782988aad..b61c7205d52 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -563,7 +563,7 @@ public WebApplication Web { } #endif /// - /// Instantiates a new application and sets the default values. + /// Instantiates a new Application and sets the default values. /// public Application() : base() { OdataType = "#microsoft.graph.application"; diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs new file mode 100644 index 00000000000..c6436ca11fe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfiguration.cs @@ -0,0 +1,52 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationCombinationConfiguration : Entity, IParsable { + /// The appliesToCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AppliesToCombinations { + get { return BackingStore?.Get?>("appliesToCombinations"); } + set { BackingStore?.Set("appliesToCombinations", value); } + } +#nullable restore +#else + public List AppliesToCombinations { + get { return BackingStore?.Get>("appliesToCombinations"); } + set { BackingStore?.Set("appliesToCombinations", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationCombinationConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.fido2CombinationConfiguration" => new Fido2CombinationConfiguration(), + _ => new AuthenticationCombinationConfiguration(), + }; + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"appliesToCombinations", n => { AppliesToCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("appliesToCombinations", AppliesToCombinations); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs new file mode 100644 index 00000000000..ab33f221971 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationCombinationConfigurationCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationCombinationConfigurationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationCombinationConfigurationCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationCombinationConfigurationCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/AuthenticationMethodModeDetail.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs new file mode 100644 index 00000000000..851f858da8c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetail.cs @@ -0,0 +1,55 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationMethodModeDetail : Entity, IParsable { + /// The authenticationMethod property + public BaseAuthenticationMethod? AuthenticationMethod { + get { return BackingStore?.Get("authenticationMethod"); } + set { BackingStore?.Set("authenticationMethod", 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 + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationMethodModeDetail CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationMethodModeDetail(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"authenticationMethod", n => { AuthenticationMethod = n.GetEnumValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("authenticationMethod", AuthenticationMethod); + writer.WriteStringValue("displayName", DisplayName); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs new file mode 100644 index 00000000000..9a59c2364cd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModeDetailCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationMethodModeDetailCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationMethodModeDetailCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationMethodModeDetailCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationMethodModeDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/AuthenticationMethodModes.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs new file mode 100644 index 00000000000..3377a766741 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs @@ -0,0 +1,40 @@ +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum AuthenticationMethodModes { + [EnumMember(Value = "password")] + Password, + [EnumMember(Value = "voice")] + Voice, + [EnumMember(Value = "hardwareOath")] + HardwareOath, + [EnumMember(Value = "softwareOath")] + SoftwareOath, + [EnumMember(Value = "sms")] + Sms, + [EnumMember(Value = "fido2")] + Fido2, + [EnumMember(Value = "windowsHelloForBusiness")] + WindowsHelloForBusiness, + [EnumMember(Value = "microsoftAuthenticatorPush")] + MicrosoftAuthenticatorPush, + [EnumMember(Value = "deviceBasedPush")] + DeviceBasedPush, + [EnumMember(Value = "temporaryAccessPassOneTime")] + TemporaryAccessPassOneTime, + [EnumMember(Value = "temporaryAccessPassMultiUse")] + TemporaryAccessPassMultiUse, + [EnumMember(Value = "email")] + Email, + [EnumMember(Value = "x509CertificateSingleFactor")] + X509CertificateSingleFactor, + [EnumMember(Value = "x509CertificateMultiFactor")] + X509CertificateMultiFactor, + [EnumMember(Value = "federatedSingleFactor")] + FederatedSingleFactor, + [EnumMember(Value = "federatedMultiFactor")] + FederatedMultiFactor, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs new file mode 100644 index 00000000000..e3979b6f13d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicy.cs @@ -0,0 +1,124 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationStrengthPolicy : Entity, IParsable { + /// The allowedCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedCombinations { + get { return BackingStore?.Get?>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#nullable restore +#else + public List AllowedCombinations { + get { return BackingStore?.Get>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#endif + /// The combinationConfigurations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CombinationConfigurations { + get { return BackingStore?.Get?>("combinationConfigurations"); } + set { BackingStore?.Set("combinationConfigurations", value); } + } +#nullable restore +#else + public List CombinationConfigurations { + get { return BackingStore?.Get>("combinationConfigurations"); } + set { BackingStore?.Set("combinationConfigurations", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The modifiedDateTime property + public DateTimeOffset? ModifiedDateTime { + get { return BackingStore?.Get("modifiedDateTime"); } + set { BackingStore?.Set("modifiedDateTime", value); } + } + /// The policyType property + public AuthenticationStrengthPolicyType? PolicyType { + get { return BackingStore?.Get("policyType"); } + set { BackingStore?.Set("policyType", value); } + } + /// The requirementsSatisfied property + public AuthenticationStrengthRequirements? RequirementsSatisfied { + get { return BackingStore?.Get("requirementsSatisfied"); } + set { BackingStore?.Set("requirementsSatisfied", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationStrengthPolicy CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationStrengthPolicy(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"combinationConfigurations", n => { CombinationConfigurations = n.GetCollectionOfObjectValues(AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"policyType", n => { PolicyType = n.GetEnumValue(); } }, + {"requirementsSatisfied", n => { RequirementsSatisfied = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); + writer.WriteCollectionOfObjectValues("combinationConfigurations", CombinationConfigurations); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); + writer.WriteEnumValue("policyType", PolicyType); + writer.WriteEnumValue("requirementsSatisfied", RequirementsSatisfied); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs new file mode 100644 index 00000000000..6e4f5ad0452 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationStrengthPolicyCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationStrengthPolicyCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationStrengthPolicyCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/AuthenticationStrengthPolicyType.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyType.cs new file mode 100644 index 00000000000..3b895da95f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthPolicyType.cs @@ -0,0 +1,12 @@ +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum AuthenticationStrengthPolicyType { + [EnumMember(Value = "builtIn")] + BuiltIn, + [EnumMember(Value = "custom")] + Custom, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs new file mode 100644 index 00000000000..54729ed5c35 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs @@ -0,0 +1,12 @@ +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum AuthenticationStrengthRequirements { + [EnumMember(Value = "none")] + None, + [EnumMember(Value = "mfa")] + Mfa, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs new file mode 100644 index 00000000000..54200c38513 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRoot.cs @@ -0,0 +1,80 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationStrengthRoot : Entity, IParsable { + /// The authenticationMethodModes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AuthenticationMethodModes { + get { return BackingStore?.Get?>("authenticationMethodModes"); } + set { BackingStore?.Set("authenticationMethodModes", value); } + } +#nullable restore +#else + public List AuthenticationMethodModes { + get { return BackingStore?.Get>("authenticationMethodModes"); } + set { BackingStore?.Set("authenticationMethodModes", value); } + } +#endif + /// The combinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Combinations { + get { return BackingStore?.Get?>("combinations"); } + set { BackingStore?.Set("combinations", value); } + } +#nullable restore +#else + public List Combinations { + get { return BackingStore?.Get>("combinations"); } + set { BackingStore?.Set("combinations", value); } + } +#endif + /// The policies property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Policies { + get { return BackingStore?.Get?>("policies"); } + set { BackingStore?.Set("policies", value); } + } +#nullable restore +#else + public List Policies { + get { return BackingStore?.Get>("policies"); } + set { BackingStore?.Set("policies", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationStrengthRoot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationStrengthRoot(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"authenticationMethodModes", n => { AuthenticationMethodModes = n.GetCollectionOfObjectValues(AuthenticationMethodModeDetail.CreateFromDiscriminatorValue)?.ToList(); } }, + {"combinations", n => { Combinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"policies", n => { Policies = n.GetCollectionOfObjectValues(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("authenticationMethodModes", AuthenticationMethodModes); + writer.WriteCollectionOfEnumValues("combinations", Combinations); + writer.WriteCollectionOfObjectValues("policies", Policies); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs new file mode 100644 index 00000000000..a05bf33e49c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthUsage.cs @@ -0,0 +1,95 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AuthenticationStrengthUsage : 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 mfa property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Mfa { + get { return BackingStore?.Get?>("mfa"); } + set { BackingStore?.Set("mfa", value); } + } +#nullable restore +#else + public List Mfa { + get { return BackingStore?.Get>("mfa"); } + set { BackingStore?.Set("mfa", value); } + } +#endif + /// The none property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? None { + get { return BackingStore?.Get?>("none"); } + set { BackingStore?.Set("none", value); } + } +#nullable restore +#else + public List None { + get { return BackingStore?.Get>("none"); } + set { BackingStore?.Set("none", 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 authenticationStrengthUsage and sets the default values. + /// + public AuthenticationStrengthUsage() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AuthenticationStrengthUsage CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationStrengthUsage(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"mfa", n => { Mfa = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + {"none", n => { None = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("mfa", Mfa); + writer.WriteCollectionOfObjectValues("none", None); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BaseAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/BaseAuthenticationMethod.cs new file mode 100644 index 00000000000..05d73ef2cd6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BaseAuthenticationMethod.cs @@ -0,0 +1,32 @@ +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum BaseAuthenticationMethod { + [EnumMember(Value = "password")] + Password, + [EnumMember(Value = "voice")] + Voice, + [EnumMember(Value = "hardwareOath")] + HardwareOath, + [EnumMember(Value = "softwareOath")] + SoftwareOath, + [EnumMember(Value = "sms")] + Sms, + [EnumMember(Value = "fido2")] + Fido2, + [EnumMember(Value = "windowsHelloForBusiness")] + WindowsHelloForBusiness, + [EnumMember(Value = "microsoftAuthenticator")] + MicrosoftAuthenticator, + [EnumMember(Value = "temporaryAccessPass")] + TemporaryAccessPass, + [EnumMember(Value = "email")] + Email, + [EnumMember(Value = "x509Certificate")] + X509Certificate, + [EnumMember(Value = "federation")] + Federation, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs index fd554352045..6057eb8f78c 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessage.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessage.cs @@ -169,6 +169,20 @@ public List Mentions { get { return BackingStore?.Get>("mentions"); } set { BackingStore?.Set("mentions", value); } } +#endif + /// The messageHistory property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? MessageHistory { + get { return BackingStore?.Get?>("messageHistory"); } + set { BackingStore?.Set("messageHistory", value); } + } +#nullable restore +#else + public List MessageHistory { + get { return BackingStore?.Get>("messageHistory"); } + set { BackingStore?.Set("messageHistory", value); } + } #endif /// The messageType property public ChatMessageType? MessageType { @@ -301,6 +315,7 @@ public string WebUrl { {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"locale", n => { Locale = n.GetStringValue(); } }, {"mentions", n => { Mentions = n.GetCollectionOfObjectValues(ChatMessageMention.CreateFromDiscriminatorValue)?.ToList(); } }, + {"messageHistory", n => { MessageHistory = n.GetCollectionOfObjectValues(ChatMessageHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"messageType", n => { MessageType = n.GetEnumValue(); } }, {"policyViolation", n => { PolicyViolation = n.GetObjectValue(ChatMessagePolicyViolation.CreateFromDiscriminatorValue); } }, {"reactions", n => { Reactions = n.GetCollectionOfObjectValues(ChatMessageReaction.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -333,6 +348,7 @@ public string WebUrl { writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteStringValue("locale", Locale); writer.WriteCollectionOfObjectValues("mentions", Mentions); + writer.WriteCollectionOfObjectValues("messageHistory", MessageHistory); writer.WriteEnumValue("messageType", MessageType); writer.WriteObjectValue("policyViolation", PolicyViolation); writer.WriteCollectionOfObjectValues("reactions", Reactions); diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs new file mode 100644 index 00000000000..9e95d3533b1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs @@ -0,0 +1,14 @@ +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum ChatMessageActions { + [EnumMember(Value = "reactionAdded")] + ReactionAdded, + [EnumMember(Value = "reactionRemoved")] + ReactionRemoved, + [EnumMember(Value = "actionUndefined")] + ActionUndefined, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs new file mode 100644 index 00000000000..2b1b58847fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItem.cs @@ -0,0 +1,93 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class ChatMessageHistoryItem : IAdditionalDataHolder, IBackedModel, IParsable { + /// The actions property + public ChatMessageActions? Actions { + get { return BackingStore?.Get("actions"); } + set { BackingStore?.Set("actions", value); } + } + /// 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 modifiedDateTime property + public DateTimeOffset? ModifiedDateTime { + get { return BackingStore?.Get("modifiedDateTime"); } + set { BackingStore?.Set("modifiedDateTime", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The reaction property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public ChatMessageReaction? Reaction { + get { return BackingStore?.Get("reaction"); } + set { BackingStore?.Set("reaction", value); } + } +#nullable restore +#else + public ChatMessageReaction Reaction { + get { return BackingStore?.Get("reaction"); } + set { BackingStore?.Set("reaction", value); } + } +#endif + /// + /// Instantiates a new chatMessageHistoryItem and sets the default values. + /// + public ChatMessageHistoryItem() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static ChatMessageHistoryItem CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ChatMessageHistoryItem(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"actions", n => { Actions = n.GetEnumValue(); } }, + {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"reaction", n => { Reaction = n.GetObjectValue(ChatMessageReaction.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("actions", Actions); + writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("reaction", Reaction); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItemCollectionResponse.cs new file mode 100644 index 00000000000..245bf38e3ac --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageHistoryItemCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class ChatMessageHistoryItemCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ChatMessageHistoryItemCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ChatMessageHistoryItemCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(ChatMessageHistoryItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/ConditionalAccessGrantControls.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs index 9abc857e68c..d58187cba64 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGrantControls.cs @@ -11,6 +11,20 @@ public IDictionary AdditionalData { get { return BackingStore?.Get>("additionalData"); } set { BackingStore?.Set("additionalData", value); } } + /// The authenticationStrength property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AuthenticationStrengthPolicy? AuthenticationStrength { + get { return BackingStore?.Get("authenticationStrength"); } + set { BackingStore?.Set("authenticationStrength", value); } + } +#nullable restore +#else + public AuthenticationStrengthPolicy AuthenticationStrength { + get { return BackingStore?.Get("authenticationStrength"); } + set { BackingStore?.Set("authenticationStrength", value); } + } +#endif /// Stores model information. public IBackingStore BackingStore { get; private set; } /// List of values of built-in controls required by the policy. Possible values: block, mfa, compliantDevice, domainJoinedDevice, approvedApplication, compliantApplication, passwordChange, unknownFutureValue. @@ -103,6 +117,7 @@ public static ConditionalAccessGrantControls CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"authenticationStrength", n => { AuthenticationStrength = n.GetObjectValue(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue); } }, {"builtInControls", n => { BuiltInControls = n.GetCollectionOfEnumValues()?.ToList(); } }, {"customAuthenticationFactors", n => { CustomAuthenticationFactors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -116,6 +131,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("authenticationStrength", AuthenticationStrength); writer.WriteCollectionOfEnumValues("builtInControls", BuiltInControls); writer.WriteCollectionOfPrimitiveValues("customAuthenticationFactors", CustomAuthenticationFactors); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs index d19b8f17345..21f5cf470ec 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRoot.cs @@ -18,6 +18,20 @@ public List AuthenticationContextClassRefer get { return BackingStore?.Get>("authenticationContextClassReferences"); } set { BackingStore?.Set("authenticationContextClassReferences", value); } } +#endif + /// The authenticationStrength property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AuthenticationStrengthRoot? AuthenticationStrength { + get { return BackingStore?.Get("authenticationStrength"); } + set { BackingStore?.Set("authenticationStrength", value); } + } +#nullable restore +#else + public AuthenticationStrengthRoot AuthenticationStrength { + get { return BackingStore?.Get("authenticationStrength"); } + set { BackingStore?.Set("authenticationStrength", value); } + } #endif /// Read-only. Nullable. Returns a collection of the specified named locations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -75,6 +89,7 @@ public List Templates { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"authenticationContextClassReferences", n => { AuthenticationContextClassReferences = n.GetCollectionOfObjectValues(AuthenticationContextClassReference.CreateFromDiscriminatorValue)?.ToList(); } }, + {"authenticationStrength", n => { AuthenticationStrength = n.GetObjectValue(AuthenticationStrengthRoot.CreateFromDiscriminatorValue); } }, {"namedLocations", n => { NamedLocations = n.GetCollectionOfObjectValues(NamedLocation.CreateFromDiscriminatorValue)?.ToList(); } }, {"policies", n => { Policies = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"templates", n => { Templates = n.GetCollectionOfObjectValues(ConditionalAccessTemplate.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -88,6 +103,7 @@ public List Templates { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("authenticationContextClassReferences", AuthenticationContextClassReferences); + writer.WriteObjectValue("authenticationStrength", AuthenticationStrength); writer.WriteCollectionOfObjectValues("namedLocations", NamedLocations); writer.WriteCollectionOfObjectValues("policies", Policies); writer.WriteCollectionOfObjectValues("templates", Templates); diff --git a/src/Microsoft.Graph/Generated/Models/Device.cs b/src/Microsoft.Graph/Generated/Models/Device.cs index 46028b3ba9b..9495893ad6a 100644 --- a/src/Microsoft.Graph/Generated/Models/Device.cs +++ b/src/Microsoft.Graph/Generated/Models/Device.cs @@ -270,7 +270,7 @@ public string TrustType { } #endif /// - /// Instantiates a new device and sets the default values. + /// Instantiates a new Device and sets the default values. /// public Device() : base() { OdataType = "#microsoft.graph.device"; diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs index aec8b803856..4762b9e0588 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementTroubleshootingEvent.cs @@ -4,9 +4,6 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - /// - /// Event representing an general failure. - /// public class DeviceManagementTroubleshootingEvent : Entity, IParsable { /// Id used for tracing the failure in the service. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 250dcac9d1e..b7b2bb98ad2 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -124,12 +124,16 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.auditEvent" => new AuditEvent(), "#microsoft.graph.auditLogRoot" => new AuditLogRoot(), "#microsoft.graph.authentication" => new Authentication(), + "#microsoft.graph.authenticationCombinationConfiguration" => new AuthenticationCombinationConfiguration(), "#microsoft.graph.authenticationContextClassReference" => new AuthenticationContextClassReference(), "#microsoft.graph.authenticationFlowsPolicy" => new AuthenticationFlowsPolicy(), "#microsoft.graph.authenticationMethod" => new AuthenticationMethod(), "#microsoft.graph.authenticationMethodConfiguration" => new AuthenticationMethodConfiguration(), + "#microsoft.graph.authenticationMethodModeDetail" => new AuthenticationMethodModeDetail(), "#microsoft.graph.authenticationMethodsPolicy" => new AuthenticationMethodsPolicy(), "#microsoft.graph.authenticationMethodTarget" => new AuthenticationMethodTarget(), + "#microsoft.graph.authenticationStrengthPolicy" => new AuthenticationStrengthPolicy(), + "#microsoft.graph.authenticationStrengthRoot" => new AuthenticationStrengthRoot(), "#microsoft.graph.authoredNote" => new AuthoredNote(), "#microsoft.graph.authorizationPolicy" => new AuthorizationPolicy(), "#microsoft.graph.azureCommunicationServicesUserConversationMember" => new AzureCommunicationServicesUserConversationMember(), @@ -298,6 +302,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.federatedIdentityCredential" => new FederatedIdentityCredential(), "#microsoft.graph.fido2AuthenticationMethod" => new Fido2AuthenticationMethod(), "#microsoft.graph.fido2AuthenticationMethodConfiguration" => new Fido2AuthenticationMethodConfiguration(), + "#microsoft.graph.fido2CombinationConfiguration" => new Fido2CombinationConfiguration(), "#microsoft.graph.fieldValueSet" => new FieldValueSet(), "#microsoft.graph.fileAssessmentRequest" => new FileAssessmentRequest(), "#microsoft.graph.fileAttachment" => new FileAttachment(), diff --git a/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.cs new file mode 100644 index 00000000000..ba48e5d3fbb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfiguration.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 { + public class Fido2CombinationConfiguration : AuthenticationCombinationConfiguration, IParsable { + /// The allowedAAGUIDs property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedAAGUIDs { + get { return BackingStore?.Get?>("allowedAAGUIDs"); } + set { BackingStore?.Set("allowedAAGUIDs", value); } + } +#nullable restore +#else + public List AllowedAAGUIDs { + get { return BackingStore?.Get>("allowedAAGUIDs"); } + set { BackingStore?.Set("allowedAAGUIDs", value); } + } +#endif + /// + /// Instantiates a new Fido2CombinationConfiguration and sets the default values. + /// + public Fido2CombinationConfiguration() : base() { + OdataType = "#microsoft.graph.fido2CombinationConfiguration"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Fido2CombinationConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Fido2CombinationConfiguration(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"allowedAAGUIDs", n => { AllowedAAGUIDs = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("allowedAAGUIDs", AllowedAAGUIDs); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfigurationCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfigurationCollectionResponse.cs new file mode 100644 index 00000000000..89b24c89202 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Fido2CombinationConfigurationCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class Fido2CombinationConfigurationCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Fido2CombinationConfigurationCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Fido2CombinationConfigurationCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(Fido2CombinationConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index 5c29a442927..ae2e36ebb6f 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -772,7 +772,7 @@ public string Visibility { } #endif /// - /// Instantiates a new group and sets the default values. + /// Instantiates a new Group and sets the default values. /// public Group() : base() { OdataType = "#microsoft.graph.group"; diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs index 08d8ded4c9f..221eb10e215 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAppRegistration.cs @@ -4,9 +4,6 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - /// - /// The ManagedAppEntity is the base entity type for all other entity types under app management workflow. - /// public class ManagedAppRegistration : Entity, IParsable { /// The app package Identifier #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs index ec8562250c3..e2c0a4380fd 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedDevice.cs @@ -4,9 +4,6 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - /// - /// Devices that are managed or pre-enrolled through Intune - /// public class ManagedDevice : Entity, IParsable { /// The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. Individual GET call with select query options is needed to retrieve actual values. Supports: $select. $Search is not supported. Read-only. This property is read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/MobileApp.cs b/src/Microsoft.Graph/Generated/Models/MobileApp.cs index 6f4d51b5581..ef1b7faecd4 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileApp.cs @@ -4,6 +4,9 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { + /// + /// An abstract class containing the base properties for Intune mobile apps. + /// public class MobileApp : Entity, IParsable { /// The list of group assignments for this mobile app. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs b/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs index 14eb969dde2..f4895c19bff 100644 --- a/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/PolicyRoot.cs @@ -74,6 +74,20 @@ public Microsoft.Graph.Models.AuthenticationMethodsPolicy AuthenticationMethodsP get { return BackingStore?.Get("authenticationMethodsPolicy"); } set { BackingStore?.Set("authenticationMethodsPolicy", value); } } +#endif + /// The authenticationStrengthPolicies property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AuthenticationStrengthPolicies { + get { return BackingStore?.Get?>("authenticationStrengthPolicies"); } + set { BackingStore?.Set("authenticationStrengthPolicies", value); } + } +#nullable restore +#else + public List AuthenticationStrengthPolicies { + get { return BackingStore?.Get>("authenticationStrengthPolicies"); } + set { BackingStore?.Set("authenticationStrengthPolicies", value); } + } #endif /// The policy that controls Azure AD authorization settings. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -275,6 +289,7 @@ public List TokenLifetimePolicies { {"appManagementPolicies", n => { AppManagementPolicies = n.GetCollectionOfObjectValues(AppManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"authenticationFlowsPolicy", n => { AuthenticationFlowsPolicy = n.GetObjectValue(Microsoft.Graph.Models.AuthenticationFlowsPolicy.CreateFromDiscriminatorValue); } }, {"authenticationMethodsPolicy", n => { AuthenticationMethodsPolicy = n.GetObjectValue(Microsoft.Graph.Models.AuthenticationMethodsPolicy.CreateFromDiscriminatorValue); } }, + {"authenticationStrengthPolicies", n => { AuthenticationStrengthPolicies = n.GetCollectionOfObjectValues(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"authorizationPolicy", n => { AuthorizationPolicy = n.GetObjectValue(Microsoft.Graph.Models.AuthorizationPolicy.CreateFromDiscriminatorValue); } }, {"claimsMappingPolicies", n => { ClaimsMappingPolicies = n.GetCollectionOfObjectValues(ClaimsMappingPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"conditionalAccessPolicies", n => { ConditionalAccessPolicies = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -302,6 +317,7 @@ public List TokenLifetimePolicies { writer.WriteCollectionOfObjectValues("appManagementPolicies", AppManagementPolicies); writer.WriteObjectValue("authenticationFlowsPolicy", AuthenticationFlowsPolicy); writer.WriteObjectValue("authenticationMethodsPolicy", AuthenticationMethodsPolicy); + writer.WriteCollectionOfObjectValues("authenticationStrengthPolicies", AuthenticationStrengthPolicies); writer.WriteObjectValue("authorizationPolicy", AuthorizationPolicy); writer.WriteCollectionOfObjectValues("claimsMappingPolicies", ClaimsMappingPolicies); writer.WriteCollectionOfObjectValues("conditionalAccessPolicies", ConditionalAccessPolicies); diff --git a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs index b80be29c142..9f0b1934e16 100644 --- a/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/RoleDefinition.cs @@ -4,9 +4,6 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - /// - /// The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role. - /// public class RoleDefinition : Entity, IParsable { /// Description of the Role definition. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/Schedule.cs b/src/Microsoft.Graph/Generated/Models/Schedule.cs index d93060fb275..a79f913f6e8 100644 --- a/src/Microsoft.Graph/Generated/Models/Schedule.cs +++ b/src/Microsoft.Graph/Generated/Models/Schedule.cs @@ -29,7 +29,7 @@ public bool? OfferShiftRequestsEnabled { get { return BackingStore?.Get("offerShiftRequestsEnabled"); } set { BackingStore?.Set("offerShiftRequestsEnabled", value); } } - /// The openShiftChangeRequests property + /// The open shift requests in the schedule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? OpenShiftChangeRequests { @@ -43,7 +43,7 @@ public List OpenShiftChangeRequests { set { BackingStore?.Set("openShiftChangeRequests", value); } } #endif - /// The openShifts property + /// The set of open shifts in a scheduling group in the schedule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? OpenShifts { diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index 17e23f5552d..d46be2aee01 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -656,7 +656,7 @@ public Microsoft.Graph.Models.VerifiedPublisher VerifiedPublisher { } #endif /// - /// Instantiates a new servicePrincipal and sets the default values. + /// Instantiates a new ServicePrincipal and sets the default values. /// public ServicePrincipal() : base() { OdataType = "#microsoft.graph.servicePrincipal"; diff --git a/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs b/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs new file mode 100644 index 00000000000..dbca695e08a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/UpdateAllowedCombinationsResult.cs @@ -0,0 +1,127 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class UpdateAllowedCombinationsResult : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// The additionalInformation property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AdditionalInformation { + get { return BackingStore?.Get("additionalInformation"); } + set { BackingStore?.Set("additionalInformation", value); } + } +#nullable restore +#else + public string AdditionalInformation { + get { return BackingStore?.Get("additionalInformation"); } + set { BackingStore?.Set("additionalInformation", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The conditionalAccessReferences property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ConditionalAccessReferences { + get { return BackingStore?.Get?>("conditionalAccessReferences"); } + set { BackingStore?.Set("conditionalAccessReferences", value); } + } +#nullable restore +#else + public List ConditionalAccessReferences { + get { return BackingStore?.Get>("conditionalAccessReferences"); } + set { BackingStore?.Set("conditionalAccessReferences", value); } + } +#endif + /// The currentCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CurrentCombinations { + get { return BackingStore?.Get?>("currentCombinations"); } + set { BackingStore?.Set("currentCombinations", value); } + } +#nullable restore +#else + public List CurrentCombinations { + get { return BackingStore?.Get>("currentCombinations"); } + set { BackingStore?.Set("currentCombinations", 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 previousCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? PreviousCombinations { + get { return BackingStore?.Get?>("previousCombinations"); } + set { BackingStore?.Set("previousCombinations", value); } + } +#nullable restore +#else + public List PreviousCombinations { + get { return BackingStore?.Get>("previousCombinations"); } + set { BackingStore?.Set("previousCombinations", value); } + } +#endif + /// + /// Instantiates a new updateAllowedCombinationsResult and sets the default values. + /// + public UpdateAllowedCombinationsResult() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UpdateAllowedCombinationsResult CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UpdateAllowedCombinationsResult(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, + {"conditionalAccessReferences", n => { ConditionalAccessReferences = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"currentCombinations", n => { CurrentCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"previousCombinations", n => { PreviousCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("additionalInformation", AdditionalInformation); + writer.WriteCollectionOfPrimitiveValues("conditionalAccessReferences", ConditionalAccessReferences); + writer.WriteCollectionOfEnumValues("currentCombinations", CurrentCombinations); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteCollectionOfEnumValues("previousCombinations", PreviousCombinations); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index e4ee3e6f980..b7bcdeb4df3 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -1400,7 +1400,7 @@ public bool? ShowInAddressList { get { return BackingStore?.Get("showInAddressList"); } set { BackingStore?.Set("showInAddressList", value); } } - /// Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.When you specify $select=signInActivity or $filter=signInActivity while listing users, the maximum page size is 120 users. Requests with $top set higher than 120 will fail. Requests with $top set higher than 120 will fail.This property is not returned for a user who has never signed in or last signed in before April 2020. + /// Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.When you specify $select=signInActivity or $filter=signInActivity while listing users, the maximum page size is 120 users. Requests with $top set higher than 120 will return pages with up to 120 users. This property is not returned for a user who has never signed in or last signed in before April 2020. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.SignInActivity? SignInActivity { diff --git a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs index d30a525c9e0..fd2b355ac69 100644 --- a/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/AppManagementPolicies/Item/AppliesTo/Item/DirectoryObjectItemRequestBuilder.cs @@ -28,7 +28,7 @@ public DirectoryObjectItemRequestBuilder(Dictionary pathParamete public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/appManagementPolicies/{appManagementPolicy%2Did}/appliesTo/{directoryObject%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Get appliesTo from policies + /// Collection of applications and service principals to which the policy is applied. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -47,7 +47,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get appliesTo from policies + /// Collection of applications and service principals to which the policy is applied. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -73,7 +73,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get appliesTo from policies + /// Collection of applications and service principals to which the policy is applied. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs new file mode 100644 index 00000000000..b2eeff3d003 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/AuthenticationStrengthPoliciesRequestBuilder.cs @@ -0,0 +1,235 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Count; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.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.Policies.AuthenticationStrengthPolicies { + /// + /// Provides operations to manage the authenticationStrengthPolicies property of the microsoft.graph.policyRoot entity. + /// + public class AuthenticationStrengthPoliciesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the authenticationStrengthPolicies property of the microsoft.graph.policyRoot entity. + public AuthenticationStrengthPolicyItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("authenticationStrengthPolicy%2Did", position); + return new AuthenticationStrengthPolicyItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AuthenticationStrengthPoliciesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationStrengthPoliciesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get authenticationStrengthPolicies from policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to authenticationStrengthPolicies for policies + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationStrengthPolicy body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthenticationStrengthPolicy body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get authenticationStrengthPolicies from policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPoliciesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to authenticationStrengthPolicies for policies + /// + /// 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(AuthenticationStrengthPolicy body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationStrengthPolicy body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPoliciesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get authenticationStrengthPolicies from policies + /// + public class AuthenticationStrengthPoliciesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPoliciesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationStrengthPoliciesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationStrengthPoliciesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new authenticationStrengthPoliciesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPoliciesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPoliciesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new authenticationStrengthPoliciesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPoliciesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dea1c5fc2e7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/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.Policies.AuthenticationStrengthPolicies.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs new file mode 100644 index 00000000000..6006c3dc6f5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/AuthenticationStrengthPolicyItemRequestBuilder.cs @@ -0,0 +1,258 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.UpdateAllowedCombinations; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.Usage; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item { + /// + /// Provides operations to manage the authenticationStrengthPolicies property of the microsoft.graph.policyRoot entity. + /// + public class AuthenticationStrengthPolicyItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + public CombinationConfigurationsRequestBuilder CombinationConfigurations { get => + new CombinationConfigurationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the updateAllowedCombinations method. + public UpdateAllowedCombinationsRequestBuilder UpdateAllowedCombinations { get => + new UpdateAllowedCombinationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the usage method. + public UsageRequestBuilder Usage { get => + new UsageRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPolicyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationStrengthPolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property authenticationStrengthPolicies for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get authenticationStrengthPolicies from policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property authenticationStrengthPolicies in policies + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationStrengthPolicy body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationStrengthPolicy body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property authenticationStrengthPolicies for policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get authenticationStrengthPolicies from policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property authenticationStrengthPolicies in policies + /// + /// 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(AuthenticationStrengthPolicy body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationStrengthPolicy body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get authenticationStrengthPolicies from policies + /// + public class AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationStrengthPolicyItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationStrengthPolicyItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs new file mode 100644 index 00000000000..0653582f1b2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/CombinationConfigurationsRequestBuilder.cs @@ -0,0 +1,235 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations.Count; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations.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.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations { + /// + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + /// + public class CombinationConfigurationsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + public AuthenticationCombinationConfigurationItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("authenticationCombinationConfiguration%2Did", position); + return new AuthenticationCombinationConfigurationItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CombinationConfigurationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CombinationConfigurationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CombinationConfigurationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CombinationConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get combinationConfigurations from policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to combinationConfigurations for policies + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthenticationCombinationConfiguration body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get combinationConfigurations from policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CombinationConfigurationsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to combinationConfigurations for policies + /// + /// 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(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationCombinationConfiguration body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new CombinationConfigurationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get combinationConfigurations from policies + /// + public class CombinationConfigurationsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CombinationConfigurationsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CombinationConfigurationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CombinationConfigurationsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new combinationConfigurationsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CombinationConfigurationsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CombinationConfigurationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new combinationConfigurationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public CombinationConfigurationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f2052cbef44 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/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.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs new file mode 100644 index 00000000000..368425fd988 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/CombinationConfigurations/Item/AuthenticationCombinationConfigurationItemRequestBuilder.cs @@ -0,0 +1,243 @@ +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.Policies.AuthenticationStrengthPolicies.Item.CombinationConfigurations.Item { + /// + /// Provides operations to manage the combinationConfigurations property of the microsoft.graph.authenticationStrengthPolicy entity. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationCombinationConfigurationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationCombinationConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/combinationConfigurations/{authenticationCombinationConfiguration%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property combinationConfigurations for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get combinationConfigurations from policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property combinationConfigurations in policies + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthenticationCombinationConfiguration body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationCombinationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property combinationConfigurations for policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get combinationConfigurations from policies + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property combinationConfigurations in policies + /// + /// 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(AuthenticationCombinationConfiguration body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationCombinationConfiguration body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get combinationConfigurations from policies + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthenticationCombinationConfigurationItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthenticationCombinationConfigurationItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs new file mode 100644 index 00000000000..b0494ffe4af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsPostRequestBody.cs @@ -0,0 +1,64 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Policies.AuthenticationStrengthPolicies.Item.UpdateAllowedCombinations { + public class UpdateAllowedCombinationsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// The allowedCombinations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedCombinations { + get { return BackingStore?.Get?>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#nullable restore +#else + public List AllowedCombinations { + get { return BackingStore?.Get>("allowedCombinations"); } + set { BackingStore?.Set("allowedCombinations", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// + /// Instantiates a new updateAllowedCombinationsPostRequestBody and sets the default values. + /// + public UpdateAllowedCombinationsPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static UpdateAllowedCombinationsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new UpdateAllowedCombinationsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"allowedCombinations", n => { AllowedCombinations = n.GetCollectionOfEnumValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfEnumValues("allowedCombinations", AllowedCombinations); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs new file mode 100644 index 00000000000..41ac589c797 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/UpdateAllowedCombinations/UpdateAllowedCombinationsRequestBuilder.cs @@ -0,0 +1,96 @@ +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.Policies.AuthenticationStrengthPolicies.Item.UpdateAllowedCombinations { + /// + /// Provides operations to call the updateAllowedCombinations method. + /// + public class UpdateAllowedCombinationsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UpdateAllowedCombinationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", pathParameters) { + } + /// + /// Instantiates a new UpdateAllowedCombinationsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UpdateAllowedCombinationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations", rawUrl) { + } + /// + /// Invoke action updateAllowedCombinations + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(UpdateAllowedCombinationsPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(UpdateAllowedCombinationsPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UpdateAllowedCombinationsResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke action updateAllowedCombinations + /// + /// 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(UpdateAllowedCombinationsPostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(UpdateAllowedCombinationsPostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new updateAllowedCombinationsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public UpdateAllowedCombinationsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs new file mode 100644 index 00000000000..6ca1c0ec3ef --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/AuthenticationStrengthPolicies/Item/Usage/UsageRequestBuilder.cs @@ -0,0 +1,91 @@ +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.Policies.AuthenticationStrengthPolicies.Item.Usage { + /// + /// Provides operations to call the usage method. + /// + public class UsageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new UsageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/usage()", pathParameters) { + } + /// + /// Instantiates a new UsageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/usage()", rawUrl) { + } + /// + /// Invoke function usage + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationStrengthUsage.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function usage + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UsageRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UsageRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new usageRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UsageRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs index c64e2ffead1..343506a376b 100644 --- a/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/PoliciesRequestBuilder.cs @@ -5,6 +5,7 @@ using Microsoft.Graph.Policies.AppManagementPolicies; using Microsoft.Graph.Policies.AuthenticationFlowsPolicy; using Microsoft.Graph.Policies.AuthenticationMethodsPolicy; +using Microsoft.Graph.Policies.AuthenticationStrengthPolicies; using Microsoft.Graph.Policies.AuthorizationPolicy; using Microsoft.Graph.Policies.ClaimsMappingPolicies; using Microsoft.Graph.Policies.ConditionalAccessPolicies; @@ -51,6 +52,10 @@ public class PoliciesRequestBuilder : BaseRequestBuilder { public AuthenticationMethodsPolicyRequestBuilder AuthenticationMethodsPolicy { get => new AuthenticationMethodsPolicyRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the authenticationStrengthPolicies property of the microsoft.graph.policyRoot entity. + public AuthenticationStrengthPoliciesRequestBuilder AuthenticationStrengthPolicies { get => + new AuthenticationStrengthPoliciesRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the authorizationPolicy property of the microsoft.graph.policyRoot entity. public AuthorizationPolicyRequestBuilder AuthorizationPolicy { get => new AuthorizationPolicyRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..d11eb48a177 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +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.Print.Shares.Item.AllowedUsers.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \print\shares\{printerShare-id}\allowedUsers\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs index e625b3d1ae5..398dc0d595b 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/UserItemRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.MailboxSettings; using Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item.Ref; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -10,6 +11,10 @@ namespace Microsoft.Graph.Print.Shares.Item.AllowedUsers.Item { /// Builds and executes requests for operations under \print\shares\{printerShare-id}\allowedUsers\{user-id} /// public class UserItemRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the collection of print entities. public RefRequestBuilder Ref { get => new RefRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs index d24470b0706..871ad718deb 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drive/DriveRequestBuilder.cs @@ -28,8 +28,7 @@ public DriveRequestBuilder(Dictionary pathParameters, IRequestAd public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/drive{?%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. - /// Find more info here + /// The default drive (document library) for this site. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +47,7 @@ public DriveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Drive.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The default drive (document library) for this site. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -74,7 +73,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the properties and relationships of a Drive resource. A Drive is the top-level container for a file system, such as OneDrive or SharePoint document libraries. + /// The default drive (document library) for this site. /// public class DriveRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs index bd0a25bd0b2..77badc50cf5 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Drives/DrivesRequestBuilder.cs @@ -40,8 +40,7 @@ public DrivesRequestBuilder(Dictionary pathParameters, IRequestA public DrivesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites/{site%2Did}/drives{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. - /// Find more info here + /// The collection of drives (document libraries) under this site. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +59,7 @@ public async Task GetAsync(Action(requestInfo, DriveCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The collection of drives (document libraries) under this site. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,7 +85,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Retrieve the list of Drive resources available for a target User, Group, or Site. + /// The collection of drives (document libraries) under this site. /// public class DrivesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index f6de50c7a06..a6726ae20a5 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -50,8 +50,8 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is **createdDateTime**. The search filter is a free text search that uses multiple properties when retrieving the search results. - /// Find more info here + /// List all available sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a **[$search][]** query against the `/sites` collection to find sites matching given keywords. 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 /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -70,7 +70,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +96,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. 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 { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 33acdc21636..57ce78fb64d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index ea4eb0bf5c4..75503809356 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 2f4d27b0c30..207f64e3b2e 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShiftChangeRequests from teams + /// The open shift requests in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShiftChangeRequests from teams + /// The open shift requests in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShiftChangeRequests from teams + /// The open shift requests in the schedule. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index e381292c1c5..83c36e3969d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShifts from teams + /// The set of open shifts in a scheduling group in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShifts from teams + /// The set of open shifts in a scheduling group in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShifts from teams + /// The set of open shifts in a scheduling group in the schedule. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 106dab4e4df..e98b7113da8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -60,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to openShifts for teams + /// Create an instance of an openShift object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to openShifts for teams + /// Create an instance of an openShift object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index b6cd815dcf0..e7f457c15b0 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index f0922bbfed6..3835999136a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -45,7 +45,7 @@ public CalendarViewRequestBuilder(Dictionary pathParameters, IRe public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -91,7 +91,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarview)` or some other calendar of the user's. + /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar `(../me/calendarView)` or some other calendar of the user's. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 085680a1de8..eed0ebe24d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index 951b99649d0..e336fe61753 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 5d44e0b4a3f..7310955e2e5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 0c36bbbc723..94e39b249dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new reply to a chatMessage in a specified channel. - /// Find more info here + /// Create a new reply to a chatMessage in a specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new reply to a chatMessage in a specified channel. + /// Create a new reply to a chatMessage in a specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs index 61e6cb773ff..f7673bbc486 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShiftChangeRequests/Item/OpenShiftChangeRequestItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShiftChangeRequests from users + /// The open shift requests in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShiftChangeRequests from users + /// The open shift requests in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftChangeRequestItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShiftChangeRequests from users + /// The open shift requests in the schedule. /// public class OpenShiftChangeRequestItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs index 2e9926f8a1f..e474d6220be 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/Item/OpenShiftItemRequestBuilder.cs @@ -47,7 +47,7 @@ public async Task DeleteAsync(Action - /// Get openShifts from users + /// The set of open shifts in a scheduling group in the schedule. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get openShifts from users + /// The set of open shifts in a scheduling group in the schedule. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -181,7 +181,7 @@ public OpenShiftItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get openShifts from users + /// The set of open shifts in a scheduling group in the schedule. /// public class OpenShiftItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs index 3b670451d4e..ead4a283cb0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Schedule/OpenShifts/OpenShiftsRequestBuilder.cs @@ -60,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, OpenShiftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to openShifts for users + /// Create an instance of an openShift object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to openShifts for users + /// Create an instance of an openShift object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 7c39ea82656..a9892a52285 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 @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index f1c9329bfea..42a53face93 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -53,14 +53,14 @@ public class MailFolderItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MailFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}{?%24select,%24expand}", pathParameters) { + public MailFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MailFolderItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}{?%24select,%24expand}", rawUrl) { + public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}{?includeHiddenFolders*,%24select,%24expand}", rawUrl) { } /// /// Delete navigation property mailFolders for users @@ -228,6 +228,14 @@ public class MailFolderItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24expand")] public string[] Expand { get; set; } +#endif + /// Include Hidden Folders +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenFolders { get; set; } +#nullable restore +#else + public string IncludeHiddenFolders { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs index d697391b36e..39b8e1c204b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/MailFoldersRequestBuilder.cs @@ -35,17 +35,17 @@ public MailFolderItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MailFoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + public MailFoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders{?includeHiddenFolders*,%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MailFoldersRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MailFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + public MailFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders{?includeHiddenFolders*,%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -87,7 +87,7 @@ public async Task PostAsync(MailFolder body, Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action - /// Get the mail folder collection directly under the root folder of the signed-in user. The returned collection includes any mail search folders directly under the root. By default, this operation does not return hidden folders. Use a query parameter _includeHiddenFolders_ to include them in the response. + /// The user's mail folders. Read-only. Nullable. /// public class MailFoldersRequestBuilderGetQueryParameters { /// Include count of items @@ -166,6 +166,14 @@ public class MailFoldersRequestBuilderGetQueryParameters { #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Include Hidden Folders +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenFolders { get; set; } +#nullable restore +#else + public string IncludeHiddenFolders { get; set; } #endif /// Order items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..aa73dd2d6bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,184 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \users\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// 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.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} 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 f480e5b2137..d25c8745766 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -88,14 +88,14 @@ public class MessageItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MessageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?%24select,%24expand}", pathParameters) { + public MessageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MessageItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?%24select,%24expand}", rawUrl) { + public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// /// Delete navigation property messages for users @@ -263,6 +263,14 @@ public class MessageItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24expand")] public string[] Expand { get; set; } +#endif + /// Include Hidden Messages +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenMessages { get; set; } +#nullable restore +#else + public string IncludeHiddenMessages { get; set; } #endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 554503bc2cc..d12a99b4546 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 @@ -28,7 +28,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index 160ef5e1643..5b5e1c2a104 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -35,18 +35,18 @@ public MessageItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MessagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + public MessagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages{?includeHiddenMessages*,%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// /// Instantiates a new MessagesRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages{?includeHiddenMessages*,%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. - /// Find more info here + /// The messages in a mailbox or folder. Read-only. Nullable. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -87,7 +87,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The messages in a mailbox or folder. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag return requestInfo; } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The messages in a mailbox or folder. Read-only. Nullable. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items @@ -166,6 +166,14 @@ public class MessagesRequestBuilderGetQueryParameters { #else [QueryParameter("%24filter")] public string Filter { get; set; } +#endif + /// Include Hidden Messages +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IncludeHiddenMessages { get; set; } +#nullable restore +#else + public string IncludeHiddenMessages { get; set; } #endif /// Order items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs index d3b63c71e35..2df8925214f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Todo/Lists/Item/Tasks/Item/ChecklistItems/ChecklistItemsRequestBuilder.cs @@ -40,7 +40,8 @@ public ChecklistItemsRequestBuilder(Dictionary pathParameters, I public ChecklistItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/todo/lists/{todoTaskList%2Did}/tasks/{todoTask%2Did}/checklistItems{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -59,7 +60,8 @@ public async Task GetAsync(Action(requestInfo, ChecklistItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create new navigation property to checklistItems for users + /// Create a new checklistItem object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -80,7 +82,7 @@ public async Task PostAsync(ChecklistItem body, Action(requestInfo, ChecklistItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,7 +108,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to checklistItems for users + /// Create a new checklistItem object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -134,7 +136,7 @@ public RequestInformation ToPostRequestInformation(ChecklistItem body, Action - /// A collection of checklistItems linked to a task. + /// Get the checklistItem resources associated to a todoTask from the checklistItems navigation property. /// public class ChecklistItemsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index fd65291fc98..2d05954ad52 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -38,6 +38,7 @@ using Microsoft.Graph.Users.Item.JoinedTeams; using Microsoft.Graph.Users.Item.LicenseDetails; using Microsoft.Graph.Users.Item.MailFolders; +using Microsoft.Graph.Users.Item.MailboxSettings; using Microsoft.Graph.Users.Item.ManagedAppRegistrations; using Microsoft.Graph.Users.Item.ManagedDevices; using Microsoft.Graph.Users.Item.Manager; @@ -225,6 +226,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public LicenseDetailsRequestBuilder LicenseDetails { get => new LicenseDetailsRequestBuilder(PathParameters, RequestAdapter); } + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the mailFolders property of the microsoft.graph.user entity. public MailFoldersRequestBuilder MailFolders { get => new MailFoldersRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index f29c43277a3..dbd020406f0 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -60,8 +60,8 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve the properties and relationships of user object. - /// Find more info here + /// Retrieve a list of user objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -102,7 +102,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of user object. + /// Retrieve a list of user objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -156,7 +156,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.User b return requestInfo; } /// - /// Retrieve the properties and relationships of user object. + /// Retrieve a list of user objects. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index d2c81ff947b..99b5a020e28 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "CDDCEEEFDF0CB652696B9C7ADE2DCD55A351AD1CC4A472E23F98CE0A633815DC3F0BE45AED3FF5A1194524E22BB3DC185080A87CADC6A85E7FA5B027B4500F34", + "descriptionHash": "8B06FDB1C83D37699BC271321DF2482BC238B0F0C27B8D0B4F9838E0C511BDFFEE4B0701FC7EAF5FD78E6B139E5C1180291440797F09BA0060685FDE44309D55", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.1.1", + "kiotaVersion": "1.1.3", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph", "language": "CSharp", From 662cf16a6017b451d2713ddc5a02c5bddf4b2c5f Mon Sep 17 00:00:00 2001 From: Eastman Date: Tue, 18 Apr 2023 16:23:38 +0300 Subject: [PATCH 5/6] Updates version --- src/Microsoft.Graph/Microsoft.Graph.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index a3b7597a59f..8f809ec99c8 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -21,7 +21,7 @@ false 35MSSharedLib1024.snk true - 5.6.0 + 5.7.0 From b2bf8967fe9e88315028f5667a75889d70527e1f Mon Sep 17 00:00:00 2001 From: Eastman Date: Tue, 18 Apr 2023 16:27:14 +0300 Subject: [PATCH 6/6] Update CHANGELOG.md --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c19f27571..31339361dc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.7.0] - 2023-04-18 + +- Latest metadata updates from 18th April 2023 +- Fixes missing /mailBoxSettings paths on user objects (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1712) +- Adds response headers collection to ApiException object (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1755) +- Fixes missing query parameters for mailFolders api (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1814) + ## [5.6.0] - 2023-04-12 - Latest metadata updates from 12th April 2023