From 16f542bdef763a99177807a5d9fbafaa1b88e544 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 14 Mar 2023 10:37:34 +0000 Subject: [PATCH] Update generated files with build 109147 --- .../Invite/InviteRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../ProvisionOnDemandRequestBuilder.cs | 2 +- .../SynchronizationRequestBuilder.cs | 6 +- .../Invite/InviteRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 14 +- .../DeviceHealthScriptStatesRequestBuilder.cs | 65 ++++++ ...dWithPolicyIdWithDeviceIdRequestBuilder.cs | 124 ++++++++++++ .../DeviceHealthScriptStatesRequestBuilder.cs | 65 ++++++ ...dWithPolicyIdWithDeviceIdRequestBuilder.cs | 124 ++++++++++++ .../Item/CloudPCItemRequestBuilder.cs | 10 + .../Item/Start/StartRequestBuilder.cs} | 46 ++--- .../CloudPCs/Item/Stop/StopRequestBuilder.cs} | 46 ++--- .../ApplyConfigPostRequestBody.cs} | 38 ++-- .../ApplyConfig/ApplyConfigRequestBuilder.cs} | 39 ++-- .../Item/Apply/ApplyRequestBuilder.cs | 108 ++++++++++ .../AssignedUsersRequestBuilder.cs | 189 ++++++++++++++++++ .../Count/CountRequestBuilder.cs | 137 +++++++++++++ .../Item/UserItemRequestBuilder.cs | 138 +++++++++++++ ...oningPolicyAssignmentItemRequestBuilder.cs | 5 + ...dPcProvisioningPolicyItemRequestBuilder.cs | 5 + .../ProvisioningPoliciesRequestBuilder.cs | 5 + .../Item/Bundles/BundlesRequestBuilder.cs | 65 ++++++ .../CreateLink/CreateLinkPostRequestBody.cs | 7 + .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Workbook/Tables/TablesRequestBuilder.cs | 2 +- .../Item/Charts/ChartsRequestBuilder.cs | 2 +- .../Item/Points/PointsRequestBuilder.cs | 8 +- .../Item/Series/SeriesRequestBuilder.cs | 2 +- .../CreateLink/CreateLinkPostRequestBody.cs | 7 + .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../ConversationsRequestBuilder.cs | 6 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../CreateLink/CreateLinkPostRequestBody.cs | 7 + .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../RiskyUsers/RiskyUsersRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/CloudPCItemRequestBuilder.cs | 10 + .../Item/Start/StartRequestBuilder.cs | 108 ++++++++++ .../CloudPCs/Item/Stop/StopRequestBuilder.cs | 108 ++++++++++ .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../DeviceHealthScriptStatesRequestBuilder.cs | 65 ++++++ ...dWithPolicyIdWithDeviceIdRequestBuilder.cs | 124 ++++++++++++ .../Generated/Me/MeRequestBuilder.cs | 13 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 8 +- .../RegistrationRequestBuilder.cs | 14 +- .../Models/AccessReviewCollectionResponse.cs | 14 +- .../Generated/Models/AndroidLobApp.cs | 4 +- .../Generated/Models/Application.cs | 2 +- .../Models/AuthenticationStrength.cs | 2 +- .../Generated/Models/BookingAppointment.cs | 3 - .../Generated/Models/BookingNamedEntity.cs | 3 - .../Generated/Models/CloudPcLaunchInfo.cs | 23 +++ .../Models/CloudPcProvisioningPolicy.cs | 16 ++ .../CloudPcProvisioningPolicyAssignment.cs | 16 ++ .../Models/ConditionalAccessRuleSatisfied.cs | 2 +- .../Models/CustomAuthenticationExtension.cs | 2 +- .../Generated/Models/Device.cs | 2 +- .../Models/DeviceLogCollectionResponse.cs | 12 +- ...urationSettingGroupCollectionDefinition.cs | 4 +- ...nfigurationStringSettingValueDefinition.cs | 4 +- .../Generated/Models/DirectoryDefinition.cs | 2 +- .../Generated/Models/Ediscovery/SiteSource.cs | 2 +- .../Models/Ediscovery/UnifiedGroupSource.cs | 2 +- .../Generated/Models/Ediscovery/UserSource.cs | 2 +- .../EnterpriseCodeSigningCertificate.cs | 14 +- src/Microsoft.Graph/Generated/Models/Group.cs | 2 +- .../Models/GroupPolicyDefinitionValue.cs | 3 + .../Generated/Models/Identity.cs | 4 +- .../Generated/Models/LearningContent.cs | 6 +- .../Generated/Models/LearningProvider.cs | 8 +- .../Generated/Models/MacOSLobApp.cs | 2 +- .../Generated/Models/ManagedAndroidLobApp.cs | 4 +- .../Generated/Models/MeetingChatMode.cs | 8 + .../Generated/Models/Message.cs | 2 +- ...rosoftAuthenticatorAuthenticationMethod.cs | 7 + ...icatorAuthenticationMethodClientAppName.cs | 7 + .../MicrosoftAuthenticatorFeatureSettings.cs | 2 +- .../Models/MobileThreatDefenseConnector.cs | 28 +-- .../Generated/Models/OnlineMeeting.cs | 9 +- .../Generated/Models/OutlookTask.cs | 2 +- .../Generated/Models/Security/Alert.cs | 16 ++ .../EdiscoveryNoncustodialDataSource.cs | 2 +- .../Generated/Models/Security/Incident.cs | 64 ++++++ .../Security/RecommendedHuntingQuery.cs} | 56 +++--- ...commendedHuntingQueryCollectionResponse.cs | 48 +++++ .../Generated/Models/ServicePrincipal.cs | 4 +- .../Generated/Models/SitePage.cs | 2 +- .../Generated/Models/SubjectRightsRequest.cs | 32 +++ .../Models/SubjectRightsRequestStage.cs | 1 + .../Generated/Models/SynchronizationError.cs | 6 +- src/Microsoft.Graph/Generated/Models/User.cs | 2 +- .../WindowsAutopilotDeploymentProfile.cs | 3 - .../Generated/Models/WindowsPhoneXAP.cs | 5 +- .../ConnectorGroupsRequestBuilder.cs | 6 +- .../Item/OrganizationItemRequestBuilder.cs | 5 - .../IdentitySynchronizationRequestBuilder.cs | 6 +- .../Item/Approvers/ApproversRequestBuilder.cs | 189 ++++++++++++++++++ .../Approvers/Count/CountRequestBuilder.cs | 137 +++++++++++++ .../Approvers/Item/UserItemRequestBuilder.cs | 138 +++++++++++++ .../CollaboratorsRequestBuilder.cs | 189 ++++++++++++++++++ .../Count/CountRequestBuilder.cs | 137 +++++++++++++ .../Item/UserItemRequestBuilder.cs | 138 +++++++++++++ .../SubjectRightsRequestItemRequestBuilder.cs | 10 + .../RoleAssignmentsRequestBuilder.cs | 8 +- .../RoleAssignmentsRequestBuilder.cs | 8 +- .../Simulations/SimulationsRequestBuilder.cs | 2 +- .../Item/Approvers/ApproversRequestBuilder.cs | 189 ++++++++++++++++++ .../Approvers/Count/CountRequestBuilder.cs | 137 +++++++++++++ .../Approvers/Item/UserItemRequestBuilder.cs | 138 +++++++++++++ .../CollaboratorsRequestBuilder.cs | 189 ++++++++++++++++++ .../Count/CountRequestBuilder.cs | 137 +++++++++++++ .../Item/UserItemRequestBuilder.cs | 138 +++++++++++++ .../SubjectRightsRequestItemRequestBuilder.cs | 10 + .../ProvisionOnDemandRequestBuilder.cs | 2 +- .../SynchronizationRequestBuilder.cs | 6 +- .../CreateLink/CreateLinkPostRequestBody.cs | 7 + .../CreateLink/CreateLinkPostRequestBody.cs | 7 + .../Generated/Sites/SitesRequestBuilder.cs | 8 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Teams/Item/TeamItemRequestBuilder.cs | 6 +- .../Generated/Teams/TeamsRequestBuilder.cs | 132 +----------- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ActivateServicePlanPostRequestBody.cs | 61 ------ .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/CloudPCItemRequestBuilder.cs | 10 + .../Item/Start/StartRequestBuilder.cs | 108 ++++++++++ .../CloudPCs/Item/Stop/StopRequestBuilder.cs | 108 ++++++++++ .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../DeviceHealthScriptStatesRequestBuilder.cs | 65 ++++++ ...dWithPolicyIdWithDeviceIdRequestBuilder.cs | 124 ++++++++++++ .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 8 +- .../RegistrationRequestBuilder.cs | 14 +- .../Users/Item/UserItemRequestBuilder.cs | 5 - src/Microsoft.Graph/Generated/kiota-lock.json | 4 +- 245 files changed, 4666 insertions(+), 850 deletions(-) rename src/Microsoft.Graph/Generated/{Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs => DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs} (60%) rename src/Microsoft.Graph/Generated/{Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs => DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs} (59%) rename src/Microsoft.Graph/Generated/{Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs => DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs} (61%) rename src/Microsoft.Graph/Generated/{Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs => DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs} (67%) create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Start/StartRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Stop/StopRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodClientAppName.cs rename src/Microsoft.Graph/Generated/{Organization/Item/ActivateService/ActivateServicePostRequestBody.cs => Models/Security/RecommendedHuntingQuery.cs} (56%) create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQueryCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Start/StartRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Stop/StopRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index aca3274c7fe..6d1596b461c 100644 --- a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// 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 @@ -69,7 +69,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/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 13514aa514e..00614da8a5b 100644 --- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,8 +72,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index 4bc09af7800..519576da115 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -48,7 +48,7 @@ public ProvisionOnDemandRequestBuilder(string rawUrl, IRequestAdapter requestAda } /// /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs index 77968793288..ea50ee9ce6f 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Synchronization/SynchronizationRequestBuilder.cs @@ -91,7 +91,7 @@ public async Task DeleteAsync(Action - /// Get synchronization from applications + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get synchronization from applications + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +225,7 @@ public SynchronizationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get synchronization from applications + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// public class SynchronizationRequestBuilderGetQueryParameters { /// Expand related entities 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 fc5eda4ba3d..5f419c197c4 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 @@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// 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 @@ -69,7 +69,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/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index b8a5a5a02cc..d3aa5518da2 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,8 +72,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs index 0eef4e46976..bb1f90a8dd3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs @@ -72,6 +72,27 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Create new navigation property to deviceHealthScriptStates for deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action + /// Create new navigation property to deviceHealthScriptStates for deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState 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 DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity. /// /// Property in multi-part unique identifier of deviceHealthScriptPolicyState @@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs index 9fb6d2d8e53..4d4b276316e 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ComanagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs @@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// + /// Delete navigation property deviceHealthScriptStates for deviceManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for 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); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Cancellation token to use when cancelling requests @@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Update the navigation property deviceHealthScriptStates in deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DeviceHealthScriptPolicyState 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, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property deviceHealthScriptStates for deviceManagement + /// + /// Configuration 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action + /// Update the navigation property deviceHealthScriptStates in deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration(); + 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters { @@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs index e8d3b460818..5f43815058a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs @@ -72,6 +72,27 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Create new navigation property to deviceHealthScriptStates for deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action + /// Create new navigation property to deviceHealthScriptStates for deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState 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 DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity. /// /// Property in multi-part unique identifier of deviceHealthScriptPolicyState @@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs index 7b8654edf76..51f18eee7ef 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs @@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// + /// Delete navigation property deviceHealthScriptStates for deviceManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for 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); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Cancellation token to use when cancelling requests @@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Update the navigation property deviceHealthScriptStates in deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DeviceHealthScriptPolicyState 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, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property deviceHealthScriptStates for deviceManagement + /// + /// Configuration 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action + /// Update the navigation property deviceHealthScriptStates in deviceManagement + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration(); + 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters { @@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs index 74744f1ee97..b50ea455d59 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/CloudPCItemRequestBuilder.cs @@ -9,6 +9,8 @@ using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Reprovision; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Restore; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.RetryPartnerAgentInstallation; +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Start; +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Stop; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Troubleshoot; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; @@ -73,6 +75,14 @@ public class CloudPCItemRequestBuilder { public RetryPartnerAgentInstallationRequestBuilder RetryPartnerAgentInstallation { get => new RetryPartnerAgentInstallationRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the start method. + public StartRequestBuilder Start { get => + new StartRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the stop method. + public StopRequestBuilder Stop { get => + new StopRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the troubleshoot method. public TroubleshootRequestBuilder Troubleshoot { get => new TroubleshootRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs similarity index 60% rename from src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs index 17bba640610..44704751ba9 100644 --- a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Start/StartRequestBuilder.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.Me.ActivateServicePlan { +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Start { /// - /// Provides operations to call the activateServicePlan method. + /// Provides operations to call the start method. /// - public class ActivateServicePlanRequestBuilder { + public class StartRequestBuilder { /// Path parameters for the request private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. @@ -19,48 +19,45 @@ public class ActivateServicePlanRequestBuilder { /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// - /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values. + /// Instantiates a new StartRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ActivateServicePlanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + public StartRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/me/activateServicePlan"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/start"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values. + /// Instantiates a new StartRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ActivateServicePlanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/me/activateServicePlan"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/start"; var urlTplParams = new Dictionary(); if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user. - /// Find more info here + /// Invoke action start /// - /// The request body /// Cancellation token to use when cancelling requests /// Configuration for 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(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -68,26 +65,23 @@ public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action - /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user. + /// Invoke action start /// - /// 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(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { #endif - _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { HttpMethod = Method.POST, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ActivateServicePlanRequestBuilderPostRequestConfiguration(); + var requestConfig = new StartRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -97,15 +91,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePlanPostReques /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class ActivateServicePlanRequestBuilderPostRequestConfiguration { + public class StartRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new activateServicePlanRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new startRequestBuilderPostRequestConfiguration and sets the default values. /// - public ActivateServicePlanRequestBuilderPostRequestConfiguration() { + public StartRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs similarity index 59% rename from src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs index be7184b45ab..4b7b612e135 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/CloudPCs/Item/Stop/StopRequestBuilder.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.Users.Item.ActivateServicePlan { +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.CloudPCs.Item.Stop { /// - /// Provides operations to call the activateServicePlan method. + /// Provides operations to call the stop method. /// - public class ActivateServicePlanRequestBuilder { + public class StopRequestBuilder { /// Path parameters for the request private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. @@ -19,48 +19,45 @@ public class ActivateServicePlanRequestBuilder { /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// - /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values. + /// Instantiates a new StopRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ActivateServicePlanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/users/{user%2Did}/activateServicePlan"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/stop"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Instantiates a new ActivateServicePlanRequestBuilder and sets the default values. + /// Instantiates a new StopRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ActivateServicePlanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/users/{user%2Did}/activateServicePlan"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/cloudPCs/{cloudPC%2Did}/stop"; var urlTplParams = new Dictionary(); if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user. - /// Find more info here + /// Invoke action stop /// - /// The request body /// Cancellation token to use when cancelling requests /// Configuration for 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(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var requestInfo = ToPostRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"4XX", ODataError.CreateFromDiscriminatorValue}, {"5XX", ODataError.CreateFromDiscriminatorValue}, @@ -68,26 +65,23 @@ public async Task PostAsync(ActivateServicePlanPostRequestBody body, Action - /// Activate a service plan with a given `servicePlanId` and `skuId` for a given user. + /// Invoke action stop /// - /// 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(ActivateServicePlanPostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ActivateServicePlanPostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { #endif - _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { HttpMethod = Method.POST, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ActivateServicePlanRequestBuilderPostRequestConfiguration(); + var requestConfig = new StopRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -97,15 +91,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePlanPostReques /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class ActivateServicePlanRequestBuilderPostRequestConfiguration { + public class StopRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new activateServicePlanRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new stopRequestBuilderPostRequestConfiguration and sets the default values. /// - public ActivateServicePlanRequestBuilderPostRequestConfiguration() { + public StopRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs similarity index 61% rename from src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs index 516cd7b62aa..ebaff8f2781 100644 --- a/src/Microsoft.Graph/Generated/Me/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigPostRequestBody.cs @@ -4,8 +4,8 @@ using System.Collections.Generic; using System.IO; using System.Linq; -namespace Microsoft.Graph.Beta.Me.ActivateServicePlan { - public class ActivateServicePlanPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig { + public class ApplyConfigPostRequestBody : 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"); } @@ -13,20 +13,24 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The servicePlanId property - public Guid? ServicePlanId { - get { return BackingStore?.Get("servicePlanId"); } - set { BackingStore?.Set("servicePlanId", value); } + /// The cloudPcIds property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CloudPcIds { + get { return BackingStore?.Get?>("cloudPcIds"); } + set { BackingStore?.Set("cloudPcIds", value); } } - /// The skuId property - public Guid? SkuId { - get { return BackingStore?.Get("skuId"); } - set { BackingStore?.Set("skuId", value); } +#nullable restore +#else + public List CloudPcIds { + get { return BackingStore?.Get>("cloudPcIds"); } + set { BackingStore?.Set("cloudPcIds", value); } } +#endif /// - /// Instantiates a new activateServicePlanPostRequestBody and sets the default values. + /// Instantiates a new applyConfigPostRequestBody and sets the default values. /// - public ActivateServicePlanPostRequestBody() { + public ApplyConfigPostRequestBody() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -34,17 +38,16 @@ public ActivateServicePlanPostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ActivateServicePlanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplyConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActivateServicePlanPostRequestBody(); + return new ApplyConfigPostRequestBody(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"servicePlanId", n => { ServicePlanId = n.GetGuidValue(); } }, - {"skuId", n => { SkuId = n.GetGuidValue(); } }, + {"cloudPcIds", n => { CloudPcIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// @@ -53,8 +56,7 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteGuidValue("servicePlanId", ServicePlanId); - writer.WriteGuidValue("skuId", SkuId); + writer.WriteCollectionOfPrimitiveValues("cloudPcIds", CloudPcIds); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs similarity index 67% rename from src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs rename to src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs index bf55d84b778..d5583d867ab 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServiceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ApplyConfig/ApplyConfigRequestBuilder.cs @@ -7,11 +7,11 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -namespace Microsoft.Graph.Beta.Organization.Item.ActivateService { +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig { /// - /// Provides operations to call the activateService method. + /// Provides operations to call the applyConfig method. /// - public class ActivateServiceRequestBuilder { + public class ApplyConfigRequestBuilder { /// Path parameters for the request private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. @@ -19,45 +19,44 @@ public class ActivateServiceRequestBuilder { /// Url template to use to build the URL for the current request builder private string UrlTemplate { get; set; } /// - /// Instantiates a new ActivateServiceRequestBuilder and sets the default values. + /// Instantiates a new ApplyConfigRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ActivateServiceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + public ApplyConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/organization/{organization%2Did}/activateService"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/applyConfig"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Instantiates a new ActivateServiceRequestBuilder and sets the default values. + /// Instantiates a new ApplyConfigRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ActivateServiceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + public ApplyConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/organization/{organization%2Did}/activateService"; + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/applyConfig"; var urlTplParams = new Dictionary(); if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// Activate a service for an organization. - /// Find more info here + /// Invoke action applyConfig /// /// The request body /// Cancellation token to use when cancelling requests /// Configuration for 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(ActivateServicePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ApplyConfigPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(ActivateServicePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ApplyConfigPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -68,16 +67,16 @@ public async Task PostAsync(ActivateServicePostRequestBody body, Action - /// Activate a service for an organization. + /// Invoke action applyConfig /// /// 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(ActivateServicePostRequestBody body, Action? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ApplyConfigPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBody body, Action requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ApplyConfigPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation { @@ -87,7 +86,7 @@ public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBod }; requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); if (requestConfiguration != null) { - var requestConfig = new ActivateServiceRequestBuilderPostRequestConfiguration(); + var requestConfig = new ApplyConfigRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); requestInfo.AddHeaders(requestConfig.Headers); @@ -97,15 +96,15 @@ public RequestInformation ToPostRequestInformation(ActivateServicePostRequestBod /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class ActivateServiceRequestBuilderPostRequestConfiguration { + public class ApplyConfigRequestBuilderPostRequestConfiguration { /// Request headers public RequestHeaders Headers { get; set; } /// Request options public IList Options { get; set; } /// - /// Instantiates a new activateServiceRequestBuilderPostRequestConfiguration and sets the default values. + /// Instantiates a new applyConfigRequestBuilderPostRequestConfiguration and sets the default values. /// - public ActivateServiceRequestBuilderPostRequestConfiguration() { + public ApplyConfigRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs new file mode 100644 index 00000000000..caa2e98db73 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Apply/ApplyRequestBuilder.cs @@ -0,0 +1,108 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Apply { + /// + /// Provides operations to call the apply method. + /// + public class ApplyRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new ApplyRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApplyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/apply"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ApplyRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/apply"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action apply + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action apply + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ApplyRequestBuilderPostRequestConfiguration(); + 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 ApplyRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new applyRequestBuilderPostRequestConfiguration and sets the default values. + /// + public ApplyRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs new file mode 100644 index 00000000000..f0735b1918d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/AssignedUsersRequestBuilder.cs @@ -0,0 +1,189 @@ +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count; +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers { + /// + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + /// + public class AssignedUsersRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignedUsersRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignedUsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new AssignedUsersRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignedUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get assignedUsers from deviceManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get assignedUsers from deviceManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AssignedUsersRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignedUsers from deviceManagement + /// + public class AssignedUsersRequestBuilderGetQueryParameters { + /// 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 AssignedUsersRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AssignedUsersRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AssignedUsersRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new assignedUsersRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AssignedUsersRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c50538c9346 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Count/CountRequestBuilder.cs @@ -0,0 +1,137 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// 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) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..d0e84e55569 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/AssignedUsers/Item/UserItemRequestBuilder.cs @@ -0,0 +1,138 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers.Item { + /// + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + /// + public class UserItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get assignedUsers from deviceManagement + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = 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.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get assignedUsers from deviceManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get assignedUsers from deviceManagement + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs index f93e39d7268..6f23b916222 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/Assignments/Item/CloudPcProvisioningPolicyAssignmentItemRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments.Item.AssignedUsers; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Kiota.Abstractions; @@ -13,6 +14,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli /// Provides operations to manage the assignments property of the microsoft.graph.cloudPcProvisioningPolicy entity. /// public class CloudPcProvisioningPolicyAssignmentItemRequestBuilder { + /// Provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. + public AssignedUsersRequestBuilder AssignedUsers { get => + new AssignedUsersRequestBuilder(PathParameters, RequestAdapter); + } /// Path parameters for the request private Dictionary PathParameters { get; set; } /// The request adapter to use to execute the requests. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs index 1a387922165..e7a699f1e0a 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/Item/CloudPcProvisioningPolicyItemRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Apply; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assign; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item.Assignments; using Microsoft.Graph.Beta.Models; @@ -15,6 +16,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli /// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. /// public class CloudPcProvisioningPolicyItemRequestBuilder { + /// Provides operations to call the apply method. + public ApplyRequestBuilder Apply { get => + new ApplyRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the assign method. public AssignRequestBuilder Assign { get => new AssignRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs index c834c1f64d3..110188f69c3 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/VirtualEndpoint/ProvisioningPolicies/ProvisioningPoliciesRequestBuilder.cs @@ -1,3 +1,4 @@ +using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.ApplyConfig; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Count; using Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPolicies.Item; using Microsoft.Graph.Beta.Models; @@ -15,6 +16,10 @@ namespace Microsoft.Graph.Beta.DeviceManagement.VirtualEndpoint.ProvisioningPoli /// Provides operations to manage the provisioningPolicies property of the microsoft.graph.virtualEndpoint entity. /// public class ProvisioningPoliciesRequestBuilder { + /// Provides operations to call the applyConfig method. + public ApplyConfigRequestBuilder ApplyConfig { get => + new ApplyConfigRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to count the resources in the collection. public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs index 7c3b3c78ae2..16a21ecd7c2 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Bundles/BundlesRequestBuilder.cs @@ -78,6 +78,27 @@ public async Task GetAsync(Action(requestInfo, DriveItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Create new navigation property to bundles for drives + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Beta.Models.DriveItem body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Beta.Models.DriveItem body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// /// Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,6 +125,34 @@ public RequestInformation ToGetRequestInformation(Action + /// Create new navigation property to bundles for drives + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.DriveItem body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.DriveItem 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 BundlesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Collection of [bundles][bundle] (albums and multi-select-shared sets of items). Only in personal OneDrive. /// public class BundlesRequestBuilderGetQueryParameters { @@ -185,5 +234,21 @@ public BundlesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class BundlesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new bundlesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public BundlesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 4bf831f7c47..fb459455a86 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -80,6 +80,11 @@ public string Scope { set { BackingStore?.Set("scope", value); } } #endif + /// The sendNotification property + public bool? SendNotification { + get { return BackingStore?.Get("sendNotification"); } + set { BackingStore?.Set("sendNotification", value); } + } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -120,6 +125,7 @@ public IDictionary> GetFieldDeserializers() { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -135,6 +141,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } 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 386608cd4ec..392737d0613 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 @@ -70,7 +70,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index 07edde3a0bc..4e1d79d27fa 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -66,7 +66,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of table 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/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index 53c4023e0cf..ba8c278d10f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -67,7 +67,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of chart 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 2a7bf99b542..1fa92d2adc7 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 @@ -60,8 +60,8 @@ public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve a list of chartpoints objects. - /// Find more info here + /// Retrieve a list of chartpoint objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index 6c5c2eceb49..33540a1f872 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -61,7 +61,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of chartseries 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/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 023e60b40bd..ce21086fa95 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -66,6 +66,11 @@ public string Scope { set { BackingStore?.Set("scope", value); } } #endif + /// The sendNotification property + public bool? SendNotification { + get { return BackingStore?.Get("sendNotification"); } + set { BackingStore?.Set("sendNotification", value); } + } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -105,6 +110,7 @@ public IDictionary> GetFieldDeserializers() { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -119,6 +125,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 4320e105230..6eab2c92947 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 3a07c5f981b..b4489dcdc06 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f99fb742c7f..452479ff6a8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 9c68c8ce0c6..c6946f25f41 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 568c4bd42b3..aa5bc7dbb98 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 082fc1035ae..d89768efa35 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 7fe2b3ad4e9..e5ea605b531 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f3da477baf9..2632e27c1c9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 854becced85..fae7a17dc64 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 562c7db338f..70b5f247d44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index a01d20bf399..ce0546fb375 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 987169bef9d..0eaf085d48b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 890fabb0416..272b461c8ec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index a88c646e014..48b4a0e53bf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8ffe6895d6c..7403ea1adfe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// 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/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index b380ddabf89..e569f4b68b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new conversation by including a thread and a post. 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 @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new conversation by including a thread and a post. 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/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 636b2eca3a7..44397d580df 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 @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// 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 @@ -68,7 +68,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/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 98cbc8a9cbe..02d6819ad6a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8bf1d04058c..bbe381b440c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 6d8922533ba..8527fc383cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 646766a3310..f82c3338b9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index c38dbcef425..686573b9a8e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 0f1acf0a2b7..32f69dedaf0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -66,6 +66,11 @@ public string Scope { set { BackingStore?.Set("scope", value); } } #endif + /// The sendNotification property + public bool? SendNotification { + get { return BackingStore?.Get("sendNotification"); } + set { BackingStore?.Set("sendNotification", value); } + } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -105,6 +110,7 @@ public IDictionary> GetFieldDeserializers() { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -119,6 +125,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index 1368547637e..6de107cc06e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index db358cf865f..c6e9ada0feb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 1fa5b5676ff..2c548c1fd6c 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 @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// 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 @@ -68,7 +68,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/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs index 03dd317455f..84578c97e8d 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs @@ -69,8 +69,8 @@ public RiskyUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve the properties and relationships of a **riskyUser** object. - /// Find more info here + /// Retrieve the properties and relationships of a collection of **riskyUser** objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task PostAsync(RiskyUser body, Action(requestInfo, RiskyUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of a **riskyUser** object. + /// Retrieve the properties and relationships of a collection of **riskyUser** objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public RequestInformation ToPostRequestInformation(RiskyUser body, Action - /// Retrieve the properties and relationships of a **riskyUser** object. + /// Retrieve the properties and relationships of a collection of **riskyUser** objects. /// public class RiskyUsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index de33d88a833..7e26de6a18b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8bf27a23fd1..3c7fa25b213 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 1ca6e17c59e..75910136c19 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index fa36d7d1684..7ba6b3e82a7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index b844243a85c..7dc51ea700c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index b5f1d0027f8..2cf53d39df9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 9816581758c..34fa3816778 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 135c6cd1b30..41a826a4c96 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index bac51b6cf98..be06a40a0d1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 9f4c20a9b8e..e1a78701e67 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 67d93845de6..7ff454b2a4e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 76d232721e2..0d84d70e660 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index bf2e8e20183..85c446e93c8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e8c6480bfbc..cb39a5ee5b3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 83e3709d64e..3fc548ff227 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 091d2c2fb5d..e9f7e704eb8 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8aea608a75f..960ed661ca1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index ef7671a6a3d..bd78d4bc74a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c59a117086b..dc76c2086d1 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 0d754c95032..ba1c09c5a71 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index b4b95dd7c07..497ee7728fe 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index f3fd6d39335..0693dd9dccb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3f64b9b18b4..e28726b797e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f011eeb9b52..0a0d11a9dc4 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 7fc74328c01..10b1459edc5 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 4d26e514289..54169b7e46c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 9d99ed4f506..21450eba21e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e71f7429897..9f99468d456 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 6716253e4fc..6341b0cb671 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index f563b20e9ee..cb21ab005c7 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 014f76bb51e..918faad23c3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 66ac89fb70a..f528ec5dbde 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f65ff6de6fe..391a0b2914f 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 4104b9713dc..44c11fadf6d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 4a671d2c542..12e4b0d44a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/CloudPCItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/CloudPCItemRequestBuilder.cs index 4811e1d7c74..b774566059c 100644 --- a/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/CloudPCItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/CloudPCItemRequestBuilder.cs @@ -9,6 +9,8 @@ using Microsoft.Graph.Beta.Me.CloudPCs.Item.Reprovision; using Microsoft.Graph.Beta.Me.CloudPCs.Item.Restore; using Microsoft.Graph.Beta.Me.CloudPCs.Item.RetryPartnerAgentInstallation; +using Microsoft.Graph.Beta.Me.CloudPCs.Item.Start; +using Microsoft.Graph.Beta.Me.CloudPCs.Item.Stop; using Microsoft.Graph.Beta.Me.CloudPCs.Item.Troubleshoot; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; @@ -73,6 +75,14 @@ public class CloudPCItemRequestBuilder { public RetryPartnerAgentInstallationRequestBuilder RetryPartnerAgentInstallation { get => new RetryPartnerAgentInstallationRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the start method. + public StartRequestBuilder Start { get => + new StartRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the stop method. + public StopRequestBuilder Stop { get => + new StopRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the troubleshoot method. public TroubleshootRequestBuilder Troubleshoot { get => new TroubleshootRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Start/StartRequestBuilder.cs new file mode 100644 index 00000000000..a1ec53a547a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Start/StartRequestBuilder.cs @@ -0,0 +1,108 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Me.CloudPCs.Item.Start { + /// + /// Provides operations to call the start method. + /// + public class StartRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new StartRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StartRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/cloudPCs/{cloudPC%2Did}/start"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new StartRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/cloudPCs/{cloudPC%2Did}/start"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action start + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action start + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new StartRequestBuilderPostRequestConfiguration(); + 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 StartRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new startRequestBuilderPostRequestConfiguration and sets the default values. + /// + public StartRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..98379eb51c8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudPCs/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,108 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Me.CloudPCs.Item.Stop { + /// + /// Provides operations to call the stop method. + /// + public class StopRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new StopRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/cloudPCs/{cloudPC%2Did}/stop"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new StopRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/me/cloudPCs/{cloudPC%2Did}/stop"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action stop + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action stop + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new StopRequestBuilderPostRequestConfiguration(); + 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 StopRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new stopRequestBuilderPostRequestConfiguration and sets the default values. + /// + public StopRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs index c494aa4840f..31daea26406 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8f70692014f..712403490b4 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0da5e54f211..f504e261dde 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c8addd6be79..9fa2f02165d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 82bed646f68..425c6ddee35 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index c63e9464e33..eae68c6716e 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 428f1ce73a9..61fce6c900c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs index 9e2a7980cd6..0e948888d08 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs @@ -72,6 +72,27 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Create new navigation property to deviceHealthScriptStates for me + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action + /// Create new navigation property to deviceHealthScriptStates for me + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState 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 DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity. /// /// Property in multi-part unique identifier of deviceHealthScriptPolicyState @@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs index 16705c1eddb..a175c2ee71d 100644 --- a/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs @@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// + /// Delete navigation property deviceHealthScriptStates for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Cancellation token to use when cancelling requests @@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Update the navigation property deviceHealthScriptStates in me + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DeviceHealthScriptPolicyState 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, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property deviceHealthScriptStates for me + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action + /// Update the navigation property deviceHealthScriptStates in me + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration(); + 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters { @@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() { + 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 4221caa9402..7a8f17c9b44 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -1,4 +1,3 @@ -using Microsoft.Graph.Beta.Me.ActivateServicePlan; using Microsoft.Graph.Beta.Me.Activities; using Microsoft.Graph.Beta.Me.AgreementAcceptances; using Microsoft.Graph.Beta.Me.Analytics; @@ -112,10 +111,6 @@ namespace Microsoft.Graph.Beta.Me { /// Provides operations to manage the user singleton. /// public class MeRequestBuilder { - /// Provides operations to call the activateServicePlan method. - public ActivateServicePlanRequestBuilder ActivateServicePlan { get => - new ActivateServicePlanRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the activities property of the microsoft.graph.user entity. public ActivitiesRequestBuilder Activities { get => new ActivitiesRequestBuilder(PathParameters, RequestAdapter); @@ -548,8 +543,8 @@ public FindRoomsWithRoomListRequestBuilder FindRoomsWithRoomList(string roomList return new FindRoomsWithRoomListRequestBuilder(PathParameters, RequestAdapter, roomList); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. - /// Find more info here + /// 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 /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -600,7 +595,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// 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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -654,7 +649,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models. return requestInfo; } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These _default_ properties are noted in the Properties section. To get properties that are _not_ returned by default, do a GET operation for the user and specify the properties in a `$select` OData query option. Because the **user** resource supports extensions, you can also use the `GET` operation to get custom properties and extension data in a **user** instance. + /// 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. /// public class MeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 3c44d41c0c2..315395f514a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 0230e271060..8178a73f77e 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -47,7 +47,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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 aa142ad05c9..0058d091e41 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -64,8 +64,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: - /// Find more info here + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the 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 /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.M return requestInfo; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index b15f5d888cd..5e0c37391c1 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,8 +72,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Models/AccessReviewCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AccessReviewCollectionResponse.cs index afba7f54b48..1b111164ce2 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessReviewCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessReviewCollectionResponse.cs @@ -4,7 +4,12 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - public class AccessReviewCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + public class AccessReviewCollectionResponse : BaseCollectionPaginationCountResponse, IAdditionalDataHolder, 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 value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -19,6 +24,12 @@ public List Value { set { BackingStore?.Set("value", value); } } #endif + /// + /// Instantiates a new AccessReviewCollectionResponse and sets the default values. + /// + public AccessReviewCollectionResponse() : base() { + AdditionalData = new Dictionary(); + } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -43,6 +54,7 @@ public List Value { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs b/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs index c081ba3f330..a773f0661db 100644 --- a/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/AndroidLobApp.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class AndroidLobApp : MobileLobApp, IParsable { - /// The Identity Name. This property is deprecated starting in February 2023 (Release 2302). + /// The Identity Name. This property is deprecated starting in February 2023 (Release 2302). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IdentityName { @@ -19,7 +19,7 @@ public string IdentityName { set { BackingStore?.Set("identityName", value); } } #endif - /// The identity version. This property is deprecated starting in February 2023 (Release 2302). + /// The identity version. This property is deprecated starting in February 2023 (Release 2302). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IdentityVersion { diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index b1eeab5deae..80fe19c71f7 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -496,7 +496,7 @@ public SpaApplication Spa { set { BackingStore?.Set("spa", value); } } #endif - /// The synchronization property + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Beta.Models.Synchronization? Synchronization { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrength.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrength.cs index cd233a67815..9843d1dc9c2 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrength.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrength.cs @@ -25,7 +25,7 @@ public string AuthenticationStrengthId { set { BackingStore?.Set("authenticationStrengthId", value); } } #endif - /// The authenticationStrengthResult property + /// The result of the authentication strength. The possible values are: notSet, skippedForProofUp, satisfied, singleChallengeRequired, multipleChallengesRequired, singleRegistrationRequired, multipleRegistrationsRequired, cannotSatisfyDueToCombinationConfiguration, cannotSatisfy, unknownFutureValue. public Microsoft.Graph.Beta.Models.AuthenticationStrengthResult? AuthenticationStrengthResult { get { return BackingStore?.Get("authenticationStrengthResult"); } set { BackingStore?.Set("authenticationStrengthResult", value); } diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index 2bbccd52b37..d048bc79110 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Represents a booked appointment of a service by a customer in a business. - /// public class BookingAppointment : Entity, IParsable { /// Additional information that is sent to the customer when an appointment is confirmed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/BookingNamedEntity.cs b/src/Microsoft.Graph/Generated/Models/BookingNamedEntity.cs index 8029c7c2d82..06bf7aa451c 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingNamedEntity.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingNamedEntity.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Booking entities that provide a display name. - /// public class BookingNamedEntity : Entity, IParsable { /// A name for the derived entity, which interfaces with customers. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/CloudPcLaunchInfo.cs b/src/Microsoft.Graph/Generated/Models/CloudPcLaunchInfo.cs index cd51b3c7433..d4abf0fbb99 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudPcLaunchInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudPcLaunchInfo.cs @@ -54,6 +54,25 @@ public string OdataType { get { return BackingStore?.Get("@odata.type"); } set { BackingStore?.Set("@odata.type", value); } } +#endif + /// Indicates whether the Cloud PC supports switch functionality. If the value is true, it supports switch functionality; otherwise, false. + public bool? Windows365SwitchCompatible { + get { return BackingStore?.Get("windows365SwitchCompatible"); } + set { BackingStore?.Set("windows365SwitchCompatible", value); } + } + /// Indicates the reason the Cloud PC doesn't support switch. CPCOsVersionNotMeetRequirement indicates that the user needs to update their Cloud PC operation system version. CPCHardwareNotMeetRequirement indicates that the Cloud PC needs more CPU or RAM to support the functionality. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Windows365SwitchNotCompatibleReason { + get { return BackingStore?.Get("windows365SwitchNotCompatibleReason"); } + set { BackingStore?.Set("windows365SwitchNotCompatibleReason", value); } + } +#nullable restore +#else + public string Windows365SwitchNotCompatibleReason { + get { return BackingStore?.Get("windows365SwitchNotCompatibleReason"); } + set { BackingStore?.Set("windows365SwitchNotCompatibleReason", value); } + } #endif /// /// Instantiates a new cloudPcLaunchInfo and sets the default values. @@ -78,6 +97,8 @@ public IDictionary> GetFieldDeserializers() { {"cloudPcId", n => { CloudPcId = n.GetStringValue(); } }, {"cloudPcLaunchUrl", n => { CloudPcLaunchUrl = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"windows365SwitchCompatible", n => { Windows365SwitchCompatible = n.GetBoolValue(); } }, + {"windows365SwitchNotCompatibleReason", n => { Windows365SwitchNotCompatibleReason = n.GetStringValue(); } }, }; } /// @@ -89,6 +110,8 @@ public void Serialize(ISerializationWriter writer) { writer.WriteStringValue("cloudPcId", CloudPcId); writer.WriteStringValue("cloudPcLaunchUrl", CloudPcLaunchUrl); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteBoolValue("windows365SwitchCompatible", Windows365SwitchCompatible); + writer.WriteStringValue("windows365SwitchNotCompatibleReason", Windows365SwitchNotCompatibleReason); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicy.cs b/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicy.cs index 0d255ee64c4..28ae7100fa5 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicy.cs @@ -46,6 +46,20 @@ public string CloudPcGroupDisplayName { get { return BackingStore?.Get("cloudPcGroupDisplayName"); } set { BackingStore?.Set("cloudPcGroupDisplayName", value); } } +#endif + /// The cloudPcNamingTemplate property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CloudPcNamingTemplate { + get { return BackingStore?.Get("cloudPcNamingTemplate"); } + set { BackingStore?.Set("cloudPcNamingTemplate", value); } + } +#nullable restore +#else + public string CloudPcNamingTemplate { + get { return BackingStore?.Get("cloudPcNamingTemplate"); } + set { BackingStore?.Set("cloudPcNamingTemplate", value); } + } #endif /// The provisioning policy description. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -219,6 +233,7 @@ public CloudPcWindowsSettings WindowsSettings { {"alternateResourceUrl", n => { AlternateResourceUrl = n.GetStringValue(); } }, {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(CloudPcProvisioningPolicyAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"cloudPcGroupDisplayName", n => { CloudPcGroupDisplayName = n.GetStringValue(); } }, + {"cloudPcNamingTemplate", n => { CloudPcNamingTemplate = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"domainJoinConfiguration", n => { DomainJoinConfiguration = n.GetObjectValue(CloudPcDomainJoinConfiguration.CreateFromDiscriminatorValue); } }, @@ -246,6 +261,7 @@ public CloudPcWindowsSettings WindowsSettings { writer.WriteStringValue("alternateResourceUrl", AlternateResourceUrl); writer.WriteCollectionOfObjectValues("assignments", Assignments); writer.WriteStringValue("cloudPcGroupDisplayName", CloudPcGroupDisplayName); + writer.WriteStringValue("cloudPcNamingTemplate", CloudPcNamingTemplate); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); writer.WriteObjectValue("domainJoinConfiguration", DomainJoinConfiguration); diff --git a/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicyAssignment.cs b/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicyAssignment.cs index 4a7ce060caf..964f56c1c28 100644 --- a/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicyAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/CloudPcProvisioningPolicyAssignment.cs @@ -5,6 +5,20 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class CloudPcProvisioningPolicyAssignment : Entity, IParsable { + /// The assignedUsers property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignedUsers { + get { return BackingStore?.Get?>("assignedUsers"); } + set { BackingStore?.Set("assignedUsers", value); } + } +#nullable restore +#else + public List AssignedUsers { + get { return BackingStore?.Get>("assignedUsers"); } + set { BackingStore?.Set("assignedUsers", value); } + } +#endif /// The assignment target for the provisioning policy. Currently, the only target supported for this policy is a user group. For details, see cloudPcManagementGroupAssignmentTarget. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,6 +46,7 @@ public CloudPcManagementAssignmentTarget Target { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"assignedUsers", n => { AssignedUsers = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"target", n => { Target = n.GetObjectValue(CloudPcManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, }; } @@ -42,6 +57,7 @@ public CloudPcManagementAssignmentTarget Target { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("assignedUsers", AssignedUsers); writer.WriteObjectValue("target", Target); } } diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRuleSatisfied.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRuleSatisfied.cs index 2a2e5ce8740..08ea1b8ff75 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessRuleSatisfied.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessRuleSatisfied.cs @@ -32,7 +32,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Refers to the conditional access policy conditions that were satisfied. The possible values are: allApps, firstPartyApps, office365, appId, acr, appFilter, allUsers, guest, groupId, roleId, userId, allDevicePlatforms, devicePlatform, allLocations, insideCorpnet, allTrustedLocations, locationId, allDevices, deviceFilter, deviceState, unknownFutureValue, deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: deviceFilterIncludeRuleNotMatched, allDeviceStates. + /// Refers to the conditional access policy conditions that were satisfied. The possible values are: allApps, firstPartyApps, office365, appId, acr, appFilter, allUsers, guest, groupId, roleId, userId, allDevicePlatforms, devicePlatform, allLocations, insideCorpnet, allTrustedLocations, locationId, allDevices, deviceFilter, deviceState, unknownFutureValue, deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: deviceFilterIncludeRuleNotMatched, allDeviceStates, anonymizedIPAddress, unfamiliarFeatures, nationStateIPAddress, realTimeThreatIntelligence, internalGuest, b2bCollaborationGuest, b2bCollaborationMember, b2bDirectConnectUser, otherExternalUser, serviceProvider, microsoftAdminPortals. public ConditionalAccessRule? RuleSatisfied { get { return BackingStore?.Get("ruleSatisfied"); } set { BackingStore?.Set("ruleSatisfied", value); } diff --git a/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs index b89e70981ae..16604d38f51 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs @@ -6,7 +6,7 @@ namespace Microsoft.Graph.Beta.Models { public class CustomAuthenticationExtension : CustomCalloutExtension, IParsable { /// - /// Instantiates a new customAuthenticationExtension and sets the default values. + /// Instantiates a new CustomAuthenticationExtension and sets the default values. /// public CustomAuthenticationExtension() : base() { OdataType = "#microsoft.graph.customAuthenticationExtension"; diff --git a/src/Microsoft.Graph/Generated/Models/Device.cs b/src/Microsoft.Graph/Generated/Models/Device.cs index d04555264fb..98109e4279b 100644 --- a/src/Microsoft.Graph/Generated/Models/Device.cs +++ b/src/Microsoft.Graph/Generated/Models/Device.cs @@ -509,7 +509,7 @@ public List UsageRights { } #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/DeviceLogCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs index a0bb8c3b556..fc9905cbdc0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceLogCollectionResponse.cs @@ -8,7 +8,7 @@ namespace Microsoft.Graph.Beta.Models { /// Windows Log Collection request entity. /// public class DeviceLogCollectionResponse : Entity, IParsable { - /// The User Principal Name (UPN) of the user that enrolled the device + /// The User Principal Name (UPN) of the user that enrolled the device. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? EnrolledByUser { @@ -27,12 +27,12 @@ public long? ErrorCode { get { return BackingStore?.Get("errorCode"); } set { BackingStore?.Set("errorCode", value); } } - /// The DateTime of the expiration of the logs + /// The DateTime of the expiration of the logs. public DateTimeOffset? ExpirationDateTimeUTC { get { return BackingStore?.Get("expirationDateTimeUTC"); } set { BackingStore?.Set("expirationDateTimeUTC", value); } } - /// The UPN for who initiated the request + /// The UPN for who initiated the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? InitiatedByUserPrincipalName { @@ -46,17 +46,17 @@ public string InitiatedByUserPrincipalName { set { BackingStore?.Set("initiatedByUserPrincipalName", value); } } #endif - /// The device Id + /// Indicates Intune device unique identifier. public Guid? ManagedDeviceId { get { return BackingStore?.Get("managedDeviceId"); } set { BackingStore?.Set("managedDeviceId", value); } } - /// The DateTime the request was received + /// The DateTime the request was received. public DateTimeOffset? ReceivedDateTimeUTC { get { return BackingStore?.Get("receivedDateTimeUTC"); } set { BackingStore?.Set("receivedDateTimeUTC", value); } } - /// The DateTime of the request + /// The DateTime of the request. public DateTimeOffset? RequestedDateTimeUTC { get { return BackingStore?.Get("requestedDateTimeUTC"); } set { BackingStore?.Set("requestedDateTimeUTC", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs index 730e1e41883..96a865e7e1f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs @@ -5,12 +5,12 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationSettingGroupCollectionDefinition : DeviceManagementConfigurationSettingGroupDefinition, IParsable { - /// Maximum number of setting group count in the collection. Valid values 1 to 100 + /// Maximum number of setting group count in the collection public int? MaximumCount { get { return BackingStore?.Get("maximumCount"); } set { BackingStore?.Set("maximumCount", value); } } - /// Minimum number of setting group count in the collection. Valid values 1 to 100 + /// Minimum number of setting group count in the collection public int? MinimumCount { get { return BackingStore?.Get("minimumCount"); } set { BackingStore?.Set("minimumCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs index e06a9ad7d24..f6b673482d7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs @@ -43,12 +43,12 @@ public bool? IsSecret { get { return BackingStore?.Get("isSecret"); } set { BackingStore?.Set("isSecret", value); } } - /// Maximum length of string. Valid values 0 to 87516 + /// Maximum length of string public long? MaximumLength { get { return BackingStore?.Get("maximumLength"); } set { BackingStore?.Set("maximumLength", value); } } - /// Minimum length of string. Valid values 0 to 87516 + /// Minimum length of string public long? MinimumLength { get { return BackingStore?.Get("minimumLength"); } set { BackingStore?.Set("minimumLength", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs index 57e3c864d1d..46b625b0103 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryDefinition.cs @@ -43,7 +43,7 @@ public List Objects { set { BackingStore?.Set("objects", value); } } #endif - /// The readOnly property + /// Whether this object is read-only. public bool? ReadOnly { get { return BackingStore?.Get("readOnly"); } set { BackingStore?.Set("readOnly", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Ediscovery/SiteSource.cs b/src/Microsoft.Graph/Generated/Models/Ediscovery/SiteSource.cs index e3db8ce4ea9..e112851678a 100644 --- a/src/Microsoft.Graph/Generated/Models/Ediscovery/SiteSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Ediscovery/SiteSource.cs @@ -20,7 +20,7 @@ public Microsoft.Graph.Beta.Models.Site Site { } #endif /// - /// Instantiates a new SiteSource and sets the default values. + /// Instantiates a new siteSource and sets the default values. /// public SiteSource() : base() { OdataType = "#microsoft.graph.ediscovery.siteSource"; diff --git a/src/Microsoft.Graph/Generated/Models/Ediscovery/UnifiedGroupSource.cs b/src/Microsoft.Graph/Generated/Models/Ediscovery/UnifiedGroupSource.cs index dd3f31117c4..8b1763cfc97 100644 --- a/src/Microsoft.Graph/Generated/Models/Ediscovery/UnifiedGroupSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Ediscovery/UnifiedGroupSource.cs @@ -25,7 +25,7 @@ public SourceType? IncludedSources { set { BackingStore?.Set("includedSources", value); } } /// - /// Instantiates a new UnifiedGroupSource and sets the default values. + /// Instantiates a new unifiedGroupSource and sets the default values. /// public UnifiedGroupSource() : base() { OdataType = "#microsoft.graph.ediscovery.unifiedGroupSource"; diff --git a/src/Microsoft.Graph/Generated/Models/Ediscovery/UserSource.cs b/src/Microsoft.Graph/Generated/Models/Ediscovery/UserSource.cs index 8aabfd0262e..50ff284df5c 100644 --- a/src/Microsoft.Graph/Generated/Models/Ediscovery/UserSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Ediscovery/UserSource.cs @@ -39,7 +39,7 @@ public string SiteWebUrl { } #endif /// - /// Instantiates a new UserSource and sets the default values. + /// Instantiates a new userSource and sets the default values. /// public UserSource() : base() { OdataType = "#microsoft.graph.ediscovery.userSource"; diff --git a/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs index 3f5856b1606..1f8569d4414 100644 --- a/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs +++ b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class EnterpriseCodeSigningCertificate : Entity, IParsable { - /// The Windows Enterprise Code-Signing Certificate in the raw data format. + /// The Windows Enterprise Code-Signing Certificate in the raw data format. Set to null once certificate has been uploaded and other properties have been populated. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public byte[]? Content { @@ -19,12 +19,12 @@ public byte[] Content { set { BackingStore?.Set("content", value); } } #endif - /// The Cert Expiration Date. + /// The cert expiration date and time (using ISO 8601 format, in UTC time). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. public DateTimeOffset? ExpirationDateTime { get { return BackingStore?.Get("expirationDateTime"); } set { BackingStore?.Set("expirationDateTime", value); } } - /// The Issuer value for the cert. + /// The issuer value for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Issuer { @@ -38,7 +38,7 @@ public string Issuer { set { BackingStore?.Set("issuer", value); } } #endif - /// The Issuer Name for the cert. + /// The issuer name for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IssuerName { @@ -57,7 +57,7 @@ public CertificateStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } - /// The Subject Value for the cert. + /// The subject value for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Subject { @@ -71,7 +71,7 @@ public string Subject { set { BackingStore?.Set("subject", value); } } #endif - /// The Subject Name for the cert. + /// The subject name for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SubjectName { @@ -85,7 +85,7 @@ public string SubjectName { set { BackingStore?.Set("subjectName", value); } } #endif - /// The date time of CodeSigning Cert when it is uploaded. + /// The date time of CodeSigning Cert when it is uploaded (using ISO 8601 format, in UTC time). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. public DateTimeOffset? UploadDateTime { get { return BackingStore?.Get("uploadDateTime"); } set { BackingStore?.Set("uploadDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index 3aa96050882..a29fad94035 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -909,7 +909,7 @@ public GroupWritebackConfiguration WritebackConfiguration { } #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/GroupPolicyDefinitionValue.cs b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs index 35922e0229e..1520b426f2e 100644 --- a/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs +++ b/src/Microsoft.Graph/Generated/Models/GroupPolicyDefinitionValue.cs @@ -4,6 +4,9 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { + /// + /// The definition value entity stores the value for a single group policy definition. + /// public class GroupPolicyDefinitionValue : Entity, IParsable { /// Group Policy Configuration Type public GroupPolicyConfigurationType? ConfigurationType { diff --git a/src/Microsoft.Graph/Generated/Models/Identity.cs b/src/Microsoft.Graph/Generated/Models/Identity.cs index 344ed279560..98d8692456f 100644 --- a/src/Microsoft.Graph/Generated/Models/Identity.cs +++ b/src/Microsoft.Graph/Generated/Models/Identity.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The display name of the identity. This property is read-only. + /// The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -28,7 +28,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The identifier of the identity. This property is read-only. + /// Unique identifier for the identity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Id { diff --git a/src/Microsoft.Graph/Generated/Models/LearningContent.cs b/src/Microsoft.Graph/Generated/Models/LearningContent.cs index 81536a6a172..d3bbd5521fa 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningContent.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningContent.cs @@ -47,7 +47,7 @@ public List Contributors { set { BackingStore?.Set("contributors", value); } } #endif - /// The date when the learning content was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. + /// The date and time when the learning content was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } @@ -99,7 +99,7 @@ public string Format { set { BackingStore?.Set("format", value); } } #endif - /// Indicates whether the content is active or not. Inactive content will not show up in the UI. The default value is true. Optional. + /// Indicates whether the content is active or not. Inactive content doesn't show up in the UI. The default value is true. Optional. public bool? IsActive { get { return BackingStore?.Get("isActive"); } set { BackingStore?.Set("isActive", value); } @@ -128,7 +128,7 @@ public string LanguageTag { set { BackingStore?.Set("languageTag", value); } } #endif - /// The date when the learning content was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. + /// The date and time when the learning content was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/LearningProvider.cs b/src/Microsoft.Graph/Generated/Models/LearningProvider.cs index e07c425c7ca..b2dcff3f624 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningProvider.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningProvider.cs @@ -47,7 +47,7 @@ public string LoginWebUrl { set { BackingStore?.Set("loginWebUrl", value); } } #endif - /// The long logo URL for the dark mode, which needs to be a publicly accessible image. This image would be saved to the Blob storage of Viva Learning for rendering within the Viva Learning app. Required. + /// The long logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LongLogoWebUrlForDarkTheme { @@ -61,7 +61,7 @@ public string LongLogoWebUrlForDarkTheme { set { BackingStore?.Set("longLogoWebUrlForDarkTheme", value); } } #endif - /// The long logo URL for the light mode, which needs to be a publicly accessible image. This image would be saved to the Blob storage of Viva Learning for rendering within the Viva Learning app. Required. + /// The long logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LongLogoWebUrlForLightTheme { @@ -75,7 +75,7 @@ public string LongLogoWebUrlForLightTheme { set { BackingStore?.Set("longLogoWebUrlForLightTheme", value); } } #endif - /// The square logo URL for the dark mode, which needs to be a publicly accessible image. This image would be saved to the Blob storage of Viva Learning for rendering within the Viva Learning app. Required. + /// The square logo URL for the dark mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SquareLogoWebUrlForDarkTheme { @@ -89,7 +89,7 @@ public string SquareLogoWebUrlForDarkTheme { set { BackingStore?.Set("squareLogoWebUrlForDarkTheme", value); } } #endif - /// The square logo URL for the light mode, which needs to be a publicly accessible image. This image would be saved to the Blob storage of Viva Learning for rendering within the Viva Learning app. Required. + /// The square logo URL for the light mode that needs to be a publicly accessible image. This image would be saved to the blob storage of Viva Learning for rendering within the Viva Learning app. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SquareLogoWebUrlForLightTheme { diff --git a/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs b/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs index f4635d3794d..0572f064298 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOSLobApp.cs @@ -47,7 +47,7 @@ public List ChildApps { set { BackingStore?.Set("childApps", value); } } #endif - /// The identity version. This property is being deprecated in 2211(November 2022). + /// The identity version. This property is deprecated starting in 2211(November 2022). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IdentityVersion { diff --git a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs index c2690a2c43b..efaa66efa44 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedAndroidLobApp.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class ManagedAndroidLobApp : ManagedMobileLobApp, IParsable { - /// The Identity Name. This property is deprecated starting in February 2023 (Release 2302). + /// The Identity Name. This property is deprecated starting in February 2023 (Release 2302). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IdentityName { @@ -19,7 +19,7 @@ public string IdentityName { set { BackingStore?.Set("identityName", value); } } #endif - /// The identity version. This property is deprecated starting in February 2023 (Release 2302). + /// The identity version. This property is deprecated starting in February 2023 (Release 2302). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IdentityVersion { diff --git a/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs new file mode 100644 index 00000000000..cee1ee89121 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs @@ -0,0 +1,8 @@ +namespace Microsoft.Graph.Beta.Models { + public enum MeetingChatMode { + Enabled, + Disabled, + Limited, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Message.cs b/src/Microsoft.Graph/Generated/Models/Message.cs index 0c8f63d66e2..c9078f77b10 100644 --- a/src/Microsoft.Graph/Generated/Models/Message.cs +++ b/src/Microsoft.Graph/Generated/Models/Message.cs @@ -392,7 +392,7 @@ public string WebLink { } #endif /// - /// Instantiates a new Message and sets the default values. + /// Instantiates a new message and sets the default values. /// public Message() : base() { OdataType = "#microsoft.graph.message"; diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs index b847f9d30f9..85f793299ca 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethod.cs @@ -5,6 +5,11 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class MicrosoftAuthenticatorAuthenticationMethod : AuthenticationMethod, IParsable { + /// The app that the user has registered to use to approve push notifications. The possible values are: microsoftAuthenticator, outlookMobile, unknownFutureValue. + public MicrosoftAuthenticatorAuthenticationMethodClientAppName? ClientAppName { + get { return BackingStore?.Get("clientAppName"); } + set { BackingStore?.Set("clientAppName", value); } + } /// The date and time that this app was registered. This property is null if the device is not registered for passwordless Phone Sign-In. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } @@ -85,6 +90,7 @@ public MicrosoftAuthenticatorAuthenticationMethod() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"clientAppName", n => { ClientAppName = n.GetEnumValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"device", n => { Device = n.GetObjectValue(Microsoft.Graph.Beta.Models.Device.CreateFromDiscriminatorValue); } }, {"deviceTag", n => { DeviceTag = n.GetStringValue(); } }, @@ -99,6 +105,7 @@ public MicrosoftAuthenticatorAuthenticationMethod() : base() { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteEnumValue("clientAppName", ClientAppName); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("device", Device); writer.WriteStringValue("deviceTag", DeviceTag); diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodClientAppName.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodClientAppName.cs new file mode 100644 index 00000000000..501a2cb41e3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorAuthenticationMethodClientAppName.cs @@ -0,0 +1,7 @@ +namespace Microsoft.Graph.Beta.Models { + public enum MicrosoftAuthenticatorAuthenticationMethodClientAppName { + MicrosoftAuthenticator, + OutlookMobile, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs index 8b8eda8f53f..dbce7191abf 100644 --- a/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MicrosoftAuthenticatorFeatureSettings.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The companionAppAllowedState property + /// Determines whether users will be able to approve push notifications on other Microsoft applications such as Outlook Mobile. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public AuthenticationMethodFeatureConfiguration? CompanionAppAllowedState { diff --git a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs index 4cc857b3e56..e3c44fe324e 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs @@ -8,57 +8,57 @@ namespace Microsoft.Graph.Beta.Models { /// Entity which represents a connection to Mobile Threat Defense partner. /// public class MobileThreatDefenseConnector : Entity, IParsable { - /// When TRUE, indicates the data sync partner may collect metadata about installed applications from Intune for IOS devices. When FALSE, indicates the data sync partner may not collect metadata about installed applications from Intune for IOS devices. Default value is FALSE. + /// When TRUE, indicates the Mobile Threat Defense partner may collect metadata about installed applications from Intune for IOS devices. When FALSE, indicates the Mobile Threat Defense partner may not collect metadata about installed applications from Intune for IOS devices. Default value is FALSE. public bool? AllowPartnerToCollectIOSApplicationMetadata { get { return BackingStore?.Get("allowPartnerToCollectIOSApplicationMetadata"); } set { BackingStore?.Set("allowPartnerToCollectIOSApplicationMetadata", value); } } - /// When TRUE, indicates the data sync partner may collect metadata about personally installed applications from Intune for IOS devices. When FALSE, indicates the data sync partner may not collect metadata about personally installed applications from Intune for IOS devices. Default value is FALSE. + /// When TRUE, indicates the Mobile Threat Defense partner may collect metadata about personally installed applications from Intune for IOS devices. When FALSE, indicates the Mobile Threat Defense partner may not collect metadata about personally installed applications from Intune for IOS devices. Default value is FALSE. public bool? AllowPartnerToCollectIOSPersonalApplicationMetadata { get { return BackingStore?.Get("allowPartnerToCollectIOSPersonalApplicationMetadata"); } set { BackingStore?.Set("allowPartnerToCollectIOSPersonalApplicationMetadata", value); } } - /// For Android, set whether Intune must receive data from the data sync partner prior to marking a device compliant + /// For Android, set whether Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant public bool? AndroidDeviceBlockedOnMissingPartnerData { get { return BackingStore?.Get("androidDeviceBlockedOnMissingPartnerData"); } set { BackingStore?.Set("androidDeviceBlockedOnMissingPartnerData", value); } } - /// For Android, set whether data from the data sync partner should be used during compliance evaluations + /// For Android, set whether data from the Mobile Threat Defense partner should be used during compliance evaluations public bool? AndroidEnabled { get { return BackingStore?.Get("androidEnabled"); } set { BackingStore?.Set("androidEnabled", value); } } - /// When TRUE, inidicates that data from the data sync partner can be used during Mobile Application Management (MAM) evaluations for Android devices. When FALSE, inidicates that data from the data sync partner should not be used during Mobile Application Management (MAM) evaluations for Android devices. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. Default value is FALSE. + /// When TRUE, inidicates that data from the Mobile Threat Defense partner can be used during Mobile Application Management (MAM) evaluations for Android devices. When FALSE, inidicates that data from the Mobile Threat Defense partner should not be used during Mobile Application Management (MAM) evaluations for Android devices. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. Default value is FALSE. public bool? AndroidMobileApplicationManagementEnabled { get { return BackingStore?.Get("androidMobileApplicationManagementEnabled"); } set { BackingStore?.Set("androidMobileApplicationManagementEnabled", value); } } - /// For IOS, set whether Intune must receive data from the data sync partner prior to marking a device compliant + /// For IOS, set whether Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant public bool? IosDeviceBlockedOnMissingPartnerData { get { return BackingStore?.Get("iosDeviceBlockedOnMissingPartnerData"); } set { BackingStore?.Set("iosDeviceBlockedOnMissingPartnerData", value); } } - /// For IOS, get or set whether data from the data sync partner should be used during compliance evaluations + /// For IOS, get or set whether data from the Mobile Threat Defense partner should be used during compliance evaluations public bool? IosEnabled { get { return BackingStore?.Get("iosEnabled"); } set { BackingStore?.Set("iosEnabled", value); } } - /// When TRUE, inidicates that data from the data sync partner can be used during Mobile Application Management (MAM) evaluations for IOS devices. When FALSE, inidicates that data from the data sync partner should not be used during Mobile Application Management (MAM) evaluations for IOS devices. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. Default value is FALSE. + /// When TRUE, inidicates that data from the Mobile Threat Defense partner can be used during Mobile Application Management (MAM) evaluations for IOS devices. When FALSE, inidicates that data from the Mobile Threat Defense partner should not be used during Mobile Application Management (MAM) evaluations for IOS devices. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation. Default value is FALSE. public bool? IosMobileApplicationManagementEnabled { get { return BackingStore?.Get("iosMobileApplicationManagementEnabled"); } set { BackingStore?.Set("iosMobileApplicationManagementEnabled", value); } } - /// DateTime of last Heartbeat recieved from the Data Sync Partner + /// DateTime of last Heartbeat recieved from the Mobile Threat Defense partner public DateTimeOffset? LastHeartbeatDateTime { get { return BackingStore?.Get("lastHeartbeatDateTime"); } set { BackingStore?.Set("lastHeartbeatDateTime", value); } } - /// For Mac, get or set whether Intune must receive data from the data sync partner prior to marking a device compliant + /// For Mac, get or set whether Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant public bool? MacDeviceBlockedOnMissingPartnerData { get { return BackingStore?.Get("macDeviceBlockedOnMissingPartnerData"); } set { BackingStore?.Set("macDeviceBlockedOnMissingPartnerData", value); } } - /// For Mac, get or set whether data from the data sync partner should be used during compliance evaluations + /// For Mac, get or set whether data from the Mobile Threat Defense partner should be used during compliance evaluations public bool? MacEnabled { get { return BackingStore?.Get("macEnabled"); } set { BackingStore?.Set("macEnabled", value); } @@ -78,17 +78,17 @@ public int? PartnerUnresponsivenessThresholdInDays { get { return BackingStore?.Get("partnerUnresponsivenessThresholdInDays"); } set { BackingStore?.Set("partnerUnresponsivenessThresholdInDays", value); } } - /// Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Data Sync Partner + /// Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Mobile Threat Defense partner public bool? PartnerUnsupportedOsVersionBlocked { get { return BackingStore?.Get("partnerUnsupportedOsVersionBlocked"); } set { BackingStore?.Set("partnerUnsupportedOsVersionBlocked", value); } } - /// When TRUE, inidicates that Intune must receive data from the data sync partner prior to marking a device compliant for Windows. When FALSE, inidicates that Intune may make a device compliant without receiving data from the data sync partner for Windows. Default value is FALSE. + /// When TRUE, inidicates that Intune must receive data from the Mobile Threat Defense partner prior to marking a device compliant for Windows. When FALSE, inidicates that Intune may make a device compliant without receiving data from the Mobile Threat Defense partner for Windows. Default value is FALSE. public bool? WindowsDeviceBlockedOnMissingPartnerData { get { return BackingStore?.Get("windowsDeviceBlockedOnMissingPartnerData"); } set { BackingStore?.Set("windowsDeviceBlockedOnMissingPartnerData", value); } } - /// When TRUE, inidicates that data from the data sync partner can be used during compliance evaluations for Windows. When FALSE, inidicates that data from the data sync partner should not be used during compliance evaluations for Windows. Default value is FALSE. + /// When TRUE, inidicates that data from the Mobile Threat Defense partner can be used during compliance evaluations for Windows. When FALSE, inidicates that data from the Mobile Threat Defense partner should not be used during compliance evaluations for Windows. Default value is FALSE. public bool? WindowsEnabled { get { return BackingStore?.Get("windowsEnabled"); } set { BackingStore?.Set("windowsEnabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index 54f689cb8be..7a7fb73d329 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -20,7 +20,12 @@ public OnlineMeetingPresenters? AllowedPresenters { get { return BackingStore?.Get("allowedPresenters"); } set { BackingStore?.Set("allowedPresenters", value); } } - /// The allowParticipantsToChangeName property + /// Specifies the mode of meeting chat. + public MeetingChatMode? AllowMeetingChat { + get { return BackingStore?.Get("allowMeetingChat"); } + set { BackingStore?.Set("allowMeetingChat", value); } + } + /// Specifies if participants are allowed to rename themselves in an instance of the meeting. public bool? AllowParticipantsToChangeName { get { return BackingStore?.Get("allowParticipantsToChangeName"); } set { BackingStore?.Set("allowParticipantsToChangeName", value); } @@ -403,6 +408,7 @@ public WatermarkProtectionValues WatermarkProtection { {"allowAttendeeToEnableCamera", n => { AllowAttendeeToEnableCamera = n.GetBoolValue(); } }, {"allowAttendeeToEnableMic", n => { AllowAttendeeToEnableMic = n.GetBoolValue(); } }, {"allowedPresenters", n => { AllowedPresenters = n.GetEnumValue(); } }, + {"allowMeetingChat", n => { AllowMeetingChat = n.GetEnumValue(); } }, {"allowParticipantsToChangeName", n => { AllowParticipantsToChangeName = n.GetBoolValue(); } }, {"allowTeamworkReactions", n => { AllowTeamworkReactions = n.GetBoolValue(); } }, {"alternativeRecording", n => { AlternativeRecording = n.GetByteArrayValue(); } }, @@ -447,6 +453,7 @@ public WatermarkProtectionValues WatermarkProtection { writer.WriteBoolValue("allowAttendeeToEnableCamera", AllowAttendeeToEnableCamera); writer.WriteBoolValue("allowAttendeeToEnableMic", AllowAttendeeToEnableMic); writer.WriteEnumValue("allowedPresenters", AllowedPresenters); + writer.WriteEnumValue("allowMeetingChat", AllowMeetingChat); writer.WriteBoolValue("allowParticipantsToChangeName", AllowParticipantsToChangeName); writer.WriteBoolValue("allowTeamworkReactions", AllowTeamworkReactions); writer.WriteByteArrayValue("alternativeRecording", AlternativeRecording); diff --git a/src/Microsoft.Graph/Generated/Models/OutlookTask.cs b/src/Microsoft.Graph/Generated/Models/OutlookTask.cs index 949eb0d7cf0..e4659096c97 100644 --- a/src/Microsoft.Graph/Generated/Models/OutlookTask.cs +++ b/src/Microsoft.Graph/Generated/Models/OutlookTask.cs @@ -213,7 +213,7 @@ public string Subject { } #endif /// - /// Instantiates a new OutlookTask and sets the default values. + /// Instantiates a new outlookTask and sets the default values. /// public OutlookTask() : base() { OdataType = "#microsoft.graph.outlookTask"; diff --git a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs index fd922bf404f..3412906bb14 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs @@ -242,6 +242,20 @@ public AlertStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } + /// The systemTags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SystemTags { + get { return BackingStore?.Get?>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#nullable restore +#else + public List SystemTags { + get { return BackingStore?.Get>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#endif /// The Azure Active Directory tenant the alert was created in. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -335,6 +349,7 @@ public string Title { {"serviceSource", n => { ServiceSource = n.GetEnumValue(); } }, {"severity", n => { Severity = n.GetEnumValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, + {"systemTags", n => { SystemTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, {"threatDisplayName", n => { ThreatDisplayName = n.GetStringValue(); } }, {"threatFamilyName", n => { ThreatFamilyName = n.GetStringValue(); } }, @@ -372,6 +387,7 @@ public string Title { writer.WriteEnumValue("serviceSource", ServiceSource); writer.WriteEnumValue("severity", Severity); writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfPrimitiveValues("systemTags", SystemTags); writer.WriteStringValue("tenantId", TenantId); writer.WriteStringValue("threatDisplayName", ThreatDisplayName); writer.WriteStringValue("threatFamilyName", ThreatFamilyName); diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs index bdb30aeac9f..4bbb3618c6d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs @@ -34,7 +34,7 @@ public EdiscoveryIndexOperation LastIndexOperation { } #endif /// - /// Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. + /// Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. /// public EdiscoveryNoncustodialDataSource() : base() { OdataType = "#microsoft.graph.security.ediscoveryNoncustodialDataSource"; diff --git a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs index 16732636f9c..3967e5d797d 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs @@ -70,6 +70,20 @@ public List CustomTags { get { return BackingStore?.Get>("customTags"); } set { BackingStore?.Set("customTags", value); } } +#endif + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } #endif /// Specifies the determination of the incident. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. public AlertDetermination? Determination { @@ -109,6 +123,34 @@ public DateTimeOffset? LastUpdateDateTime { get { return BackingStore?.Get("lastUpdateDateTime"); } set { BackingStore?.Set("lastUpdateDateTime", value); } } + /// The recommendedActions property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RecommendedActions { + get { return BackingStore?.Get("recommendedActions"); } + set { BackingStore?.Set("recommendedActions", value); } + } +#nullable restore +#else + public string RecommendedActions { + get { return BackingStore?.Get("recommendedActions"); } + set { BackingStore?.Set("recommendedActions", value); } + } +#endif + /// The recommendedHuntingQueries property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RecommendedHuntingQueries { + get { return BackingStore?.Get?>("recommendedHuntingQueries"); } + set { BackingStore?.Set("recommendedHuntingQueries", value); } + } +#nullable restore +#else + public List RecommendedHuntingQueries { + get { return BackingStore?.Get>("recommendedHuntingQueries"); } + set { BackingStore?.Set("recommendedHuntingQueries", value); } + } +#endif /// Only populated in case an incident is grouped together with another incident, as part of the logic that processes incidents. In such a case, the status property is redirected. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -133,6 +175,20 @@ public IncidentStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } + /// The systemTags property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SystemTags { + get { return BackingStore?.Get?>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#nullable restore +#else + public List SystemTags { + get { return BackingStore?.Get>("systemTags"); } + set { BackingStore?.Set("systemTags", value); } + } +#endif /// The Azure Active Directory tenant in which the alert was created. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -166,13 +222,17 @@ public string TenantId { {"comments", n => { Comments = n.GetCollectionOfObjectValues(AlertComment.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"customTags", n => { CustomTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"description", n => { Description = n.GetStringValue(); } }, {"determination", n => { Determination = n.GetEnumValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"incidentWebUrl", n => { IncidentWebUrl = n.GetStringValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetDateTimeOffsetValue(); } }, + {"recommendedActions", n => { RecommendedActions = n.GetStringValue(); } }, + {"recommendedHuntingQueries", n => { RecommendedHuntingQueries = n.GetCollectionOfObjectValues(RecommendedHuntingQuery.CreateFromDiscriminatorValue)?.ToList(); } }, {"redirectIncidentId", n => { RedirectIncidentId = n.GetStringValue(); } }, {"severity", n => { Severity = n.GetEnumValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, + {"systemTags", n => { SystemTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, }; } @@ -189,13 +249,17 @@ public string TenantId { writer.WriteCollectionOfObjectValues("comments", Comments); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteCollectionOfPrimitiveValues("customTags", CustomTags); + writer.WriteStringValue("description", Description); writer.WriteEnumValue("determination", Determination); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("incidentWebUrl", IncidentWebUrl); writer.WriteDateTimeOffsetValue("lastUpdateDateTime", LastUpdateDateTime); + writer.WriteStringValue("recommendedActions", RecommendedActions); + writer.WriteCollectionOfObjectValues("recommendedHuntingQueries", RecommendedHuntingQueries); writer.WriteStringValue("redirectIncidentId", RedirectIncidentId); writer.WriteEnumValue("severity", Severity); writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfPrimitiveValues("systemTags", SystemTags); writer.WriteStringValue("tenantId", TenantId); } } diff --git a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServicePostRequestBody.cs b/src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQuery.cs similarity index 56% rename from src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServicePostRequestBody.cs rename to src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQuery.cs index aabaa8c99c0..4da6af5a87a 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/ActivateService/ActivateServicePostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQuery.cs @@ -4,8 +4,8 @@ using System.Collections.Generic; using System.IO; using System.Linq; -namespace Microsoft.Graph.Beta.Organization.Item.ActivateService { - public class ActivateServicePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { +namespace Microsoft.Graph.Beta.Models.Security { + public class RecommendedHuntingQuery : 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"); } @@ -13,34 +13,38 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The service property + /// The kqlText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Service { - get { return BackingStore?.Get("service"); } - set { BackingStore?.Set("service", value); } + public string? KqlText { + get { return BackingStore?.Get("kqlText"); } + set { BackingStore?.Set("kqlText", value); } } #nullable restore #else - public string Service { - get { return BackingStore?.Get("service"); } - set { BackingStore?.Set("service", value); } + public string KqlText { + get { return BackingStore?.Get("kqlText"); } + set { BackingStore?.Set("kqlText", value); } } #endif - /// The servicePlanId property - public Guid? ServicePlanId { - get { return BackingStore?.Get("servicePlanId"); } - set { BackingStore?.Set("servicePlanId", 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); } } - /// The skuId property - public Guid? SkuId { - get { return BackingStore?.Get("skuId"); } - set { BackingStore?.Set("skuId", value); } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } } +#endif /// - /// Instantiates a new activateServicePostRequestBody and sets the default values. + /// Instantiates a new recommendedHuntingQuery and sets the default values. /// - public ActivateServicePostRequestBody() { + public RecommendedHuntingQuery() { BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); AdditionalData = new Dictionary(); } @@ -48,18 +52,17 @@ public ActivateServicePostRequestBody() { /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ActivateServicePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RecommendedHuntingQuery CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActivateServicePostRequestBody(); + return new RecommendedHuntingQuery(); } /// /// The deserialization information for the current model /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"service", n => { Service = n.GetStringValue(); } }, - {"servicePlanId", n => { ServicePlanId = n.GetGuidValue(); } }, - {"skuId", n => { SkuId = n.GetGuidValue(); } }, + {"kqlText", n => { KqlText = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// @@ -68,9 +71,8 @@ public IDictionary> GetFieldDeserializers() { /// Serialization writer to use to serialize this model public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("service", Service); - writer.WriteGuidValue("servicePlanId", ServicePlanId); - writer.WriteGuidValue("skuId", SkuId); + writer.WriteStringValue("kqlText", KqlText); + writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQueryCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQueryCollectionResponse.cs new file mode 100644 index 00000000000..090e236e639 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RecommendedHuntingQueryCollectionResponse.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Beta.Models.Security { + public class RecommendedHuntingQueryCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new RecommendedHuntingQueryCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RecommendedHuntingQueryCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(RecommendedHuntingQuery.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new 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/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index c67e3658462..55cbc3f839f 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -655,7 +655,7 @@ public string SignInAudience { set { BackingStore?.Set("signInAudience", value); } } #endif - /// The synchronization property + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Beta.Models.Synchronization? Synchronization { @@ -745,7 +745,7 @@ public Microsoft.Graph.Beta.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/SitePage.cs b/src/Microsoft.Graph/Generated/Models/SitePage.cs index a94b90c6f69..41581619253 100644 --- a/src/Microsoft.Graph/Generated/Models/SitePage.cs +++ b/src/Microsoft.Graph/Generated/Models/SitePage.cs @@ -138,7 +138,7 @@ public List WebParts { } #endif /// - /// Instantiates a new sitePage and sets the default values. + /// Instantiates a new SitePage and sets the default values. /// public SitePage() : base() { OdataType = "#microsoft.graph.sitePage"; diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs index 40628d7de1e..7342cbc4f3d 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs @@ -5,6 +5,20 @@ using System.Linq; namespace Microsoft.Graph.Beta.Models { public class SubjectRightsRequest : Entity, IParsable { + /// The approvers property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Approvers { + get { return BackingStore?.Get?>("approvers"); } + set { BackingStore?.Set("approvers", value); } + } +#nullable restore +#else + public List Approvers { + get { return BackingStore?.Get>("approvers"); } + set { BackingStore?.Set("approvers", value); } + } +#endif /// Identity that the request is assigned to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -24,6 +38,20 @@ public DateTimeOffset? ClosedDateTime { get { return BackingStore?.Get("closedDateTime"); } set { BackingStore?.Set("closedDateTime", value); } } + /// The collaborators property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Collaborators { + get { return BackingStore?.Get?>("collaborators"); } + set { BackingStore?.Set("collaborators", value); } + } +#nullable restore +#else + public List Collaborators { + get { return BackingStore?.Get>("collaborators"); } + set { BackingStore?.Set("collaborators", value); } + } +#endif /// KQL based content query that should be used for search. This property is defined only for APIs accessed using the /security query path and not the /privacy query path. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -292,8 +320,10 @@ public SubjectRightsRequestType? Type { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"approvers", n => { Approvers = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignedTo", n => { AssignedTo = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"closedDateTime", n => { ClosedDateTime = n.GetDateTimeOffsetValue(); } }, + {"collaborators", n => { Collaborators = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"contentQuery", n => { ContentQuery = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -327,8 +357,10 @@ public SubjectRightsRequestType? Type { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("approvers", Approvers); writer.WriteObjectValue("assignedTo", AssignedTo); writer.WriteDateTimeOffsetValue("closedDateTime", ClosedDateTime); + writer.WriteCollectionOfObjectValues("collaborators", Collaborators); writer.WriteStringValue("contentQuery", ContentQuery); writer.WriteObjectValue("createdBy", CreatedBy); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs index 768286519b4..23e8eff3cec 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs @@ -7,5 +7,6 @@ public enum SubjectRightsRequestStage { CaseResolved, ContentEstimate, UnknownFutureValue, + Approval, } } diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs index 8d3b11f4756..2e82dc0591f 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationError.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The code property + /// The error code. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Code { @@ -27,7 +27,7 @@ public string Code { set { BackingStore?.Set("code", value); } } #endif - /// The message property + /// The error message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Message { @@ -55,7 +55,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The tenantActionable property + /// The action to take to resolve the error. public bool? TenantActionable { get { return BackingStore?.Get("tenantActionable"); } set { BackingStore?.Set("tenantActionable", value); } diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 53f712b490c..ec909a3f021 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -1888,7 +1888,7 @@ public List WindowsInformationPr } #endif /// - /// Instantiates a new User and sets the default values. + /// Instantiates a new user and sets the default values. /// public User() : base() { OdataType = "#microsoft.graph.user"; diff --git a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeploymentProfile.cs b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeploymentProfile.cs index 56b740bf5a0..85f61161cdb 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeploymentProfile.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsAutopilotDeploymentProfile.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Windows Autopilot Deployment Profile - /// public class WindowsAutopilotDeploymentProfile : Entity, IParsable { /// The list of assigned devices for the profile. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/WindowsPhoneXAP.cs b/src/Microsoft.Graph/Generated/Models/WindowsPhoneXAP.cs index d0b77ad2b6d..3411bef1991 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsPhoneXAP.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsPhoneXAP.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Beta.Models { - /// - /// Contains properties and inherited properties for Windows Phone XAP Line Of Business apps. - /// public class WindowsPhoneXAP : MobileLobApp, IParsable { /// The identity version. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,7 +48,7 @@ public string ProductIdentifier { } #endif /// - /// Instantiates a new windowsPhoneXAP and sets the default values. + /// Instantiates a new WindowsPhoneXAP and sets the default values. /// public WindowsPhoneXAP() : base() { OdataType = "#microsoft.graph.windowsPhoneXAP"; diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs index b22971460c2..168881edc39 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/ConnectorGroupsRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConnectorGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new connectorGroup. - /// Find more info here + /// Create a connectorGroup object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new connectorGroup. + /// Create a connectorGroup object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index 72bd38cae1c..1f44501334f 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -1,6 +1,5 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Graph.Beta.Organization.Item.ActivateService; using Microsoft.Graph.Beta.Organization.Item.Branding; using Microsoft.Graph.Beta.Organization.Item.CertificateBasedAuthConfiguration; using Microsoft.Graph.Beta.Organization.Item.CheckMemberGroups; @@ -24,10 +23,6 @@ namespace Microsoft.Graph.Beta.Organization.Item { /// Provides operations to manage the collection of organization entities. /// public class OrganizationItemRequestBuilder { - /// Provides operations to call the activateService method. - public ActivateServiceRequestBuilder ActivateService { get => - new ActivateServiceRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the branding property of the microsoft.graph.organization entity. public BrandingRequestBuilder Branding { get => new BrandingRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs index 09d1e4c1eeb..d73983270fa 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs @@ -87,8 +87,8 @@ public async Task GetAsync(Action(requestInfo, CrossTenantIdentitySyncPolicyPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the user synchronization policy of a partner-specific configuration. - /// Find more info here + /// Create a cross-tenant user synchronization policy for a partner-specific configuration. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -159,7 +159,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the user synchronization policy of a partner-specific configuration. + /// Create a cross-tenant user synchronization policy for a partner-specific configuration. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs new file mode 100644 index 00000000000..096d3a27579 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -0,0 +1,189 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers.Count; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class ApproversRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get approvers from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApproversRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get approvers from privacy + /// + public class ApproversRequestBuilderGetQueryParameters { + /// 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 ApproversRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApproversRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApproversRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new approversRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApproversRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..930e7beb929 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -0,0 +1,137 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// 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) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..6d892ddd784 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -0,0 +1,138 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers.Item { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get approvers from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = 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.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get approvers from privacy + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs new file mode 100644 index 00000000000..192dae5f330 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -0,0 +1,189 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators.Count; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class CollaboratorsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get collaborators from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CollaboratorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get collaborators from privacy + /// + public class CollaboratorsRequestBuilderGetQueryParameters { + /// 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 CollaboratorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CollaboratorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CollaboratorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new collaboratorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CollaboratorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f7aafe0f238 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -0,0 +1,137 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// 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) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..35c05515032 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -0,0 +1,138 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators.Item { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get collaborators from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = 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.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get collaborators from privacy + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index e289944e0c5..84407343a10 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -1,5 +1,7 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Approvers; +using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Collaborators; using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.GetFinalAttachment; using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.GetFinalReport; using Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item.Notes; @@ -17,6 +19,14 @@ namespace Microsoft.Graph.Beta.Privacy.SubjectRightsRequests.Item { /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity. /// public class SubjectRightsRequestItemRequestBuilder { + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + public ApproversRequestBuilder Approvers { get => + new ApproversRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + public CollaboratorsRequestBuilder Collaborators { get => + new CollaboratorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getFinalAttachment method. public GetFinalAttachmentRequestBuilder GetFinalAttachment { get => new GetFinalAttachmentRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/RoleManagement/CloudPC/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/CloudPC/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 7014da06ee4..4e2318748d4 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/CloudPC/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/CloudPC/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -59,8 +59,8 @@ public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt RequestAdapter = requestAdapter; } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. - /// Find more info here + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -101,7 +101,7 @@ public async Task PostAsync(UnifiedRoleAssignment return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentMultiple.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +155,7 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentMultiple return requestInfo; } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/RoleManagement/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RoleManagement/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 94ac9f389e2..2b0b97aafd7 100644 --- a/src/Microsoft.Graph/Generated/RoleManagement/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RoleManagement/DeviceManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -59,8 +59,8 @@ public RoleAssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt RequestAdapter = requestAdapter; } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. - /// Find more info here + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -101,7 +101,7 @@ public async Task PostAsync(UnifiedRoleAssignment return await RequestAdapter.SendAsync(requestInfo, UnifiedRoleAssignmentMultiple.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +155,7 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignmentMultiple return requestInfo; } /// - /// Get the properties and relationships of a unifiedRoleAssignmentMultiple object of an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. + /// Get a list of unifiedRoleAssignmentMultiple objects for an RBAC provider. The following RBAC providers are currently supported:- Cloud PC - device management (Intune) For other Microsoft 365 applications (like Azure AD), use unifiedRoleAssignment. /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs index 12ee1bf0670..47cfe5fc8c7 100644 --- a/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AttackSimulation/Simulations/SimulationsRequestBuilder.cs @@ -80,7 +80,7 @@ public async Task GetAsync(Action /// Create an attack simulation campaign for a tenant. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs new file mode 100644 index 00000000000..9373455a1f3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -0,0 +1,189 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers.Count; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class ApproversRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get approvers from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApproversRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get approvers from security + /// + public class ApproversRequestBuilderGetQueryParameters { + /// 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 ApproversRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApproversRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApproversRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new approversRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApproversRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0f4c4d97297 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -0,0 +1,137 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// 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) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..5310a70a466 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -0,0 +1,138 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers.Item { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get approvers from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get approvers from security + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs new file mode 100644 index 00000000000..d0b56bf01c3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -0,0 +1,189 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators.Count; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class CollaboratorsRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get collaborators from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CollaboratorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get collaborators from security + /// + public class CollaboratorsRequestBuilderGetQueryParameters { + /// 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 CollaboratorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CollaboratorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CollaboratorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new collaboratorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CollaboratorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9c1903fbb8e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -0,0 +1,137 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// 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) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// 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/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..ee9d0df5e29 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -0,0 +1,138 @@ +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators.Item { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Get collaborators from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get collaborators from security + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index 126ef204b1a..c1bbe57a649 100644 --- a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -1,5 +1,7 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Approvers; +using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Collaborators; using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.GetFinalAttachment; using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.GetFinalReport; using Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item.Notes; @@ -17,6 +19,14 @@ namespace Microsoft.Graph.Beta.Security.SubjectRightsRequests.Item { /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. /// public class SubjectRightsRequestItemRequestBuilder { + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + public ApproversRequestBuilder Approvers { get => + new ApproversRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + public CollaboratorsRequestBuilder Collaborators { get => + new CollaboratorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getFinalAttachment method. public GetFinalAttachmentRequestBuilder GetFinalAttachment { get => new GetFinalAttachmentRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs index 9df07512868..d0d9ee183df 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/Jobs/Item/ProvisionOnDemand/ProvisionOnDemandRequestBuilder.cs @@ -48,7 +48,7 @@ public ProvisionOnDemandRequestBuilder(string rawUrl, IRequestAdapter requestAda } /// /// Select a user and provision the account on-demand. The rate limit for this API is 5 requests per 10 seconds. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs index 27cfb63953f..21745186425 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Synchronization/SynchronizationRequestBuilder.cs @@ -91,7 +91,7 @@ public async Task DeleteAsync(Action - /// Get synchronization from servicePrincipals + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get synchronization from servicePrincipals + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -225,7 +225,7 @@ public SynchronizationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get synchronization from servicePrincipals + /// Represents the capability for Azure Active Directory (Azure AD) identity synchronization through the Microsoft Graph API. /// public class SynchronizationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index 9306ac800cf..25609f320da 100644 --- a/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -66,6 +66,11 @@ public string Scope { set { BackingStore?.Set("scope", value); } } #endif + /// The sendNotification property + public bool? SendNotification { + get { return BackingStore?.Get("sendNotification"); } + set { BackingStore?.Set("sendNotification", value); } + } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -105,6 +110,7 @@ public IDictionary> GetFieldDeserializers() { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -119,6 +125,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index b13bfad091c..449840b82d9 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -66,6 +66,11 @@ public string Scope { set { BackingStore?.Set("scope", value); } } #endif + /// The sendNotification property + public bool? SendNotification { + get { return BackingStore?.Get("sendNotification"); } + set { BackingStore?.Set("sendNotification", value); } + } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -105,6 +110,7 @@ public IDictionary> GetFieldDeserializers() { {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -119,6 +125,7 @@ public void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index 9bc4fdee474..a4bc1de3c65 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -74,8 +74,8 @@ public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// 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 + /// 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 /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -94,7 +94,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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. + /// 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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. + /// 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. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index cbdcd5f72b0..79a517a1bc4 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 6179badbf3f..167b991c5d5 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 76c13219bd4..47d6a765348 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 08eb0730afd..19fee5bdb7d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/TeamItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs index 70c1f69ddc6..bfdb3f093e2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/TeamItemRequestBuilder.cs @@ -166,7 +166,7 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of the specified team. + /// Get entity from teams by key /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -232,7 +232,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of the specified team. + /// Get entity from teams by key /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -302,7 +302,7 @@ public TeamItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of the specified team. + /// Get entity from teams by key /// public class TeamItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs index e7e2c84e058..721db7d5e74 100644 --- a/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/TeamsRequestBuilder.cs @@ -49,7 +49,7 @@ public TeamItemRequestBuilder this[string position] { get { public TeamsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/teams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + UrlTemplate = "{+baseurl}/teams"; var urlTplParams = new Dictionary(pathParameters); PathParameters = urlTplParams; RequestAdapter = requestAdapter; @@ -62,33 +62,13 @@ public TeamsRequestBuilder(Dictionary pathParameters, IRequestAd public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); - UrlTemplate = "{+baseurl}/teams{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"; + UrlTemplate = "{+baseurl}/teams"; var urlTplParams = new Dictionary(); if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); PathParameters = urlTplParams; RequestAdapter = requestAdapter; } /// - /// List all teams in an organization. - /// Find more info here - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, TeamCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); - } - /// /// Create a new team. /// Find more info here /// @@ -111,32 +91,6 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// List all teams in an organization. - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation { - HttpMethod = Method.GET, - UrlTemplate = UrlTemplate, - PathParameters = PathParameters, - }; - requestInfo.Headers.Add("Accept", "application/json"); - if (requestConfiguration != null) { - var requestConfig = new TeamsRequestBuilderGetRequestConfiguration(); - requestConfiguration.Invoke(requestConfig); - requestInfo.AddQueryParameters(requestConfig.QueryParameters); - requestInfo.AddRequestOptions(requestConfig.Options); - requestInfo.AddHeaders(requestConfig.Headers); - } - return requestInfo; - } - /// /// Create a new team. /// /// The request body @@ -165,88 +119,6 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.T return requestInfo; } /// - /// List all teams in an organization. - /// - public class TeamsRequestBuilderGetQueryParameters { - /// 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 TeamsRequestBuilderGetRequestConfiguration { - /// Request headers - public RequestHeaders Headers { get; set; } - /// Request options - public IList Options { get; set; } - /// Request query parameters - public TeamsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TeamsRequestBuilderGetQueryParameters(); - /// - /// Instantiates a new teamsRequestBuilderGetRequestConfiguration and sets the default values. - /// - public TeamsRequestBuilderGetRequestConfiguration() { - Options = new List(); - Headers = new RequestHeaders(); - } - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// public class TeamsRequestBuilderPostRequestConfiguration { diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index f393f0dee06..30852df01b5 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index ba3beedfc00..d63ab2cbb41 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the specified channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 64599015455..0b39af66549 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,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 channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel or a chat. + /// Send a new chatMessage in the 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/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs deleted file mode 100644 index f2a9fffb2d2..00000000000 --- a/src/Microsoft.Graph/Generated/Users/Item/ActivateServicePlan/ActivateServicePlanPostRequestBody.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -namespace Microsoft.Graph.Beta.Users.Item.ActivateServicePlan { - public class ActivateServicePlanPostRequestBody : 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 servicePlanId property - public Guid? ServicePlanId { - get { return BackingStore?.Get("servicePlanId"); } - set { BackingStore?.Set("servicePlanId", value); } - } - /// The skuId property - public Guid? SkuId { - get { return BackingStore?.Get("skuId"); } - set { BackingStore?.Set("skuId", value); } - } - /// - /// Instantiates a new activateServicePlanPostRequestBody and sets the default values. - /// - public ActivateServicePlanPostRequestBody() { - 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 ActivateServicePlanPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActivateServicePlanPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - public IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"servicePlanId", n => { ServicePlanId = n.GetGuidValue(); } }, - {"skuId", n => { SkuId = n.GetGuidValue(); } }, - }; - } - /// - /// 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.WriteGuidValue("servicePlanId", ServicePlanId); - writer.WriteGuidValue("skuId", SkuId); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 2531d6eda9b..e49555146fa 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index fd65798b110..f83ce96580b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index ef76db82dd0..cae414d3714 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 08082697b38..92e776dc5a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index bc3e9da879d..be8f55dd0ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 71f024553f2..e4677af254a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 5c2097aa9f1..105f5f7203d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 369b41be705..c623e53ffcc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 5f98ae07781..cd3b6aa6b89 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 12bd7608d36..6f47db14883 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 439c60eb517..04e285a5d23 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index ed95df2f689..397a7bf61c5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 4ab25e2f800..f187c0a06dd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index eed8f874af3..aa2a2003a6e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 0d2188c6596..4a76ffcb203 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 7c215974a34..b44ae445be0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8cd116f867b..7d54019e1a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 98d2d541f78..72b8ea470fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 99ab21e2f2b..05a3ee313f0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 025f37b0e94..1a827ea649e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index ee4e74f6f83..6baf1906605 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 3319c13a492..b913218b459 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 7c1c441ee48..1dc5061cc14 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 27e8885916a..8427f65e2cf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 2597d6601a8..39822dba553 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 584e6fc97fd..144c5ffedbb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8e6682b7361..3337ed0232f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 452972a7834..fd9e5040061 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 41a2b7cdb0e..fca4bb896ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 94f9d29b974..c168ac1bf54 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index b77697c9eb5..5cfb85f05f6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 6afb4a46275..54d9c560f0e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 85818e93cba..0455d4db843 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 596660b249d..4ec9b4dff73 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8e41e767673..68bf15491a4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/CloudPCItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/CloudPCItemRequestBuilder.cs index 9af955c6fa2..afde923e86e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/CloudPCItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/CloudPCItemRequestBuilder.cs @@ -11,6 +11,8 @@ using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Reprovision; using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Restore; using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.RetryPartnerAgentInstallation; +using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Start; +using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Stop; using Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Troubleshoot; using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Serialization; @@ -73,6 +75,14 @@ public class CloudPCItemRequestBuilder { public RetryPartnerAgentInstallationRequestBuilder RetryPartnerAgentInstallation { get => new RetryPartnerAgentInstallationRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the start method. + public StartRequestBuilder Start { get => + new StartRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the stop method. + public StopRequestBuilder Stop { get => + new StopRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the troubleshoot method. public TroubleshootRequestBuilder Troubleshoot { get => new TroubleshootRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Start/StartRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Start/StartRequestBuilder.cs new file mode 100644 index 00000000000..2f5b6cf062c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Start/StartRequestBuilder.cs @@ -0,0 +1,108 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Start { + /// + /// Provides operations to call the start method. + /// + public class StartRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new StartRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StartRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/start"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new StartRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StartRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/start"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action start + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action start + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new StartRequestBuilderPostRequestConfiguration(); + 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 StartRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new startRequestBuilderPostRequestConfiguration and sets the default values. + /// + public StartRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Stop/StopRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..00db32a2d14 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudPCs/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,108 @@ +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Beta.Users.Item.CloudPCs.Item.Stop { + /// + /// Provides operations to call the stop method. + /// + public class StopRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new StopRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/stop"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new StopRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/{cloudPC%2Did}/stop"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke action stop + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action stop + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new StopRequestBuilderPostRequestConfiguration(); + 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 StopRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new stopRequestBuilderPostRequestConfiguration and sets the default values. + /// + public StopRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 5684092a5e7..ee404a2b4a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index ba5a5467b41..a83689e94b7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f5b0f6b101f..93eee33ab58 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index fa9b7fcc222..0eff6ed93d1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index c13385bf135..eb8800abeac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 4c9b405f0d8..e3a7028b398 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index a1e4ce2aa49..a9861f364bc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs index f7c671ff78c..48b0904a09c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/DeviceHealthScriptStatesRequestBuilder.cs @@ -72,6 +72,27 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyStateCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Create new navigation property to deviceHealthScriptStates for users + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(DeviceHealthScriptPolicyState body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +119,34 @@ public RequestInformation ToGetRequestInformation(Action + /// Create new navigation property to deviceHealthScriptStates for users + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DeviceHealthScriptPolicyState 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 DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity. /// /// Property in multi-part unique identifier of deviceHealthScriptPolicyState @@ -191,5 +240,21 @@ public DeviceHealthScriptStatesRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new deviceHealthScriptStatesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public DeviceHealthScriptStatesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs index 66bb87ca7d6..4d64d9624ab 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ManagedDevices/Item/DeviceHealthScriptStates/WithIdWithPolicyIdWithDeviceId/WithIdWithPolicyIdWithDeviceIdRequestBuilder.cs @@ -53,6 +53,25 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapt RequestAdapter = requestAdapter; } /// + /// Delete navigation property deviceHealthScriptStates for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Cancellation token to use when cancelling requests @@ -72,6 +91,51 @@ public async Task GetAsync(Action(requestInfo, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// + /// Update the navigation property deviceHealthScriptStates in users + /// + /// Contains properties for policy run state of the device health script. + /// Cancellation token to use when cancelling requests + /// Configuration for 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DeviceHealthScriptPolicyState 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, DeviceHealthScriptPolicyState.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property deviceHealthScriptStates for users + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -98,6 +162,50 @@ public RequestInformation ToGetRequestInformation(Action + /// Update the navigation property deviceHealthScriptStates in users + /// + /// Contains properties for policy run state of the device health script. + /// Configuration 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(DeviceHealthScriptPolicyState body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DeviceHealthScriptPolicyState 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration(); + 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 WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// /// Results of device health scripts that ran for this device. Default is empty list. This property is read-only. /// public class WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters { @@ -140,5 +248,21 @@ public WithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration() { Headers = new RequestHeaders(); } } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public WithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 42be82cae50..daa027aff05 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a new message that is being drafted, or created and sent on the fly. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 63455ae0022..2dc18e3bdb1 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 @@ -47,7 +47,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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 2dbf4db6754..fd1f6f8f2d9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -64,8 +64,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: - /// Find more info here + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the 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 /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -160,7 +160,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.M return requestInfo; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. You can filter on the messages and get only those that include a mention of the signed-in user. See an example below. By default, the `GET /me/messages` operation does not return the **mentions** property. Use the `$expand` query parameter to find details of each mention in a message. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index f09f23565a0..881e3d2d322 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) RequestAdapter = requestAdapter; } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,8 +72,8 @@ public async Task DeleteAsync(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. - /// Find more info here + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -208,7 +208,7 @@ public RegistrationRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get the externalMeetingRegistration details associated with an onlineMeeting. + /// Get the meetingRegistration details associated with an onlineMeeting on behalf of the organizer. /// public class RegistrationRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 332af194027..deafdb6a38c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -1,6 +1,5 @@ using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Graph.Beta.Users.Item.ActivateServicePlan; using Microsoft.Graph.Beta.Users.Item.Activities; using Microsoft.Graph.Beta.Users.Item.AgreementAcceptances; using Microsoft.Graph.Beta.Users.Item.Analytics; @@ -112,10 +111,6 @@ namespace Microsoft.Graph.Beta.Users.Item { /// Provides operations to manage the collection of user entities. /// public class UserItemRequestBuilder { - /// Provides operations to call the activateServicePlan method. - public ActivateServicePlanRequestBuilder ActivateServicePlan { get => - new ActivateServicePlanRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the activities property of the microsoft.graph.user entity. public ActivitiesRequestBuilder Activities { get => new ActivitiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 0c53df07b67..194d5f2dfe3 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "7951D8C8A6FEF37EBF318D6B8C703E626000FBF231A64A6EF2EF834E52E02B4E97EE8DFEF6CB9714D5C10F97A885321710F1D3371F5248C2FC632DC3182C530C", + "descriptionHash": "9A36FC93BA2C3B398ED35E679B9A80DDB2F42713B0F0AE383790F23B704B8D9BDE4C926B0871C88821F619876462A0B37C5014C1811165F79E8A1E4D4602DD38", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "0.11.1-preview", + "kiotaVersion": "1.0.1", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph.Beta", "language": "CSharp",