From 4c46fcf110ad1786176e187d43699509d4fcf485 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 30 Jan 2024 11:27:20 +0000 Subject: [PATCH 1/2] Update generated files with build 132469 --- .../ResourceConnectionItemRequestBuilder.cs | 6 +- .../Item/UpdatableAssetItemRequestBuilder.cs | 14 +- .../ComplianceChangeItemRequestBuilder.cs | 6 +- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 60 ++++- .../RegistrationRequestBuilder.cs | 8 +- .../Count/CountRequestBuilder.cs | 104 ++++++++ .../DashboardCardsRequestBuilder.cs | 203 +++++++++++++++ ...shboardCardDefinitionItemRequestBuilder.cs | 192 ++++++++++++++ .../TeamsAppDefinitionItemRequestBuilder.cs | 5 + .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Owners/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Owners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 8 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredOwners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredUsers/Ref/RefRequestBuilder.cs | 61 ++++- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 60 ++++- .../AppliesTo/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AppliesTo/Ref/RefRequestBuilder.cs | 63 ++++- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 61 ++++- .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Workbook/Tables/Add/AddRequestBuilder.cs | 6 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Workbook/Tables/TablesRequestBuilder.cs | 2 +- .../Item/Points/PointsRequestBuilder.cs | 8 +- .../Points/PointsRequestBuilder.cs | 8 +- .../Item/Tables/Add/AddRequestBuilder.cs | 6 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Categories/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Categories/Ref/RefRequestBuilder.cs | 60 ++++- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 61 ++++- .../Teachers/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Teachers/Ref/RefRequestBuilder.cs | 61 ++++- .../Categories/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Categories/Ref/RefRequestBuilder.cs | 60 ++++- .../Classes/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Classes/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Users/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Users/Ref/RefRequestBuilder.cs | 61 ++++- .../Categories/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Categories/Ref/RefRequestBuilder.cs | 60 ++++- .../Item/EducationUserItemRequestBuilder.cs | 6 +- .../DataConnectorsRequestBuilder.cs | 14 +- ...IndustryDataConnectorItemRequestBuilder.cs | 6 +- .../InboundFlowsRequestBuilder.cs | 14 +- .../Item/InboundFlowItemRequestBuilder.cs | 8 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../AcceptedSenders/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/ConversationItemRequestBuilder.cs | 14 +- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Owners/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Owners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RejectedSenders/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationThreadItemRequestBuilder.cs | 14 +- .../Attributes/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Attributes/Ref/RefRequestBuilder.cs | 60 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 60 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 63 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 60 ++++- .../ConditionalAccessRequestBuilder.cs | 170 +------------ .../Item/NamedLocationItemRequestBuilder.cs | 14 +- .../Identity/IdentityRequestBuilder.cs | 2 +- .../Item/Resume/ResumeRequestBuilder.cs | 4 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Resume/ResumeRequestBuilder.cs | 4 +- ...ustomCalloutExtensionItemRequestBuilder.cs | 8 +- ...kageWorkflowExtensionItemRequestBuilder.cs | 6 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../AssignmentRequestsRequestBuilder.cs | 222 +++++++++++++++++ .../Count/CountRequestBuilder.cs | 107 ++++++++ .../FilterByCurrentUserWithOnGetResponse.cs | 50 ++++ ...FilterByCurrentUserWithOnRequestBuilder.cs | 158 ++++++++++++ .../FilterByCurrentUserWithOnResponse.cs | 19 ++ .../AccessPackageRequestBuilder.cs | 108 ++++++++ .../AccessPackageAssignmentRequestBuilder.cs | 108 ++++++++ ...kageAssignmentRequestItemRequestBuilder.cs | 235 ++++++++++++++++++ .../Item/Cancel/CancelRequestBuilder.cs | 83 +++++++ .../Item/Reprocess/ReprocessRequestBuilder.cs | 82 ++++++ .../ConnectedOrganizationRequestBuilder.cs | 108 ++++++++ .../Item/Requestor/RequestorRequestBuilder.cs | 205 +++++++++++++++ .../Item/Resume/ResumePostRequestBody.cs | 97 ++++++++ .../Item/Resume/ResumeRequestBuilder.cs | 88 +++++++ .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../ExternalSponsors/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../InternalSponsors/Ref/RefRequestBuilder.cs | 61 ++++- .../EntitlementManagementRequestBuilder.cs | 5 + .../Item/AgreementItemRequestBuilder.cs | 8 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredOwners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredUsers/Ref/RefRequestBuilder.cs | 61 ++++- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MailFolderItemRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MessageItemRequestBuilder.cs | 8 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 2 +- .../RegistrationRequestBuilder.cs | 8 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../IncludedGroups/Ref/RefRequestBuilder.cs | 61 ++++- .../Models/AppliedConditionalAccessPolicy.cs | 2 +- ...rationChoiceSettingCollectionDefinition.cs | 4 +- ...ConfigurationReferredSettingInformation.cs | 2 +- ...anagementConfigurationSettingDefinition.cs | 14 +- ...mentConfigurationSettingGroupDefinition.cs | 2 +- ...entConfigurationSimpleSettingDefinition.cs | 8 +- ...nfigurationStringSettingValueDefinition.cs | 6 +- .../Generated/Models/EducationSubmission.cs | 8 +- .../Generated/Models/EntitlementManagement.cs | 18 +- .../Generated/Models/Entity.cs | 2 + .../Models/MacOsLobAppAssignmentSettings.cs | 2 +- .../Models/Networkaccess/AccessType.cs | 13 + .../Generated/Models/Networkaccess/Alert.cs | 86 +++++++ .../Models/Networkaccess/AlertAction.cs | 96 +++++++ .../Models/Networkaccess/AlertType.cs | 21 ++ .../Networkaccess/ApplicationSnapshot.cs | 80 ++++++ .../Models/Networkaccess/ConnectionStatus.cs | 15 ++ .../Networkaccess/NetworkAccessTraffic.cs | 32 +++ .../Networkaccess/PrivateAccessDetails.cs | 142 +++++++++++ .../Models/RelyingPartyDetailedSummary.cs | 6 +- .../Models/Security/AuditLogQuery.cs | 22 +- .../Models/Security/AuditLogRecord.cs | 24 +- .../TeamsAppDashboardCardBotConfiguration.cs | 80 ++++++ .../TeamsAppDashboardCardContentSource.cs | 87 +++++++ .../Models/TeamsAppDashboardCardDefinition.cs | 120 +++++++++ ...shboardCardDefinitionCollectionResponse.cs | 49 ++++ .../Models/TeamsAppDashboardCardIcon.cs | 96 +++++++ .../Models/TeamsAppDashboardCardSize.cs | 13 + .../Models/TeamsAppDashboardCardSourceType.cs | 11 + .../Generated/Models/TeamsAppDefinition.cs | 16 ++ .../Models/WindowsUpdates/ExpediteSettings.cs | 2 +- .../WindowsUpdates/UserExperienceSettings.cs | 2 +- .../AgentGroups/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AgentGroups/Ref/RefRequestBuilder.cs | 60 ++++- .../AgentGroups/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AgentGroups/Ref/RefRequestBuilder.cs | 60 ++++- .../AgentGroups/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AgentGroups/Ref/RefRequestBuilder.cs | 60 ++++- .../Members/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Members/Ref/RefRequestBuilder.cs | 60 ++++- .../MemberOf/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/MemberOf/Ref/RefRequestBuilder.cs | 60 ++++- .../AgentGroups/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AgentGroups/Ref/RefRequestBuilder.cs | 60 ++++- .../AppliesTo/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/AppliesTo/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../IncludedGroups/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../IncludedGroups/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../AllowedGroups/Ref/RefRequestBuilder.cs | 63 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../AllowedUsers/Ref/RefRequestBuilder.cs | 63 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../AllowedGroups/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../AllowedUsers/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/SchemaExtensionItemRequestBuilder.cs | 4 +- .../Item/AuditLogRecordItemRequestBuilder.cs | 6 +- .../Item/Records/RecordsRequestBuilder.cs | 6 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Owners/Item/Ref/RefRequestBuilder.cs | 29 +-- .../Item/Owners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../Generated/Sites/SitesRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredOwners/Ref/RefRequestBuilder.cs | 61 ++++- .../Item/Ref/RefRequestBuilder.cs | 29 +-- .../RegisteredUsers/Ref/RefRequestBuilder.cs | 61 ++++- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MailFolderItemRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Attachments/AttachmentsRequestBuilder.cs | 14 +- .../Item/MessageItemRequestBuilder.cs | 8 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 2 +- .../RegistrationRequestBuilder.cs | 8 +- src/Microsoft.Graph/Generated/kiota-lock.json | 2 +- 231 files changed, 6896 insertions(+), 1728 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignment/AccessPackageAssignmentRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/ConnectedOrganization/ConnectedOrganizationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/AccessType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/AlertAction.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/ApplicationSnapshot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/ConnectionStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/PrivateAccessDetails.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinitionCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSize.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSourceType.cs diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs index 7495cb785d4..7110a04856b 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ResourceConnectionItemRequestBuilder(Dictionary pathParam public ResourceConnectionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/windows/updates/resourceConnections/{resourceConnection%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an operationalInsightsConnection object. - /// Find more info here + /// Delete a resourceConnection object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,7 +90,7 @@ public async Task PatchAsync(ResourceConnection body, Action return await RequestAdapter.SendAsync(requestInfo, ResourceConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an operationalInsightsConnection object. + /// Delete a resourceConnection object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs index 9c07d33d709..f42e0bde919 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs @@ -49,8 +49,8 @@ public UpdatableAssetItemRequestBuilder(Dictionary pathParameter public UpdatableAssetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. - /// Find more info here + /// Delete an updatableAsset object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an updatableAssetGroup object. - /// Find more info here + /// Read the properties of an azureADDevice object. + /// 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 PatchAsync(UpdatableAsset body, Action(requestInfo, UpdatableAsset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + /// Delete an updatableAsset object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an updatableAssetGroup object. + /// Read the properties of an azureADDevice object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,7 +174,7 @@ public UpdatableAssetItemRequestBuilder WithUrl(string rawUrl) { public class UpdatableAssetItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of an updatableAssetGroup object. + /// Read the properties of an azureADDevice object. /// public class UpdatableAssetItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs index f66ef8eacaf..a68c34cc526 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs @@ -34,8 +34,8 @@ public ComplianceChangeItemRequestBuilder(Dictionary pathParamet public ComplianceChangeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/windows/updates/updatePolicies/{updatePolicy%2Did}/complianceChanges/{complianceChange%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a complianceChange object. - /// Find more info here + /// Delete a contentApproval object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task PatchAsync(ComplianceChange body, Action(requestInfo, ComplianceChange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a complianceChange object. + /// Delete a contentApproval object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index 7cee9f0f362..a9e2f32096f 100644 --- a/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property members for administrativeUnits @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property members for administrativeUnits - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs index 84570cac82f..2551e066d9c 100644 --- a/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property members for administrativeUnits + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users and groups that are members of this administrative unit. Supports $expand. @@ -70,6 +89,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property members for administrativeUnits + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +147,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property members for administrativeUnits + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { 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 00125f69b46..c5b9bfcb6f8 100644 --- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -59,8 +59,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. @@ -117,7 +117,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 @@ -165,7 +165,7 @@ public RegistrationRequestBuilder WithUrl(string rawUrl) { public class RegistrationRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// 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/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ec9b4e833ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Count/CountRequestBuilder.cs @@ -0,0 +1,104 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs new file mode 100644 index 00000000000..2860a592982 --- /dev/null +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards.Count; +using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards { + /// + /// Provides operations to manage the dashboardCards property of the microsoft.graph.teamsAppDefinition entity. + /// + public class DashboardCardsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the dashboardCards property of the microsoft.graph.teamsAppDefinition entity. + /// The unique identifier of teamsAppDashboardCardDefinition + public TeamsAppDashboardCardDefinitionItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("teamsAppDashboardCardDefinition%2Did", position); + return new TeamsAppDashboardCardDefinitionItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new DashboardCardsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DashboardCardsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new DashboardCardsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DashboardCardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get dashboardCards from appCatalogs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TeamsAppDashboardCardDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to dashboardCards for appCatalogs + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for 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(TeamsAppDashboardCardDefinition body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(TeamsAppDashboardCardDefinition body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get dashboardCards from appCatalogs + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to dashboardCards for appCatalogs + /// + /// 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(TeamsAppDashboardCardDefinition body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(TeamsAppDashboardCardDefinition body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public DashboardCardsRequestBuilder WithUrl(string rawUrl) { + return new DashboardCardsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get dashboardCards from appCatalogs + /// + public class DashboardCardsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DashboardCardsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DashboardCardsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs new file mode 100644 index 00000000000..e82e7c720b1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs @@ -0,0 +1,192 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards.Item { + /// + /// Provides operations to manage the dashboardCards property of the microsoft.graph.teamsAppDefinition entity. + /// + public class TeamsAppDashboardCardDefinitionItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TeamsAppDashboardCardDefinitionItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TeamsAppDashboardCardDefinitionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards/{teamsAppDashboardCardDefinition%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TeamsAppDashboardCardDefinitionItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TeamsAppDashboardCardDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards/{teamsAppDashboardCardDefinition%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property dashboardCards for appCatalogs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get dashboardCards from appCatalogs + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property dashboardCards in appCatalogs + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for 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(TeamsAppDashboardCardDefinition body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(TeamsAppDashboardCardDefinition 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, TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property dashboardCards for appCatalogs + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get dashboardCards from appCatalogs + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property dashboardCards in appCatalogs + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(TeamsAppDashboardCardDefinition body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(TeamsAppDashboardCardDefinition body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TeamsAppDashboardCardDefinitionItemRequestBuilder WithUrl(string rawUrl) { + return new TeamsAppDashboardCardDefinitionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class TeamsAppDashboardCardDefinitionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get dashboardCards from appCatalogs + /// + public class TeamsAppDashboardCardDefinitionItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class TeamsAppDashboardCardDefinitionItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class TeamsAppDashboardCardDefinitionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs index f1b91452292..5eb13b405c7 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/TeamsAppDefinitionItemRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.Bot; using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.ColorIcon; +using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.DashboardCards; using Microsoft.Graph.Beta.AppCatalogs.TeamsApps.Item.AppDefinitions.Item.OutlineIcon; using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; @@ -25,6 +26,10 @@ public class TeamsAppDefinitionItemRequestBuilder : BaseRequestBuilder { public ColorIconRequestBuilder ColorIcon { get => new ColorIconRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the dashboardCards property of the microsoft.graph.teamsAppDefinition entity. + public DashboardCardsRequestBuilder DashboardCards { get => + new DashboardCardsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the outlineIcon property of the microsoft.graph.teamsAppDefinition entity. public OutlineIconRequestBuilder OutlineIcon { get => new OutlineIconRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs index a65fbf0608d..c75db27c068 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", rawUrl) { } /// /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs index 7682b5de37d..4fba397b387 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The appManagementPolicy applied to this application. @@ -70,6 +90,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The appManagementPolicy applied to this application. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +148,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The appManagementPolicy applied to this application. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs index bfa5d58651c..834a4326085 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs index e9fcf6d36f6..af440909f28 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs index d232a61a363..53df3c2c647 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", rawUrl) { } /// /// Remove a tokenIssuancePolicy from an application. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenIssuancePolicy from an application. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs index 87abe80288f..53e3d181031 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a tokenIssuancePolicy from an application. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the tokenIssuancePolicy objects that are assigned to an application. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a tokenIssuancePolicy from an application. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the tokenIssuancePolicy objects that are assigned to an application. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a tokenIssuancePolicy from an application. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the tokenIssuancePolicy objects that are assigned to an application. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs index 17091a94767..8ed1671494a 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", rawUrl) { } /// /// Remove a tokenLifetimePolicy from an application or servicePrincipal. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenLifetimePolicy from an application or servicePrincipal. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs index b4bbbbd41e0..5bc874c09ae 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a tokenLifetimePolicy from an application or servicePrincipal. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the tokenLifetimePolicy objects that are assigned to an application or servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a tokenLifetimePolicy from an application or servicePrincipal. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the tokenLifetimePolicy objects that are assigned to an application or servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a tokenLifetimePolicy from an application or servicePrincipal. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the tokenLifetimePolicy objects that are assigned to an application or servicePrincipal. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index f35e2300199..35496b9b075 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// 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 74b23e68f00..dacd3f3eba4 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -59,8 +59,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. @@ -117,7 +117,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 @@ -165,7 +165,7 @@ public RegistrationRequestBuilder WithUrl(string rawUrl) { public class RegistrationRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// 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/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index ef81fc1325f..6277c93c9af 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered owner of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered owner of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index c2e531b22f3..1570f06fd6d 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered owner of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered owner of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered owner of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index 7ae1b235143..c8b32171efb 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered user of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered user of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index ecba09a6fec..2a98eedc16e 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered user of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered user of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered user of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index a32ddcbc8cd..47442187f89 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property members for directory @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property members for directory - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs index 807572f742d..2bb9264ef0f 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property members for directory + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users and groups that are members of this administrative unit. Supports $expand. @@ -70,6 +89,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property members for directory + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +147,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property members for directory + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs index 1e801755b34..cf177ffcef9 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. @@ -36,10 +36,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r [Obsolete("Feature Rollout Policies have been grouped with other policies under /policies. The existing /directory/featureRolloutPolicies is deprecated and will stop returning data on 06/30/2021. Please use /policies/featureRolloutPolicies. as of 2021-01/DirectoryFeatureRolloutPolicies")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -55,10 +55,10 @@ public async Task DeleteAsync(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,25 +74,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs index 7f8bbb5813a..dc919f4b2bb 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs @@ -19,14 +19,35 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("Feature Rollout Policies have been grouped with other policies under /policies. The existing /directory/featureRolloutPolicies is deprecated and will stop returning data on 06/30/2021. Please use /policies/featureRolloutPolicies. as of 2021-01/DirectoryFeatureRolloutPolicies")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. @@ -72,6 +93,23 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("Feature Rollout Policies have been grouped with other policies under /policies. The existing /directory/featureRolloutPolicies is deprecated and will stop returning data on 06/30/2021. Please use /policies/featureRolloutPolicies. as of 2021-01/DirectoryFeatureRolloutPolicies")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,6 +155,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs index 06eeeef0964..1a24b0f3f1e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs index 993f40d3ad8..0df91ad9cff 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a member from a directoryRole. You can use both the object ID and template ID of the directoryRole with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Microsoft Entra admin center. For details, see Role template IDs. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { 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 03b3df928c8..4d27173f04a 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 @@ -53,7 +53,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// Retrieve a list of nameditem objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs index 7842391f227..13bea805c03 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Add/AddRequestBuilder.cs @@ -29,8 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/add", rawUrl) { } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - /// Find more info here + /// Use this API to create a new Table. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + /// Use this API to create a new Table. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index 0de1da2bd00..708a7534061 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -49,7 +49,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn 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/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 733113bac28..a01628171d5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn 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 ef62497a690..4777aa39e9c 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 @@ -49,7 +49,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// 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/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 e4093b7834c..187c9b19975 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -43,8 +43,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs index 0b9959ac44a..9aad10f47fd 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs @@ -29,8 +29,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -71,7 +71,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -113,7 +113,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs index bf4f680f448..560a9a6d940 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Add/AddRequestBuilder.cs @@ -29,8 +29,8 @@ public AddRequestBuilder(Dictionary pathParameters, IRequestAdap public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", rawUrl) { } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. - /// Find more info here + /// Use this API to create a new Table. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is thrown. + /// Use this API to create a new Table. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 9a0d15b21e2..1084c7b79de 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -49,7 +49,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn 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/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index e7449c28cb6..c3d03dc5257 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 986c567d95b..1f7b140dad4 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property categories for education @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property categories for education - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index e92c3b0a561..45fd520a443 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property categories for education + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -70,6 +89,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property categories for education + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +147,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property categories for education + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs index fce7dd26aaa..dc781a88023 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", rawUrl) { } /// /// Remove an educationUser from an educationClass. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationUser from an educationClass. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs index 8cfa4d9f2f9..f0b9b26f8ff 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an educationUser from an educationClass. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve the teachers and students for a class. Note that if the delegated token is used, members can only be seen by other members of the class. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an educationUser from an educationClass. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve the teachers and students for a class. Note that if the delegated token is used, members can only be seen by other members of the class. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an educationUser from an educationClass. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve the teachers and students for a class. Note that if the delegated token is used, members can only be seen by other members of the class. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs index 606e9d3b92c..fe0e7c463e7 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", rawUrl) { } /// /// Remove a teacher from an educationClass. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a teacher from an educationClass. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs index fab3b95153a..bf4410f1ecb 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a teacher from an educationClass. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a teacher from an educationClass. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a teacher from an educationClass. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 47c38f30cf1..4596e0d000c 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property categories for education @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property categories for education - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 2454aab3ee4..f72f72907f4 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property categories for education + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -70,6 +89,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property categories for education + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +147,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property categories for education + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs index 6270af66356..22a86ffa073 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", rawUrl) { } /// /// Delete a class from a school. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a class from a school. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs index 74f4ccfd8cf..5632b71ef65 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a class from a school. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of classes owned by a school. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a class from a school. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of classes owned by a school. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a class from a school. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of classes owned by a school. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs index f86d8e461e2..36d817e0547 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", rawUrl) { } /// /// Delete a user from a school. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a user from a school. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs index 01ba7abe0e6..6ed040a5f62 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a user from a school. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of users at a school. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a user from a school. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of users at a school. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a user from a school. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of users at a school. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index a7007c5962b..0e0627ed6b0 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property categories for education @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property categories for education - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 6429d23fbf5..09cb76e44f7 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property categories for education + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -70,6 +89,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property categories for education + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +147,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property categories for education + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all categories for an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs index ce939e2a60c..38b23142151 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs @@ -99,8 +99,8 @@ public async Task GetAsync(Action(requestInfo, EducationUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationuser object. - /// Find more info here + /// Update the relatedContact collection of an educationUser object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationuser object. + /// Update the relatedContact collection of an educationUser object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs index d71fcdca14f..d919618a8a3 100644 --- a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs @@ -42,8 +42,8 @@ public DataConnectorsRequestBuilder(Dictionary pathParameters, I public DataConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/industryData/dataConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the azureDataLakeConnector objects and their properties. - /// Find more info here + /// Get the industryDataConnector resources from the dataConnector navigation property. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, IndustryDataConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new industryDataConnector object. - /// Find more info here + /// Create a new azureDataLakeConnector object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(IndustryDataConnector body, A return await RequestAdapter.SendAsync(requestInfo, IndustryDataConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the azureDataLakeConnector objects and their properties. + /// Get the industryDataConnector resources from the dataConnector navigation property. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new industryDataConnector object. + /// Create a new azureDataLakeConnector object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DataConnectorsRequestBuilder WithUrl(string rawUrl) { return new DataConnectorsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the azureDataLakeConnector objects and their properties. + /// Get the industryDataConnector resources from the dataConnector navigation property. /// public class DataConnectorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs index 915c9744f2d..2fac26ab9e3 100644 --- a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, IndustryDataConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an azureDataLakeConnector object. - /// Find more info here + /// Update the properties of an industryDataConnector object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -133,7 +133,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an azureDataLakeConnector object. + /// Update the properties of an industryDataConnector object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/InboundFlowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/InboundFlowsRequestBuilder.cs index e3781236d75..fb88daf6b3a 100644 --- a/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/InboundFlowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/InboundFlowsRequestBuilder.cs @@ -42,8 +42,8 @@ public InboundFlowsRequestBuilder(Dictionary pathParameters, IRe public InboundFlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/external/industryData/inboundFlows{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of the inboundFileFlow objects and their properties. - /// Find more info here + /// Get a list of the inboundFlow objects and their properties. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, InboundFlowCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new inboundFileFlow object. The following prerequisite resources are required when you create an inboundFileFlow: - /// Find more info here + /// Create a new inboundFlow object. The following prerequisite resources are required when you create an inboundFlow: + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(InboundFlow body, Action(requestInfo, InboundFlow.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of the inboundFileFlow objects and their properties. + /// Get a list of the inboundFlow objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new inboundFileFlow object. The following prerequisite resources are required when you create an inboundFileFlow: + /// Create a new inboundFlow object. The following prerequisite resources are required when you create an inboundFlow: /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public InboundFlowsRequestBuilder WithUrl(string rawUrl) { return new InboundFlowsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of the inboundFileFlow objects and their properties. + /// Get a list of the inboundFlow objects and their properties. /// public class InboundFlowsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.cs index 45cbb231474..9050187e170 100644 --- a/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/IndustryData/InboundFlows/Item/InboundFlowItemRequestBuilder.cs @@ -59,8 +59,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an inboundFlow object. - /// Find more info here + /// Read the properties and relationships of an inboundFileFlow object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an inboundFlow object. + /// Read the properties and relationships of an inboundFileFlow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public InboundFlowItemRequestBuilder WithUrl(string rawUrl) { public class InboundFlowItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of an inboundFlow object. + /// Read the properties and relationships of an inboundFileFlow object. /// public class InboundFlowItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs index e0753739569..74b874468f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or group from the accepted-senders list of the specified group. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or group from the accepted-senders list of the specified group. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs index bbe2451cc29..5b51456149f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or group from the accepted-senders list of the specified group. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or group from the accepted-senders list of the specified group. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or group from the accepted-senders list of the specified group. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get a list of users or groups that are in the accepted-senders list for this group. Users in the accepted senders list can post to conversations of the group (identified in the GET request URL). Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 86fbe524150..8da375d66d5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -34,8 +34,8 @@ public ConversationItemRequestBuilder(Dictionary pathParameters, public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversation. - /// Find more info here + /// Delete a conversation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of conversation object. - /// Find more info here + /// Get a conversation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, Conversation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversation. + /// Delete a conversation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,7 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of conversation object. + /// Get a conversation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public ConversationItemRequestBuilder WithUrl(string rawUrl) { public class ConversationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties and relationships of conversation object. + /// Get a conversation object. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs index 53945a568bb..8fb15ea26a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs index 5682815e1f6..1550cff41e9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs index cb21262b64e..c6e38b22a17 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Use this API to remove an owner from a Microsoft 365 group or a security group through the owners navigation property. When owners are assigned to a group, the last owner (a user object) of the group cannot be removed. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Use this API to remove an owner from a Microsoft 365 group or a security group through the owners navigation property. When owners are assigned to a group, the last owner (a user object) of the group cannot be removed. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs index 3afe6036671..49008c3cbc5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Use this API to remove an owner from a Microsoft 365 group or a security group through the owners navigation property. When owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The owners of the group who can be users or service principals. Nullable. If this property isn't specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Use this API to remove an owner from a Microsoft 365 group or a security group through the owners navigation property. When owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The owners of the group who can be users or service principals. Nullable. If this property isn't specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Use this API to remove an owner from a Microsoft 365 group or a security group through the owners navigation property. When owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The owners of the group who can be users or service principals. Nullable. If this property isn't specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs index 091abd1899d..5695e575834 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or group from the rejected-senders list of the specified group. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or group from the rejected-senders list of the specified group. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs index 6bc4a7ea546..0771028cd96 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or group from the rejected-senders list of the specified group. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or group from the rejected-senders list of the specified group. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or group from the rejected-senders list of the specified group. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get a list of users or groups that are in the rejected-senders list for this group. Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index 3afc46f35e6..c757cb7311d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -93,8 +93,8 @@ public async Task DeleteAsync(Action - /// Return the metadata for a [list][]. - /// Find more info here + /// Get the list of richLongRunningOperations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Return the metadata for a [list][]. + /// Get the list of richLongRunningOperations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -198,7 +198,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Return the metadata for a [list][]. + /// Get the list of richLongRunningOperations associated with a list. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 0bb4d9076ac..60920de1336 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index e6752a53b97..3ea26a90649 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 55b5e0f4c35..e7e2dec12a4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 218d0863350..3271144b0f5 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 6f59cb6bea2..bd7e7a3c36e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -39,8 +39,8 @@ public ConversationThreadItemRequestBuilder(Dictionary pathParam public ConversationThreadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", rawUrl) { } /// - /// Delete conversationThread. - /// Find more info here + /// Delete a thread object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -59,8 +59,8 @@ public async Task DeleteAsync(Action - /// Get a thread object. - /// Find more info here + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// 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 PatchAsync(ConversationThread body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete conversationThread. + /// Delete a thread object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -165,7 +165,7 @@ public ConversationThreadItemRequestBuilder WithUrl(string rawUrl) { public class ConversationThreadItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class ConversationThreadItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Item/Ref/RefRequestBuilder.cs index 0220ac567f3..b2bb86fe41c 100644 --- a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/{identityUserFlowAttribute%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property attributes for identity @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property attributes for identity - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Ref/RefRequestBuilder.cs index ffe9b7e64be..684e230df26 100644 --- a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAttributeCollection/GraphOnAttributeCollectionExternalUsersSelfServiceSignUp/Attributes/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property attributes for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get ref of attributes from identity @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property attributes for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get ref of attributes from identity /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property attributes for identity + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get ref of attributes from identity /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Item/Ref/RefRequestBuilder.cs index d8dc0dd0caa..140d002c5ae 100644 --- a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/{identityProviderBase%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property identityProviders for identity @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property identityProviders for identity - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Ref/RefRequestBuilder.cs index 39fd7019d93..47c2d0169a2 100644 --- a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventsFlows/Item/GraphExternalUsersSelfServiceSignUpEventsFlow/OnAuthenticationMethodLoadStart/GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/IdentityProviders/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAuthenticationMethodLoadStart/graph.onAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property identityProviders for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get ref of identityProviders from identity @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property identityProviders for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get ref of identityProviders from identity /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property identityProviders for identity + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get ref of identityProviders from identity /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Item/Ref/RefRequestBuilder.cs index 84e42e54367..747ef912e19 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/{identityProvider%2Did}/$ref", rawUrl) { } /// /// Delete an identity provider from a b2cIdentityUserFlow object. For more information about identity providers available for user flows, see the identityProviders API reference. @@ -36,10 +36,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -55,10 +55,10 @@ public async Task DeleteAsync(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,25 +74,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete an identity provider from a b2cIdentityUserFlow object. For more information about identity providers available for user flows, see the identityProviders API reference. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Ref/RefRequestBuilder.cs index e3504065460..26aa58373b4 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2cUserFlows/Item/IdentityProviders/Ref/RefRequestBuilder.cs @@ -19,14 +19,35 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2cUserFlows/{b2cIdentityUserFlow%2Did}/identityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete an identity provider from a b2cIdentityUserFlow object. For more information about identity providers available for user flows, see the identityProviders API reference. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get the identity providers in a b2cIdentityUserFlow object. @@ -73,6 +94,23 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete an identity provider from a b2cIdentityUserFlow object. For more information about identity providers available for user flows, see the identityProviders API reference. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The identityProvider API is deprecated and will stop returning data on March 2023. Please use the new identityProviderBase API. as of 2021-05/identityProvider")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the identity providers in a b2cIdentityUserFlow object. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,6 +156,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete an identity provider from a b2cIdentityUserFlow object. For more information about identity providers available for user flows, see the identityProviders API reference. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the identity providers in a b2cIdentityUserFlow object. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs index f09e6107240..9557b2e12dc 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property userFlowIdentityProviders for identity @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property userFlowIdentityProviders for identity - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs index 1c77c2cd69b..2d5344bc36a 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get ref of userFlowIdentityProviders from identity @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get ref of userFlowIdentityProviders from identity /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get ref of userFlowIdentityProviders from identity /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs index e713cad46f7..6bb6543cdec 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/ConditionalAccessRequestBuilder.cs @@ -5,19 +5,15 @@ using Microsoft.Graph.Beta.Identity.ConditionalAccess.NamedLocations; using Microsoft.Graph.Beta.Identity.ConditionalAccess.Policies; using Microsoft.Graph.Beta.Identity.ConditionalAccess.Templates; -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Graph.Beta.Models; -using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using System.Threading; using System; namespace Microsoft.Graph.Beta.Identity.ConditionalAccess { /// - /// Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + /// Builds and executes requests for operations under \identity\conditionalAccess /// public class ConditionalAccessRequestBuilder : BaseRequestBuilder { /// Provides operations to manage the authenticationContextClassReferences property of the microsoft.graph.conditionalAccessRoot entity. @@ -49,174 +45,14 @@ public class ConditionalAccessRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConditionalAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess{?%24select,%24expand}", pathParameters) { + public ConditionalAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess", pathParameters) { } /// /// Instantiates a new ConditionalAccessRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConditionalAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess{?%24select,%24expand}", rawUrl) { - } - /// - /// Delete navigation property conditionalAccess for identity - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// the entry point for the Conditional Access (CA) object model. - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendAsync(requestInfo, ConditionalAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update the navigation property conditionalAccess in identity - /// - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(ConditionalAccessRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PatchAsync(ConditionalAccessRoot 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, ConditionalAccessRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property conditionalAccess for identity - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// the entry point for the Conditional Access (CA) object model. - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update the navigation property conditionalAccess in identity - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(ConditionalAccessRoot body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(ConditionalAccessRoot body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// The raw URL to use for the request builder. - public ConditionalAccessRequestBuilder WithUrl(string rawUrl) { - return new ConditionalAccessRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ConditionalAccessRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// the entry point for the Conditional Access (CA) object model. - /// - public class ConditionalAccessRequestBuilderGetQueryParameters { - /// Expand related entities -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24expand")] - public string[]? Expand { get; set; } -#nullable restore -#else - [QueryParameter("%24expand")] - public string[] Expand { get; set; } -#endif - /// Select properties to be returned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24select")] - public string[]? Select { get; set; } -#nullable restore -#else - [QueryParameter("%24select")] - public string[] Select { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ConditionalAccessRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ConditionalAccessRequestBuilderPatchRequestConfiguration : RequestConfiguration { + public ConditionalAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess", rawUrl) { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 8931492eb4f..e2f78afab7f 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a namedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of a countryNamedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ipNamedLocation object. - /// Find more info here + /// Update the properties of a countryNamedLocation object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +107,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of a countryNamedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ipNamedLocation object. + /// Update the properties of a countryNamedLocation object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public NamedLocationItemRequestBuilder WithUrl(string rawUrl) { public class NamedLocationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of a countryNamedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs index f4536135314..f54b09abbdb 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs @@ -45,7 +45,7 @@ public class IdentityRequestBuilder : BaseRequestBuilder { public B2xUserFlowsRequestBuilder B2xUserFlows { get => new B2xUserFlowsRequestBuilder(PathParameters, RequestAdapter); } - /// Provides operations to manage the conditionalAccess property of the microsoft.graph.identityContainer entity. + /// The conditionalAccess property public ConditionalAccessRequestBuilder ConditionalAccess { get => new ConditionalAccessRequestBuilder(PathParameters, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs index 2ceccbcf7cb..43400a0fde6 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public ResumeRequestBuilder(Dictionary pathParameters, IRequestA public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", rawUrl) { } /// - /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs index 216bea77c8c..22ad2f86211 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/{accessPackage%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/{accessPackage%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/{accessPackage%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/{accessPackage%2Did}/$ref", rawUrl) { } /// /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index d0e02b5e31d..e6f749559fc 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs index 81391d646bc..e65e4839b92 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/{group%2Did}/$ref", rawUrl) { } /// /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Ref/RefRequestBuilder.cs index 6ab0c2108d6..c969556deef 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackage/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs index 000c1d3a5de..3fea3d63013 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageAssignments/Item/AccessPackageAssignmentRequests/Item/Resume/ResumeRequestBuilder.cs @@ -28,7 +28,7 @@ public ResumeRequestBuilder(Dictionary pathParameters, IRequestA public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackageAssignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", rawUrl) { } /// - /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(ResumePostRequestBody body, Action - /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index fa8b4822959..7eb57793de8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// 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 RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] @@ -161,7 +161,7 @@ public CustomCalloutExtensionItemRequestBuilder WithUrl(string rawUrl) { public class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.cs index c34d9045868..5c78f8a45d7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/CustomAccessPackageWorkflowExtensions/Item/CustomAccessPackageWorkflowExtensionItemRequestBuilder.cs @@ -29,8 +29,8 @@ public CustomAccessPackageWorkflowExtensionItemRequestBuilder(Dictionary - /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. - /// Find more info here + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + /// 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 PatchAsync(CustomAccessP return await RequestAdapter.SendAsync(requestInfo, CustomAccessPackageWorkflowExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. + /// Delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. /// /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs index 0abba905c0d..36132c5ac1c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref", rawUrl) { } /// /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index 7b9c455dd72..ef0e641c488 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs index d2f6bb739fe..3656425a8d7 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref", rawUrl) { } /// /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index 2c086d5390a..99f89669a61 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs new file mode 100644 index 00000000000..5a0df58115c --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/AssignmentRequestsRequestBuilder.cs @@ -0,0 +1,222 @@ +// +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Count; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests { + /// + /// Provides operations to manage the assignmentRequests property of the microsoft.graph.entitlementManagement entity. + /// + public class AssignmentRequestsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the assignmentRequests property of the microsoft.graph.entitlementManagement entity. + /// The unique identifier of accessPackageAssignmentRequest + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageAssignmentRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageAssignmentRequest%2Did", position); + return new AccessPackageAssignmentRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new AssignmentRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AssignmentRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AssignmentRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AssignmentRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Provides operations to call the filterByCurrentUser method. + /// + /// Usage: on='{on}' + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn(string on) { + if(string.IsNullOrEmpty(on)) throw new ArgumentNullException(nameof(on)); + return new FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter, on); + } + /// + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AccessPackageAssignmentRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AccessPackageAssignmentRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// In Microsoft Entra Entitlement Management, create a new accessPackageAssignmentRequest object. This operation is used to assign a user to an access package, update the assignment, or to remove an access package assignment. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(AccessPackageAssignmentRequest body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AccessPackageAssignmentRequest body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AssignmentRequestsRequestBuilder WithUrl(string rawUrl) { + return new AssignmentRequestsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// In Microsoft Entra entitlement management, retrieve a list of accessPackageAssignmentRequest objects. The resulting list includes all the assignment requests, current and well as expired, that the caller has access to read, across all catalogs and access packages. + /// + public class AssignmentRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AssignmentRequestsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AssignmentRequestsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..904d8918a8d --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..4e475537988 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,50 @@ +// +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { + public class FilterByCurrentUserWithOnGetResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..f68970a78de --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,158 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { + /// + /// Provides operations to call the filterByCurrentUser method. + /// + public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// Usage: on='{on}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) { + if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on); + } + /// + /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponse instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function filterByCurrentUser + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) { + return new FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function filterByCurrentUser + /// + public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..3af8c4aa8da --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,19 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.FilterByCurrentUserWithOn { + [Obsolete("This class is obsolete. Use filterByCurrentUserWithOnGetResponse instead.")] + public class FilterByCurrentUserWithOnResponse : FilterByCurrentUserWithOnGetResponse, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new FilterByCurrentUserWithOnResponse(); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs new file mode 100644 index 00000000000..4e982c6455a --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackage/AccessPackageRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.AccessPackage { + /// + /// Provides operations to manage the accessPackage property of the microsoft.graph.accessPackageAssignmentRequest entity. + /// + public class AccessPackageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AccessPackageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackage{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AccessPackageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackage{?%24select,%24expand}", rawUrl) { + } + /// + /// The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = 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.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageRequestBuilder WithUrl(string rawUrl) { + return new AccessPackageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand. + /// + public class AccessPackageRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AccessPackageRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignment/AccessPackageAssignmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignment/AccessPackageAssignmentRequestBuilder.cs new file mode 100644 index 00000000000..e64acf20e8b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignment/AccessPackageAssignmentRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.AccessPackageAssignment { + /// + /// Provides operations to manage the accessPackageAssignment property of the microsoft.graph.accessPackageAssignmentRequest entity. + /// + public class AccessPackageAssignmentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AccessPackageAssignmentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageAssignmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackageAssignment{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AccessPackageAssignmentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageAssignmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/accessPackageAssignment{?%24select,%24expand}", rawUrl) { + } + /// + /// For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = 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.AccessPackageAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageAssignmentRequestBuilder WithUrl(string rawUrl) { + return new AccessPackageAssignmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand. + /// + public class AccessPackageAssignmentRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AccessPackageAssignmentRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..d417f057fd7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/AccessPackageAssignmentRequestItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.AccessPackage; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.AccessPackageAssignment; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Cancel; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Reprocess; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Requestor; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Resume; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item { + /// + /// Provides operations to manage the assignmentRequests property of the microsoft.graph.entitlementManagement entity. + /// + public class AccessPackageAssignmentRequestItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the accessPackage property of the microsoft.graph.accessPackageAssignmentRequest entity. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageRequestBuilder AccessPackage { get => + new AccessPackageRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the accessPackageAssignment property of the microsoft.graph.accessPackageAssignmentRequest entity. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageAssignmentRequestBuilder AccessPackageAssignment { get => + new AccessPackageAssignmentRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the cancel method. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public CancelRequestBuilder Cancel { get => + new CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the reprocess method. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ReprocessRequestBuilder Reprocess { get => + new ReprocessRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the requestor property of the microsoft.graph.accessPackageAssignmentRequest entity. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public RequestorRequestBuilder Requestor { get => + new RequestorRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the resume method. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ResumeRequestBuilder Resume { get => + new ResumeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new AccessPackageAssignmentRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageAssignmentRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AccessPackageAssignmentRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageAssignmentRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property assignmentRequests for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents access package assignment requests created by or on behalf of a user. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property assignmentRequests in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AccessPackageAssignmentRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AccessPackageAssignmentRequest 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, AccessPackageAssignmentRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property assignmentRequests for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents access package assignment requests created by or on behalf of a user. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property assignmentRequests in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(AccessPackageAssignmentRequest body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AccessPackageAssignmentRequest body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public AccessPackageAssignmentRequestItemRequestBuilder WithUrl(string rawUrl) { + return new AccessPackageAssignmentRequestItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AccessPackageAssignmentRequestItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Represents access package assignment requests created by or on behalf of a user. + /// + public class AccessPackageAssignmentRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AccessPackageAssignmentRequestItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AccessPackageAssignmentRequestItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..b4035839724 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,83 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Cancel { + /// + /// Provides operations to call the cancel method. + /// + public class CancelRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/cancel", pathParameters) { + } + /// + /// Instantiates a new CancelRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/cancel", rawUrl) { + } + /// + /// In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancelable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Microsoft Entra Entitlement Management, cancel accessPackageAssignmentRequest objects that are in a cancelable state: accepted, pendingApproval, pendingNotBefore, pendingApprovalEscalated. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#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(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public CancelRequestBuilder WithUrl(string rawUrl) { + return new CancelRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CancelRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs new file mode 100644 index 00000000000..637a269a85b --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Reprocess/ReprocessRequestBuilder.cs @@ -0,0 +1,82 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Reprocess { + /// + /// Provides operations to call the reprocess method. + /// + public class ReprocessRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ReprocessRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ReprocessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/reprocess", pathParameters) { + } + /// + /// Instantiates a new ReprocessRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReprocessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/reprocess", rawUrl) { + } + /// + /// Invoke action reprocess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action reprocess + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#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(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ReprocessRequestBuilder WithUrl(string rawUrl) { + return new ReprocessRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ReprocessRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/ConnectedOrganization/ConnectedOrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/ConnectedOrganization/ConnectedOrganizationRequestBuilder.cs new file mode 100644 index 00000000000..5b2c3dfb242 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/ConnectedOrganization/ConnectedOrganizationRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Requestor.ConnectedOrganization { + /// + /// Provides operations to manage the connectedOrganization property of the microsoft.graph.accessPackageSubject entity. + /// + public class ConnectedOrganizationRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ConnectedOrganizationRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ConnectedOrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor/connectedOrganization{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ConnectedOrganizationRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ConnectedOrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor/connectedOrganization{?%24select,%24expand}", rawUrl) { + } + /// + /// The connected organization of the subject. Read-only. Nullable. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = 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.ConnectedOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connected organization of the subject. Read-only. Nullable. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ConnectedOrganizationRequestBuilder WithUrl(string rawUrl) { + return new ConnectedOrganizationRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connected organization of the subject. Read-only. Nullable. + /// + public class ConnectedOrganizationRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ConnectedOrganizationRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs new file mode 100644 index 00000000000..73bba1dc842 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Requestor/RequestorRequestBuilder.cs @@ -0,0 +1,205 @@ +// +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Requestor.ConnectedOrganization; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Requestor { + /// + /// Provides operations to manage the requestor property of the microsoft.graph.accessPackageAssignmentRequest entity. + /// + public class RequestorRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the connectedOrganization property of the microsoft.graph.accessPackageSubject entity. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ConnectedOrganizationRequestBuilder ConnectedOrganization { get => + new ConnectedOrganizationRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new RequestorRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RequestorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new RequestorRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RequestorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/requestor{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property requestor for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = 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.AccessPackageSubject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property requestor in identityGovernance + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Beta.Models.AccessPackageSubject body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Beta.Models.AccessPackageSubject body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.AccessPackageSubject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property requestor for identityGovernance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property requestor in identityGovernance + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.AccessPackageSubject body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.AccessPackageSubject body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public RequestorRequestBuilder WithUrl(string rawUrl) { + return new RequestorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RequestorRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand. + /// + public class RequestorRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RequestorRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RequestorRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs new file mode 100644 index 00000000000..c050b17ac50 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumePostRequestBody.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Resume { + public class ResumePostRequestBody : 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 data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CustomExtensionData? Data { + get { return BackingStore?.Get("data"); } + set { BackingStore?.Set("data", value); } + } +#nullable restore +#else + public CustomExtensionData Data { + get { return BackingStore?.Get("data"); } + set { BackingStore?.Set("data", value); } + } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#nullable restore +#else + public string Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } +#nullable restore +#else + public string Type { + get { return BackingStore?.Get("type"); } + set { BackingStore?.Set("type", value); } + } +#endif + /// + /// Instantiates a new resumePostRequestBody and sets the default values. + /// + public ResumePostRequestBody() { + 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 ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ResumePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"data", n => { Data = n.GetObjectValue(CustomExtensionData.CreateFromDiscriminatorValue); } }, + {"source", n => { Source = n.GetStringValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("data", Data); + writer.WriteStringValue("source", Source); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs new file mode 100644 index 00000000000..5227cc10ffc --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentRequests/Item/Resume/ResumeRequestBuilder.cs @@ -0,0 +1,88 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests.Item.Resume { + /// + /// Provides operations to call the resume method. + /// + public class ResumeRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ResumeRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", pathParameters) { + } + /// + /// Instantiates a new ResumeRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/assignmentRequests/{accessPackageAssignmentRequest%2Did}/resume", rawUrl) { + } + /// + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(ResumePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(ResumePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ResumePostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete(" as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions")] + public ResumeRequestBuilder WithUrl(string rawUrl) { + return new ResumeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ResumeRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs index 744a927b506..bdf82c9bf51 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs index 3b99a00ee4e..6f340efdfea 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs index e4405e42087..1768ef9e92b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs index a50d2e54b1b..77d1b4e2a4c 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs index cd3bee0bd84..d7c9e4dff51 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs @@ -10,6 +10,7 @@ using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AccessPackageResourceRoleScopes; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AccessPackageResources; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AccessPackages; +using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.AssignmentRequests; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.ConnectedOrganizations; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.Settings; using Microsoft.Graph.Beta.IdentityGovernance.EntitlementManagement.Subjects; @@ -73,6 +74,10 @@ public class EntitlementManagementRequestBuilder : BaseRequestBuilder { public AccessPackagesRequestBuilder AccessPackages { get => new AccessPackagesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the assignmentRequests property of the microsoft.graph.entitlementManagement entity. + public AssignmentRequestsRequestBuilder AssignmentRequests { get => + new AssignmentRequestsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the connectedOrganizations property of the microsoft.graph.entitlementManagement entity. public ConnectedOrganizationsRequestBuilder ConnectedOrganizations { get => new ConnectedOrganizationsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs index cbc48699bb3..3eca606d193 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs @@ -64,8 +64,8 @@ public async Task DeleteAsync(Action - /// Retrieve all files related to an agreement. This includes the default file and all localized files. - /// Find more info here + /// Retrieve the properties and relationships of an agreement object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve all files related to an agreement. This includes the default file and all localized files. + /// Retrieve the properties and relationships of an agreement object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public AgreementItemRequestBuilder WithUrl(string rawUrl) { public class AgreementItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve all files related to an agreement. This includes the default file and all localized files. + /// Retrieve the properties and relationships of an agreement object. /// public class AgreementItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index f2457c43310..d8d99cc68a4 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index a2533f00b3e..6c6ce35763f 100644 --- a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered owner of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered owner of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index 41502bd8824..6fb614bfc79 100644 --- a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered owner of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered owner of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered owner of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index a562a4fe825..7c956ca82b7 100644 --- a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered user of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered user of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index f04120b09fe..bca248e4a5b 100644 --- a/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered user of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered user of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered user of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index c45b632220b..c95471a6fef 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index fc44c695a26..088f0efe2dd 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs index bb78f8c21ce..83d9900d5da 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -99,8 +99,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of mailFolder object. - /// Find more info here + /// Update the writable properties of a mailSearchFolder object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of mailFolder object. + /// Update the writable properties of a mailSearchFolder object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index df78d45ab08..94204506209 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 bf3f3a7ecfe..8d0c258ce9b 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 17f448c3a90..cfe03189280 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -130,7 +130,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -149,8 +149,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -203,7 +203,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// 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 da6203d8f40..0a8bddad5fe 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index c03b6d8bcec..3c833e97339 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 56e7969f07c..816d6d67da7 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -59,8 +59,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. @@ -117,7 +117,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 @@ -165,7 +165,7 @@ public RegistrationRequestBuilder WithUrl(string rawUrl) { public class RegistrationRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// 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/MobilityManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs index 5927fb18674..451161dd4db 100644 --- a/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Delete a group from the list of groups included in a mobile app management policy. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a group from the list of groups included in a mobile app management policy. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs index de94319ce88..be8dcbe3ce7 100644 --- a/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/MobilityManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/mobilityManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get the list of groups that are included in a mobile app management policy. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a group from the list of groups included in a mobile app management policy. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the list of groups that are included in a mobile app management policy. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the list of groups that are included in a mobile app management policy. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs index 2df6d1e5bb5..f955fe114a0 100644 --- a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs @@ -136,7 +136,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions weren't met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. + /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (this is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. public AppliedConditionalAccessPolicyResult? Result { get { return BackingStore?.Get("result"); } set { BackingStore?.Set("result", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.cs index 367650e4863..0f701b665c7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingCollectionDefinition.cs @@ -6,12 +6,12 @@ using System; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationChoiceSettingCollectionDefinition : DeviceManagementConfigurationChoiceSettingDefinition, IParsable { - /// Maximum number of choices in the collection. Valid values 1 to 100 + /// Maximum number of choices in the collection public int? MaximumCount { get { return BackingStore?.Get("maximumCount"); } set { BackingStore?.Set("maximumCount", value); } } - /// Minimum number of choices in the collection. Valid values 1 to 100 + /// Minimum number of choices in the collection public int? MinimumCount { get { return BackingStore?.Get("minimumCount"); } set { BackingStore?.Set("minimumCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs index 2f87a14f176..23b599b1257 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs @@ -31,7 +31,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Setting definition id that is being referred to a setting. Applicable for reusable setting. + /// Setting definition id that is being referred to a setting. Applicable for reusable setting #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SettingDefinitionId { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs index 8fe45210b42..ef500a8fa71 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs @@ -11,7 +11,7 @@ public DeviceManagementConfigurationSettingAccessTypes? AccessTypes { get { return BackingStore?.Get("accessTypes"); } set { BackingStore?.Set("accessTypes", value); } } - /// Details which device setting is applicable on. Supports: $filters. + /// Details which device setting is applicable on #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DeviceManagementConfigurationSettingApplicability? Applicability { @@ -39,7 +39,7 @@ public string BaseUri { set { BackingStore?.Set("baseUri", value); } } #endif - /// Specify category in which the setting is under. Support $filters. + /// Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CategoryId { @@ -53,7 +53,7 @@ public string CategoryId { set { BackingStore?.Set("categoryId", value); } } #endif - /// Description of the setting. + /// Description of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -67,7 +67,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// Name of the setting. For example: Allow Toast. + /// Display name of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -81,7 +81,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Help text of the setting. Give more details of the setting. + /// Help text of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? HelpText { @@ -95,7 +95,7 @@ public string HelpText { set { BackingStore?.Set("helpText", value); } } #endif - /// List of links more info for the setting can be found at. + /// List of links more info for the setting can be found at #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? InfoUrls { @@ -179,7 +179,7 @@ public List ReferredSet set { BackingStore?.Set("referredSettingInformationList", value); } } #endif - /// Root setting definition id if the setting is a child setting. + /// Root setting definition if the setting is a child setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RootDefinitionId { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.cs index 8ea73b38a15..71f68b622e0 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupDefinition.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationSettingGroupDefinition : DeviceManagementConfigurationSettingDefinition, IParsable { - /// Dependent child settings to this group of settings. + /// Dependent child settings to this group of settings #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ChildIds { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSimpleSettingDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSimpleSettingDefinition.cs index 00ca9646ee6..df5c0893a6b 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSimpleSettingDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSimpleSettingDefinition.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationSimpleSettingDefinition : DeviceManagementConfigurationSettingDefinition, IParsable { - /// Default setting value for this setting + /// Default setting value for this setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DeviceManagementConfigurationSettingValue? DefaultValue { @@ -20,7 +20,7 @@ public DeviceManagementConfigurationSettingValue DefaultValue { set { BackingStore?.Set("defaultValue", value); } } #endif - /// list of child settings that depend on this setting + /// list of child settings that depend on this setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DependedOnBy { @@ -34,7 +34,7 @@ public List DependedOnBy { set { BackingStore?.Set("dependedOnBy", value); } } #endif - /// list of parent settings this setting is dependent on + /// list of parent settings this setting is dependent on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DependentOn { @@ -48,7 +48,7 @@ public List DependentOn { set { BackingStore?.Set("dependentOn", value); } } #endif - /// Definition of the value for this setting + /// Definition of the value for this setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DeviceManagementConfigurationSettingValueDefinition? ValueDefinition { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs index 0c7d70edb64..449443936ce 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs @@ -23,7 +23,7 @@ public List FileTypes { set { BackingStore?.Set("fileTypes", value); } } #endif - /// Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. + /// Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. public DeviceManagementConfigurationStringFormat? Format { get { return BackingStore?.Get("format"); } set { BackingStore?.Set("format", value); } @@ -47,12 +47,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/EducationSubmission.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs index ff14d8363dc..f24877ffdd0 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs @@ -53,7 +53,7 @@ public IdentitySet ReassignedBy { set { BackingStore?.Set("reassignedBy", value); } } #endif - /// Moment in time when the submission was reassigned. 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 + /// Moment in time when the submission was reassigned. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ReassignedDateTime { get { return BackingStore?.Get("reassignedDateTime"); } set { BackingStore?.Set("reassignedDateTime", value); } @@ -114,7 +114,7 @@ public IdentitySet ReturnedBy { set { BackingStore?.Set("returnedBy", value); } } #endif - /// Moment in time when the submission was returned. 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 + /// Moment in time when the submission was returned. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ReturnedDateTime { get { return BackingStore?.Get("returnedDateTime"); } set { BackingStore?.Set("returnedDateTime", value); } @@ -138,7 +138,7 @@ public IdentitySet SubmittedBy { set { BackingStore?.Set("submittedBy", value); } } #endif - /// Moment in time when the submission was moved into the submitted state. 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 + /// Moment in time when the submission was moved into the submitted state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? SubmittedDateTime { get { return BackingStore?.Get("submittedDateTime"); } set { BackingStore?.Set("submittedDateTime", value); } @@ -171,7 +171,7 @@ public IdentitySet UnsubmittedBy { set { BackingStore?.Set("unsubmittedBy", value); } } #endif - /// Moment in time when the submission was moved from submitted into the working state. 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 + /// Moment in time when the submission was moved from submitted into the working state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? UnsubmittedDateTime { get { return BackingStore?.Get("unsubmittedDateTime"); } set { BackingStore?.Set("unsubmittedDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs b/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs index e20c45baa34..1e0625fc949 100644 --- a/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs +++ b/src/Microsoft.Graph/Generated/Models/EntitlementManagement.cs @@ -34,7 +34,7 @@ public List AccessPackageAssignmentPolicies { set { BackingStore?.Set("accessPackageAssignmentPolicies", value); } } #endif - /// Represents access package assignment requests created by or on behalf of a user. + /// Represents access package assignment requests created by or on behalf of a user. DO NOT USE. TO BE RETIRED SOON. Use the assignmentRequests relationship instead. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AccessPackageAssignmentRequests { @@ -159,6 +159,20 @@ public List AccessPackages { get { return BackingStore?.Get>("accessPackages"); } set { BackingStore?.Set("accessPackages", value); } } +#endif + /// Represents access package assignment requests created by or on behalf of a user. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AssignmentRequests { + get { return BackingStore?.Get?>("assignmentRequests"); } + set { BackingStore?.Set("assignmentRequests", value); } + } +#nullable restore +#else + public List AssignmentRequests { + get { return BackingStore?.Get>("assignmentRequests"); } + set { BackingStore?.Set("assignmentRequests", value); } + } #endif /// Represents references to a directory or domain of another organization whose users can request access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -226,6 +240,7 @@ public override IDictionary> GetFieldDeserializers() {"accessPackageResourceRoleScopes", n => { AccessPackageResourceRoleScopes = n.GetCollectionOfObjectValues(AccessPackageResourceRoleScope.CreateFromDiscriminatorValue)?.ToList(); } }, {"accessPackageResources", n => { AccessPackageResources = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"accessPackages", n => { AccessPackages = n.GetCollectionOfObjectValues(AccessPackage.CreateFromDiscriminatorValue)?.ToList(); } }, + {"assignmentRequests", n => { AssignmentRequests = n.GetCollectionOfObjectValues(AccessPackageAssignmentRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"connectedOrganizations", n => { ConnectedOrganizations = n.GetCollectionOfObjectValues(ConnectedOrganization.CreateFromDiscriminatorValue)?.ToList(); } }, {"settings", n => { Settings = n.GetObjectValue(EntitlementManagementSettings.CreateFromDiscriminatorValue); } }, {"subjects", n => { Subjects = n.GetCollectionOfObjectValues(AccessPackageSubject.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -249,6 +264,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("accessPackageResourceRoleScopes", AccessPackageResourceRoleScopes); writer.WriteCollectionOfObjectValues("accessPackageResources", AccessPackageResources); writer.WriteCollectionOfObjectValues("accessPackages", AccessPackages); + writer.WriteCollectionOfObjectValues("assignmentRequests", AssignmentRequests); writer.WriteCollectionOfObjectValues("connectedOrganizations", ConnectedOrganizations); writer.WriteObjectValue("settings", Settings); writer.WriteCollectionOfObjectValues("subjects", Subjects); diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 6c4622e74e7..5d6f0d6f512 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -1087,6 +1087,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.muteParticipantsOperation" => new MuteParticipantsOperation(), "#microsoft.graph.namedLocation" => new NamedLocation(), "#microsoft.graph.ndesConnector" => new NdesConnector(), + "#microsoft.graph.networkaccess.alert" => new Microsoft.Graph.Beta.Models.Networkaccess.Alert(), "#microsoft.graph.networkaccess.branchSite" => new BranchSite(), "#microsoft.graph.networkaccess.conditionalAccessPolicy" => new Microsoft.Graph.Beta.Models.Networkaccess.ConditionalAccessPolicy(), "#microsoft.graph.networkaccess.conditionalAccessSettings" => new Microsoft.Graph.Beta.Models.Networkaccess.ConditionalAccessSettings(), @@ -1570,6 +1571,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.team" => new Team(), "#microsoft.graph.teamInfo" => new TeamInfo(), "#microsoft.graph.teamsApp" => new TeamsApp(), + "#microsoft.graph.teamsAppDashboardCardDefinition" => new TeamsAppDashboardCardDefinition(), "#microsoft.graph.teamsAppDefinition" => new TeamsAppDefinition(), "#microsoft.graph.teamsAppIcon" => new TeamsAppIcon(), "#microsoft.graph.teamsAppInstallation" => new TeamsAppInstallation(), diff --git a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs index fe2be2b30a0..d015e8f488d 100644 --- a/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MacOsLobAppAssignmentSettings.cs @@ -9,7 +9,7 @@ namespace Microsoft.Graph.Beta.Models { /// Contains properties used to assign a macOS LOB app to a group. /// public class MacOsLobAppAssignmentSettings : MobileAppAssignmentSettings, IParsable { - /// Whether or not to uninstall the app when device is removed from Intune. + /// When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. public bool? UninstallOnDeviceRemoval { get { return BackingStore?.Get("uninstallOnDeviceRemoval"); } set { BackingStore?.Set("uninstallOnDeviceRemoval", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/AccessType.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/AccessType.cs new file mode 100644 index 00000000000..363ca405212 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/AccessType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public enum AccessType { + [EnumMember(Value = "quickAccess")] + QuickAccess, + [EnumMember(Value = "privateAccess")] + PrivateAccess, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs new file mode 100644 index 00000000000..ad772ca11c7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs @@ -0,0 +1,86 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class Alert : Microsoft.Graph.Beta.Models.Entity, IParsable { + /// The actions property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Actions { + get { return BackingStore?.Get?>("actions"); } + set { BackingStore?.Set("actions", value); } + } +#nullable restore +#else + public List Actions { + get { return BackingStore?.Get>("actions"); } + set { BackingStore?.Set("actions", value); } + } +#endif + /// The alertType property + public Microsoft.Graph.Beta.Models.Networkaccess.AlertType? AlertType { + get { return BackingStore?.Get("alertType"); } + set { BackingStore?.Set("alertType", value); } + } + /// The creationDateTime property + public DateTimeOffset? CreationDateTime { + get { return BackingStore?.Get("creationDateTime"); } + set { BackingStore?.Set("creationDateTime", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The firstImpactedDateTime property + public DateTimeOffset? FirstImpactedDateTime { + get { return BackingStore?.Get("firstImpactedDateTime"); } + set { BackingStore?.Set("firstImpactedDateTime", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new Alert CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Alert(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"actions", n => { Actions = n.GetCollectionOfObjectValues(AlertAction.CreateFromDiscriminatorValue)?.ToList(); } }, + {"alertType", n => { AlertType = n.GetEnumValue(); } }, + {"creationDateTime", n => { CreationDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"firstImpactedDateTime", n => { FirstImpactedDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("actions", Actions); + writer.WriteEnumValue("alertType", AlertType); + writer.WriteDateTimeOffsetValue("creationDateTime", CreationDateTime); + writer.WriteStringValue("description", Description); + writer.WriteDateTimeOffsetValue("firstImpactedDateTime", FirstImpactedDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertAction.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertAction.cs new file mode 100644 index 00000000000..d873e26fe29 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertAction.cs @@ -0,0 +1,96 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class AlertAction : IAdditionalDataHolder, IBackedModel, IParsable { + /// The actionLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ActionLink { + get { return BackingStore?.Get("actionLink"); } + set { BackingStore?.Set("actionLink", value); } + } +#nullable restore +#else + public string ActionLink { + get { return BackingStore?.Get("actionLink"); } + set { BackingStore?.Set("actionLink", value); } + } +#endif + /// The actionText property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ActionText { + get { return BackingStore?.Get("actionText"); } + set { BackingStore?.Set("actionText", value); } + } +#nullable restore +#else + public string ActionText { + get { return BackingStore?.Get("actionText"); } + set { BackingStore?.Set("actionText", value); } + } +#endif + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new alertAction and sets the default values. + /// + public AlertAction() { + 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 AlertAction CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AlertAction(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"actionLink", n => { ActionLink = n.GetStringValue(); } }, + {"actionText", n => { ActionText = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("actionLink", ActionLink); + writer.WriteStringValue("actionText", ActionText); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs new file mode 100644 index 00000000000..a46e7699655 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs @@ -0,0 +1,21 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public enum AlertType { + [EnumMember(Value = "unhealthyRemoteNetworks")] + UnhealthyRemoteNetworks, + [EnumMember(Value = "unhealthyConnectors")] + UnhealthyConnectors, + [EnumMember(Value = "deviceTokenInconsistency")] + DeviceTokenInconsistency, + [EnumMember(Value = "crossTenantAnomaly")] + CrossTenantAnomaly, + [EnumMember(Value = "suspiciousProcess")] + SuspiciousProcess, + [EnumMember(Value = "threatIntelligenceTransactions")] + ThreatIntelligenceTransactions, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/ApplicationSnapshot.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/ApplicationSnapshot.cs new file mode 100644 index 00000000000..d3a563a4da0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/ApplicationSnapshot.cs @@ -0,0 +1,80 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class ApplicationSnapshot : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// The appId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AppId { + get { return BackingStore?.Get("appId"); } + set { BackingStore?.Set("appId", value); } + } +#nullable restore +#else + public string AppId { + get { return BackingStore?.Get("appId"); } + set { BackingStore?.Set("appId", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new applicationSnapshot and sets the default values. + /// + public ApplicationSnapshot() { + 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 ApplicationSnapshot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ApplicationSnapshot(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"appId", n => { AppId = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("appId", AppId); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/ConnectionStatus.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/ConnectionStatus.cs new file mode 100644 index 00000000000..7a76177712a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/ConnectionStatus.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public enum ConnectionStatus { + [EnumMember(Value = "open")] + Open, + [EnumMember(Value = "active")] + Active, + [EnumMember(Value = "closed")] + Closed, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessTraffic.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessTraffic.cs index b16e110315b..39bbf47dbf9 100644 --- a/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessTraffic.cs +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessTraffic.cs @@ -30,6 +30,20 @@ public string AgentVersion { get { return BackingStore?.Get("agentVersion"); } set { BackingStore?.Set("agentVersion", value); } } +#endif + /// The applicationSnapshot property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Beta.Models.Networkaccess.ApplicationSnapshot? ApplicationSnapshot { + get { return BackingStore?.Get("applicationSnapshot"); } + set { BackingStore?.Set("applicationSnapshot", value); } + } +#nullable restore +#else + public Microsoft.Graph.Beta.Models.Networkaccess.ApplicationSnapshot ApplicationSnapshot { + get { return BackingStore?.Get("applicationSnapshot"); } + set { BackingStore?.Set("applicationSnapshot", value); } + } #endif /// Stores model information. public IBackingStore BackingStore { get; private set; } @@ -276,6 +290,20 @@ public string PolicyRuleName { get { return BackingStore?.Get("policyRuleName"); } set { BackingStore?.Set("policyRuleName", value); } } +#endif + /// The privateAccessDetails property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Beta.Models.Networkaccess.PrivateAccessDetails? PrivateAccessDetails { + get { return BackingStore?.Get("privateAccessDetails"); } + set { BackingStore?.Set("privateAccessDetails", value); } + } +#nullable restore +#else + public Microsoft.Graph.Beta.Models.Networkaccess.PrivateAccessDetails PrivateAccessDetails { + get { return BackingStore?.Get("privateAccessDetails"); } + set { BackingStore?.Set("privateAccessDetails", value); } + } #endif /// Represents the total number of bytes received in a network communication or data transfer. Supports $filter (eq) and $orderby. public long? ReceivedBytes { @@ -422,6 +450,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"action", n => { Action = n.GetEnumValue(); } }, {"agentVersion", n => { AgentVersion = n.GetStringValue(); } }, + {"applicationSnapshot", n => { ApplicationSnapshot = n.GetObjectValue(Microsoft.Graph.Beta.Models.Networkaccess.ApplicationSnapshot.CreateFromDiscriminatorValue); } }, {"connectionId", n => { ConnectionId = n.GetStringValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"destinationFQDN", n => { DestinationFQDN = n.GetStringValue(); } }, @@ -442,6 +471,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"policyName", n => { PolicyName = n.GetStringValue(); } }, {"policyRuleId", n => { PolicyRuleId = n.GetStringValue(); } }, {"policyRuleName", n => { PolicyRuleName = n.GetStringValue(); } }, + {"privateAccessDetails", n => { PrivateAccessDetails = n.GetObjectValue(Microsoft.Graph.Beta.Models.Networkaccess.PrivateAccessDetails.CreateFromDiscriminatorValue); } }, {"receivedBytes", n => { ReceivedBytes = n.GetLongValue(); } }, {"resourceTenantId", n => { ResourceTenantId = n.GetStringValue(); } }, {"sentBytes", n => { SentBytes = n.GetLongValue(); } }, @@ -464,6 +494,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("action", Action); writer.WriteStringValue("agentVersion", AgentVersion); + writer.WriteObjectValue("applicationSnapshot", ApplicationSnapshot); writer.WriteStringValue("connectionId", ConnectionId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("destinationFQDN", DestinationFQDN); @@ -484,6 +515,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("policyName", PolicyName); writer.WriteStringValue("policyRuleId", PolicyRuleId); writer.WriteStringValue("policyRuleName", PolicyRuleName); + writer.WriteObjectValue("privateAccessDetails", PrivateAccessDetails); writer.WriteLongValue("receivedBytes", ReceivedBytes); writer.WriteStringValue("resourceTenantId", ResourceTenantId); writer.WriteLongValue("sentBytes", SentBytes); diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/PrivateAccessDetails.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/PrivateAccessDetails.cs new file mode 100644 index 00000000000..246f8763dbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/PrivateAccessDetails.cs @@ -0,0 +1,142 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class PrivateAccessDetails : IAdditionalDataHolder, IBackedModel, IParsable { + /// The accessType property + public Microsoft.Graph.Beta.Models.Networkaccess.AccessType? AccessType { + get { return BackingStore?.Get("accessType"); } + set { BackingStore?.Set("accessType", value); } + } + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The connectionStatus property + public Microsoft.Graph.Beta.Models.Networkaccess.ConnectionStatus? ConnectionStatus { + get { return BackingStore?.Get("connectionStatus"); } + set { BackingStore?.Set("connectionStatus", value); } + } + /// The connectorId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ConnectorId { + get { return BackingStore?.Get("connectorId"); } + set { BackingStore?.Set("connectorId", value); } + } +#nullable restore +#else + public string ConnectorId { + get { return BackingStore?.Get("connectorId"); } + set { BackingStore?.Set("connectorId", value); } + } +#endif + /// The connectorIp property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ConnectorIp { + get { return BackingStore?.Get("connectorIp"); } + set { BackingStore?.Set("connectorIp", value); } + } +#nullable restore +#else + public string ConnectorIp { + get { return BackingStore?.Get("connectorIp"); } + set { BackingStore?.Set("connectorIp", value); } + } +#endif + /// The connectorName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ConnectorName { + get { return BackingStore?.Get("connectorName"); } + set { BackingStore?.Set("connectorName", value); } + } +#nullable restore +#else + public string ConnectorName { + get { return BackingStore?.Get("connectorName"); } + set { BackingStore?.Set("connectorName", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The processingRegion property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ProcessingRegion { + get { return BackingStore?.Get("processingRegion"); } + set { BackingStore?.Set("processingRegion", value); } + } +#nullable restore +#else + public string ProcessingRegion { + get { return BackingStore?.Get("processingRegion"); } + set { BackingStore?.Set("processingRegion", value); } + } +#endif + /// + /// Instantiates a new privateAccessDetails and sets the default values. + /// + public PrivateAccessDetails() { + 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 PrivateAccessDetails CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PrivateAccessDetails(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"accessType", n => { AccessType = n.GetEnumValue(); } }, + {"connectionStatus", n => { ConnectionStatus = n.GetEnumValue(); } }, + {"connectorId", n => { ConnectorId = n.GetStringValue(); } }, + {"connectorIp", n => { ConnectorIp = n.GetStringValue(); } }, + {"connectorName", n => { ConnectorName = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"processingRegion", n => { ProcessingRegion = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("accessType", AccessType); + writer.WriteEnumValue("connectionStatus", ConnectionStatus); + writer.WriteStringValue("connectorId", ConnectorId); + writer.WriteStringValue("connectorIp", ConnectorIp); + writer.WriteStringValue("connectorName", ConnectorName); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("processingRegion", ProcessingRegion); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs b/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs index 67dd72a0bd7..9e727a190ec 100644 --- a/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs +++ b/src/Microsoft.Graph/Generated/Models/RelyingPartyDetailedSummary.cs @@ -30,7 +30,7 @@ public List MigrationValidationDetails { set { BackingStore?.Set("migrationValidationDetails", value); } } #endif - /// This identifier is used to identify the relying party to this Federation Service. It is used when issuing claims to the relying party. + /// This identifier is used to identify the relying party to this Federation Service. It's used when issuing claims to the relying party. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RelyingPartyId { @@ -44,7 +44,7 @@ public string RelyingPartyId { set { BackingStore?.Set("relyingPartyId", value); } } #endif - /// Name of application or other entity on the internet that uses an identity provider to authenticate a user who wants to log in. + /// Name of application or other entity on the internet that uses an identity provider to authenticate a user who wants to sign in. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RelyingPartyName { @@ -96,7 +96,7 @@ public long? SuccessfulSignInCount { get { return BackingStore?.Get("successfulSignInCount"); } set { BackingStore?.Set("successfulSignInCount", value); } } - /// Number of successful + failed sign ins failed sign ins on Active Directory Federation Service in the period specified. + /// Number of successful + failed sign ins on Active Directory Federation Service in the period specified. public long? TotalSignInCount { get { return BackingStore?.Get("totalSignInCount"); } set { BackingStore?.Set("totalSignInCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Security/AuditLogQuery.cs b/src/Microsoft.Graph/Generated/Models/Security/AuditLogQuery.cs index 76cb0b82378..bf2a6f18ee7 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AuditLogQuery.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AuditLogQuery.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models.Security { public class AuditLogQuery : Microsoft.Graph.Beta.Models.Entity, IParsable { - /// The administrativeUnitIdFilters property + /// The administrative units tagged to an audit log record. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AdministrativeUnitIdFilters { @@ -20,7 +20,7 @@ public List AdministrativeUnitIdFilters { set { BackingStore?.Set("administrativeUnitIdFilters", value); } } #endif - /// The displayName property + /// The display name of the saved audit log query. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -34,17 +34,17 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The filterEndDateTime property + /// The end date of the date range in the query. public DateTimeOffset? FilterEndDateTime { get { return BackingStore?.Get("filterEndDateTime"); } set { BackingStore?.Set("filterEndDateTime", value); } } - /// The filterStartDateTime property + /// The start date of the date range in the query. public DateTimeOffset? FilterStartDateTime { get { return BackingStore?.Get("filterStartDateTime"); } set { BackingStore?.Set("filterStartDateTime", value); } } - /// The ipAddressFilters property + /// The IP address of the device that was used when the activity was logged. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IpAddressFilters { @@ -58,7 +58,7 @@ public List IpAddressFilters { set { BackingStore?.Set("ipAddressFilters", value); } } #endif - /// The keywordFilter property + /// Free text field to search non-indexed properties of the audit log. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? KeywordFilter { @@ -72,7 +72,7 @@ public string KeywordFilter { set { BackingStore?.Set("keywordFilter", value); } } #endif - /// The objectIdFilters property + /// For SharePoint and OneDrive for Business activity, the full path name of the file or folder accessed by the user. For Exchange admin audit logging, the name of the object that was modified by the cmdlet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ObjectIdFilters { @@ -86,7 +86,7 @@ public List ObjectIdFilters { set { BackingStore?.Set("objectIdFilters", value); } } #endif - /// The operationFilters property + /// The name of the user or admin activity. For a description of the most common operations/activities, see Search the audit log in the Office 365 Protection Center. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? OperationFilters { @@ -100,7 +100,7 @@ public List OperationFilters { set { BackingStore?.Set("operationFilters", value); } } #endif - /// The records property + /// An individual audit log record. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Records { @@ -142,12 +142,12 @@ public List ServiceFilters { set { BackingStore?.Set("serviceFilters", value); } } #endif - /// The status property + /// Describes the current status of the query. The possible values are: notStarted, running, succeeded, failed, cancelled, unknownFutureValue. public AuditLogQueryStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } - /// The userPrincipalNameFilters property + /// The UPN (user principal name) of the user who performed the action (specified in the operation property) that resulted in the record being logged; for example, myname@mydomain_name. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? UserPrincipalNameFilters { diff --git a/src/Microsoft.Graph/Generated/Models/Security/AuditLogRecord.cs b/src/Microsoft.Graph/Generated/Models/Security/AuditLogRecord.cs index e883128a6c8..fbeb53234d6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AuditLogRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AuditLogRecord.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models.Security { public class AuditLogRecord : Microsoft.Graph.Beta.Models.Entity, IParsable { - /// The administrativeUnits property + /// The administrative units tagged to an audit log record. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AdministrativeUnits { @@ -20,7 +20,7 @@ public List AdministrativeUnits { set { BackingStore?.Set("administrativeUnits", value); } } #endif - /// The auditData property + /// A JSON object that contains the actual audit log data. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Beta.Models.Security.AuditData? AuditData { @@ -34,12 +34,12 @@ public Microsoft.Graph.Beta.Models.Security.AuditData AuditData { set { BackingStore?.Set("auditData", value); } } #endif - /// The auditLogRecordType property + /// The type of operation indicated by the record. The possible values are: exchangeAdmin, exchangeItem, exchangeItemGroup, sharePoint, syntheticProbe, sharePointFileOperation, oneDrive, azureActiveDirectory, azureActiveDirectoryAccountLogon, dataCenterSecurityCmdlet, complianceDLPSharePoint, sway, complianceDLPExchange, sharePointSharingOperation, azureActiveDirectoryStsLogon, skypeForBusinessPSTNUsage, skypeForBusinessUsersBlocked, securityComplianceCenterEOPCmdlet, exchangeAggregatedOperation, powerBIAudit, crm, yammer, skypeForBusinessCmdlets, discovery, microsoftTeams, threatIntelligence, mailSubmission, microsoftFlow, aeD, microsoftStream, complianceDLPSharePointClassification, threatFinder, project, sharePointListOperation, sharePointCommentOperation, dataGovernance, kaizala, securityComplianceAlerts, threatIntelligenceUrl, securityComplianceInsights, mipLabel, workplaceAnalytics, powerAppsApp, powerAppsPlan, threatIntelligenceAtpContent, labelContentExplorer, teamsHealthcare, exchangeItemAggregated, hygieneEvent, dataInsightsRestApiAudit, informationBarrierPolicyApplication, sharePointListItemOperation, sharePointContentTypeOperation, sharePointFieldOperation, microsoftTeamsAdmin, hrSignal, microsoftTeamsDevice, microsoftTeamsAnalytics, informationWorkerProtection, campaign, dlpEndpoint, airInvestigation, quarantine, microsoftForms, applicationAudit, complianceSupervisionExchange, customerKeyServiceEncryption, officeNative, mipAutoLabelSharePointItem, mipAutoLabelSharePointPolicyLocation, microsoftTeamsShifts, secureScore, mipAutoLabelExchangeItem, cortanaBriefing, search, wdatpAlerts, powerPlatformAdminDlp, powerPlatformAdminEnvironment, mdatpAudit, sensitivityLabelPolicyMatch, sensitivityLabelAction, sensitivityLabeledFileAction, attackSim, airManualInvestigation, securityComplianceRBAC, userTraining, airAdminActionInvestigation, mstic, physicalBadgingSignal, teamsEasyApprovals, aipDiscover, aipSensitivityLabelAction, aipProtectionAction, aipFileDeleted, aipHeartBeat, mcasAlerts, onPremisesFileShareScannerDlp, onPremisesSharePointScannerDlp, exchangeSearch, sharePointSearch, privacyDataMinimization, labelAnalyticsAggregate, myAnalyticsSettings, securityComplianceUserChange, complianceDLPExchangeClassification, complianceDLPEndpoint, mipExactDataMatch, msdeResponseActions, msdeGeneralSettings, msdeIndicatorsSettings, ms365DCustomDetection, msdeRolesSettings, mapgAlerts, mapgPolicy, mapgRemediation, privacyRemediationAction, privacyDigestEmail, mipAutoLabelSimulationProgress, mipAutoLabelSimulationCompletion, mipAutoLabelProgressFeedback, dlpSensitiveInformationType, mipAutoLabelSimulationStatistics, largeContentMetadata, microsoft365Group, cdpMlInferencingResult, filteringMailMetadata, cdpClassificationMailItem, cdpClassificationDocument, officeScriptsRunAction, filteringPostMailDeliveryAction, cdpUnifiedFeedback, tenantAllowBlockList, consumptionResource, healthcareSignal, dlpImportResult, cdpCompliancePolicyExecution, multiStageDisposition, privacyDataMatch, filteringDocMetadata, filteringEmailFeatures, powerBIDlp, filteringUrlInfo, filteringAttachmentInfo, coreReportingSettings, complianceConnector, powerPlatformLockboxResourceAccessRequest, powerPlatformLockboxResourceCommand, cdpPredictiveCodingLabel, cdpCompliancePolicyUserFeedback, webpageActivityEndpoint, omePortal, cmImprovementActionChange, filteringUrlClick, mipLabelAnalyticsAuditRecord, filteringEntityEvent, filteringRuleHits, filteringMailSubmission, labelExplorer, microsoftManagedServicePlatform, powerPlatformServiceActivity, scorePlatformGenericAuditRecord, filteringTimeTravelDocMetadata, alert, alertStatus, alertIncident, incidentStatus, case, caseInvestigation, recordsManagement, privacyRemediation, dataShareOperation, cdpDlpSensitive, ehrConnector, filteringMailGradingResult, publicFolder, privacyTenantAuditHistoryRecord, aipScannerDiscoverEvent, eduDataLakeDownloadOperation, m365ComplianceConnector, microsoftGraphDataConnectOperation, microsoftPurview, filteringEmailContentFeatures, powerPagesSite, powerAppsResource, plannerPlan, plannerCopyPlan, plannerTask, plannerRoster, plannerPlanList, plannerTaskList, plannerTenantSettings, projectForTheWebProject, projectForTheWebTask, projectForTheWebRoadmap, projectForTheWebRoadmapItem, projectForTheWebProjectSettings, projectForTheWebRoadmapSettings, quarantineMetadata, microsoftTodoAudit, timeTravelFilteringDocMetadata, teamsQuarantineMetadata, sharePointAppPermissionOperation, microsoftTeamsSensitivityLabelAction, filteringTeamsMetadata, filteringTeamsUrlInfo, filteringTeamsPostDeliveryAction, mdcAssessments, mdcRegulatoryComplianceStandards, mdcRegulatoryComplianceControls, mdcRegulatoryComplianceAssessments, mdcSecurityConnectors, mdaDataSecuritySignal, vivaGoals, filteringRuntimeInfo, attackSimAdmin, microsoftGraphDataConnectConsent, filteringAtpDetonationInfo, privacyPortal, managedTenants, unifiedSimulationMatchedItem, unifiedSimulationSummary, updateQuarantineMetadata, ms365DSuppressionRule, purviewDataMapOperation, filteringUrlPostClickAction, irmUserDefinedDetectionSignal, teamsUpdates, plannerRosterSensitivityLabel, ms365DIncident, filteringDelistingMetadata, complianceDLPSharePointClassificationExtended, microsoftDefenderForIdentityAudit, supervisoryReviewDayXInsight, defenderExpertsforXDRAdmin, cdpEdgeBlockedMessage, hostedRpa, cdpContentExplorerAggregateRecord, cdpHygieneAttachmentInfo, cdpHygieneSummary, cdpPostMailDeliveryAction, cdpEmailFeatures, cdpHygieneUrlInfo, cdpUrlClick, cdpPackageManagerHygieneEvent, filteringDocScan, timeTravelFilteringDocScan, mapgOnboard, unknownFutureValue. public Microsoft.Graph.Beta.Models.Security.AuditLogRecordType? AuditLogRecordType { get { return BackingStore?.Get("auditLogRecordType"); } set { BackingStore?.Set("auditLogRecordType", value); } } - /// The clientIp property + /// The IP address of the device used when the activity was logged. The IP address is displayed in either an IPv4 or IPv6 address format. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClientIp { @@ -53,12 +53,12 @@ public string ClientIp { set { BackingStore?.Set("clientIp", value); } } #endif - /// The createdDateTime property + /// The date and time in UTC when the user performed the activity. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } set { BackingStore?.Set("createdDateTime", value); } } - /// The objectId property + /// For Exchange admin audit logging, the name of the object modified by the cmdlet. For SharePoint activity, the full URL path name of the file or folder accessed by a user. For Microsoft Entra activity, the name of the user account that was modified. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ObjectId { @@ -72,7 +72,7 @@ public string ObjectId { set { BackingStore?.Set("objectId", value); } } #endif - /// The operation property + /// The name of the user or admin activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Operation { @@ -86,7 +86,7 @@ public string Operation { set { BackingStore?.Set("operation", value); } } #endif - /// The organizationId property + /// The GUID for your organization. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OrganizationId { @@ -100,7 +100,7 @@ public string OrganizationId { set { BackingStore?.Set("organizationId", value); } } #endif - /// The service property + /// The Microsoft 365 service where the activity occurred. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Service { @@ -114,7 +114,7 @@ public string Service { set { BackingStore?.Set("service", value); } } #endif - /// The userId property + /// The user who performed the action (specified in the Operation property) that resulted in the record being logged. Audit records for activity performed by system accounts (such as SHAREPOINT/system or NT AUTHORITY/SYSTEM) are also included in the audit log. Another common value for the UserId property is app@sharepoint. It indicates that the 'user' who performed the activity was an application with the necessary permissions in SharePoint to perform organization-wide actions (such as searching a SharePoint site or OneDrive account) on behalf of a user, admin, or service. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { @@ -128,7 +128,7 @@ public string UserId { set { BackingStore?.Set("userId", value); } } #endif - /// The userPrincipalName property + /// UPN of the user who performed the action. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserPrincipalName { @@ -142,7 +142,7 @@ public string UserPrincipalName { set { BackingStore?.Set("userPrincipalName", value); } } #endif - /// The userType property + /// The type of user that performed the operation. The possible values are: regular, reserved, admin, dcAdmin, system, application, servicePrincipal, customPolicy, systemPolicy, partnerTechnician, guest, unknownFutureValue. public AuditLogUserType? UserType { get { return BackingStore?.Get("userType"); } set { BackingStore?.Set("userType", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs new file mode 100644 index 00000000000..6b18bd93d00 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs @@ -0,0 +1,80 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class TeamsAppDashboardCardBotConfiguration : 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 botId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? BotId { + get { return BackingStore?.Get("botId"); } + set { BackingStore?.Set("botId", value); } + } +#nullable restore +#else + public string BotId { + get { return BackingStore?.Get("botId"); } + set { BackingStore?.Set("botId", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new teamsAppDashboardCardBotConfiguration and sets the default values. + /// + public TeamsAppDashboardCardBotConfiguration() { + 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 TeamsAppDashboardCardBotConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TeamsAppDashboardCardBotConfiguration(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"botId", n => { BotId = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("botId", BotId); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs new file mode 100644 index 00000000000..52c967676e1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs @@ -0,0 +1,87 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class TeamsAppDashboardCardContentSource : 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 botConfiguration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public TeamsAppDashboardCardBotConfiguration? BotConfiguration { + get { return BackingStore?.Get("botConfiguration"); } + set { BackingStore?.Set("botConfiguration", value); } + } +#nullable restore +#else + public TeamsAppDashboardCardBotConfiguration BotConfiguration { + get { return BackingStore?.Get("botConfiguration"); } + set { BackingStore?.Set("botConfiguration", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The sourceType property + public TeamsAppDashboardCardSourceType? SourceType { + get { return BackingStore?.Get("sourceType"); } + set { BackingStore?.Set("sourceType", value); } + } + /// + /// Instantiates a new teamsAppDashboardCardContentSource and sets the default values. + /// + public TeamsAppDashboardCardContentSource() { + 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 TeamsAppDashboardCardContentSource CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TeamsAppDashboardCardContentSource(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"botConfiguration", n => { BotConfiguration = n.GetObjectValue(TeamsAppDashboardCardBotConfiguration.CreateFromDiscriminatorValue); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"sourceType", n => { SourceType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("botConfiguration", BotConfiguration); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("sourceType", SourceType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs new file mode 100644 index 00000000000..64515061da1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs @@ -0,0 +1,120 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class TeamsAppDashboardCardDefinition : Entity, IParsable { + /// The contentSource property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public TeamsAppDashboardCardContentSource? ContentSource { + get { return BackingStore?.Get("contentSource"); } + set { BackingStore?.Set("contentSource", value); } + } +#nullable restore +#else + public TeamsAppDashboardCardContentSource ContentSource { + get { return BackingStore?.Get("contentSource"); } + set { BackingStore?.Set("contentSource", value); } + } +#endif + /// The defaultSize property + public TeamsAppDashboardCardSize? DefaultSize { + get { return BackingStore?.Get("defaultSize"); } + set { BackingStore?.Set("defaultSize", value); } + } + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#nullable restore +#else + public string Description { + get { return BackingStore?.Get("description"); } + set { BackingStore?.Set("description", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The icon property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public TeamsAppDashboardCardIcon? Icon { + get { return BackingStore?.Get("icon"); } + set { BackingStore?.Set("icon", value); } + } +#nullable restore +#else + public TeamsAppDashboardCardIcon Icon { + get { return BackingStore?.Get("icon"); } + set { BackingStore?.Set("icon", value); } + } +#endif + /// The pickerGroupId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PickerGroupId { + get { return BackingStore?.Get("pickerGroupId"); } + set { BackingStore?.Set("pickerGroupId", value); } + } +#nullable restore +#else + public string PickerGroupId { + get { return BackingStore?.Get("pickerGroupId"); } + set { BackingStore?.Set("pickerGroupId", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TeamsAppDashboardCardDefinition CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TeamsAppDashboardCardDefinition(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"contentSource", n => { ContentSource = n.GetObjectValue(TeamsAppDashboardCardContentSource.CreateFromDiscriminatorValue); } }, + {"defaultSize", n => { DefaultSize = n.GetEnumValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"icon", n => { Icon = n.GetObjectValue(TeamsAppDashboardCardIcon.CreateFromDiscriminatorValue); } }, + {"pickerGroupId", n => { PickerGroupId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("contentSource", ContentSource); + writer.WriteEnumValue("defaultSize", DefaultSize); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteObjectValue("icon", Icon); + writer.WriteStringValue("pickerGroupId", PickerGroupId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinitionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinitionCollectionResponse.cs new file mode 100644 index 00000000000..07d5d05bd06 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinitionCollectionResponse.cs @@ -0,0 +1,49 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class TeamsAppDashboardCardDefinitionCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new TeamsAppDashboardCardDefinitionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TeamsAppDashboardCardDefinitionCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs new file mode 100644 index 00000000000..8830659efbe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs @@ -0,0 +1,96 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class TeamsAppDashboardCardIcon : 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 iconUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IconUrl { + get { return BackingStore?.Get("iconUrl"); } + set { BackingStore?.Set("iconUrl", value); } + } +#nullable restore +#else + public string IconUrl { + get { return BackingStore?.Get("iconUrl"); } + set { BackingStore?.Set("iconUrl", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The officeUIFabricIconName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OfficeUIFabricIconName { + get { return BackingStore?.Get("officeUIFabricIconName"); } + set { BackingStore?.Set("officeUIFabricIconName", value); } + } +#nullable restore +#else + public string OfficeUIFabricIconName { + get { return BackingStore?.Get("officeUIFabricIconName"); } + set { BackingStore?.Set("officeUIFabricIconName", value); } + } +#endif + /// + /// Instantiates a new teamsAppDashboardCardIcon and sets the default values. + /// + public TeamsAppDashboardCardIcon() { + 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 TeamsAppDashboardCardIcon CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TeamsAppDashboardCardIcon(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"iconUrl", n => { IconUrl = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"officeUIFabricIconName", n => { OfficeUIFabricIconName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("iconUrl", IconUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("officeUIFabricIconName", OfficeUIFabricIconName); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSize.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSize.cs new file mode 100644 index 00000000000..e87c35444f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSize.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models { + public enum TeamsAppDashboardCardSize { + [EnumMember(Value = "medium")] + Medium, + [EnumMember(Value = "large")] + Large, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSourceType.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSourceType.cs new file mode 100644 index 00000000000..41c6cd77694 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardSourceType.cs @@ -0,0 +1,11 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models { + public enum TeamsAppDashboardCardSourceType { + [EnumMember(Value = "bot")] + Bot, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs index 0a2ccbc7186..e86daa0666d 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs @@ -80,6 +80,20 @@ public IdentitySet CreatedBy { get { return BackingStore?.Get("createdBy"); } set { BackingStore?.Set("createdBy", value); } } +#endif + /// The dashboardCards property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DashboardCards { + get { return BackingStore?.Get?>("dashboardCards"); } + set { BackingStore?.Set("dashboardCards", value); } + } +#nullable restore +#else + public List DashboardCards { + get { return BackingStore?.Get>("dashboardCards"); } + set { BackingStore?.Set("dashboardCards", value); } + } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -194,6 +208,7 @@ public override IDictionary> GetFieldDeserializers() {"bot", n => { Bot = n.GetObjectValue(TeamworkBot.CreateFromDiscriminatorValue); } }, {"colorIcon", n => { ColorIcon = n.GetObjectValue(TeamsAppIcon.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, + {"dashboardCards", n => { DashboardCards = n.GetCollectionOfObjectValues(TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -217,6 +232,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("bot", Bot); writer.WriteObjectValue("colorIcon", ColorIcon); writer.WriteObjectValue("createdBy", CreatedBy); + writer.WriteCollectionOfObjectValues("dashboardCards", DashboardCards); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ExpediteSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ExpediteSettings.cs index 7c624387ceb..4c6610041a0 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ExpediteSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ExpediteSettings.cs @@ -19,7 +19,7 @@ public bool? IsExpedited { get { return BackingStore?.Get("isExpedited"); } set { BackingStore?.Set("isExpedited", value); } } - /// The isReadinessTest property + /// True indicates that the deployment is an expedite readiness test. public bool? IsReadinessTest { get { return BackingStore?.Get("isReadinessTest"); } set { BackingStore?.Set("isReadinessTest", value); } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/UserExperienceSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/UserExperienceSettings.cs index bbb63b68827..765222c24ee 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/UserExperienceSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/UserExperienceSettings.cs @@ -33,7 +33,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The offerAsOptional property + /// Specifies whether the update is offered as Optional rather than Required. public bool? OfferAsOptional { get { return BackingStore?.Get("offerAsOptional"); } set { BackingStore?.Set("offerAsOptional", value); } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs index e048705dd34..d85d8ea2f08 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref", rawUrl) { } /// /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs index 24964c2eb29..1f5b123cfc3 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs index 27091e66006..a8cd11184de 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did1}/$ref", rawUrl) { } /// /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs index b4070424b8e..3636f5f7135 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/AgentGroups/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs index 900fb0dbd2f..5c06c16e041 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs index 82de4c3f2e1..65500596191 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Agents/Item/AgentGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/agents/{onPremisesAgent%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List of onPremisesAgentGroups that an onPremisesAgent is assigned to. Read-only. Nullable. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Item/Ref/RefRequestBuilder.cs index 98aec6ae534..94f36db0838 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/{connector%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/{connector%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/{connector%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/{connector%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property members for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property members for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Ref/RefRequestBuilder.cs index f50cc4dcfdf..84ca8dc84de 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/ConnectorGroups/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectorGroups/{connectorGroup%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property members for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get ref of members from onPremisesPublishingProfiles @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property members for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get ref of members from onPremisesPublishingProfiles /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property members for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get ref of members from onPremisesPublishingProfiles /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Item/Ref/RefRequestBuilder.cs index c6b6e1cd4f9..27dcff5d758 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/{connectorGroup%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/{connectorGroup%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/{connectorGroup%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/{connectorGroup%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property memberOf for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property memberOf for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Ref/RefRequestBuilder.cs index 711a6b80aef..75b45ec2276 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/Connectors/Item/MemberOf/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/connectors/{connector%2Did}/memberOf/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property memberOf for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The connectorGroup that the connector is a member of. Read-only. @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property memberOf for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The connectorGroup that the connector is a member of. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property memberOf for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The connectorGroup that the connector is a member of. Read-only. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs index 69c364cc6a0..19282ed781e 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/{onPremisesAgentGroup%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs index 822617d06b7..8c02d32afb7 100644 --- a/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/OnPremisesPublishingProfiles/Item/PublishedResources/Item/AgentGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/onPremisesPublishingProfiles/{onPremisesPublishingProfile%2Did}/publishedResources/{publishedResource%2Did}/agentGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property agentGroups for onPremisesPublishingProfiles + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List of onPremisesAgentGroups that a publishedResource is assigned to. Read-only. Nullable. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs index c836e22917e..2b7a5f37c03 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs index d6be2c54d73..ef20c31c7f4 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. @@ -70,6 +90,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +148,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs index e1f66b16cd5..85660c4af1f 100644 --- a/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Delete a group from the list of groups included in a mobile app management policy. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a group from the list of groups included in a mobile app management policy. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs index 2d44d81db1c..1c80a075c04 100644 --- a/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/MobileAppManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileAppManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get the list of groups that are included in a mobile app management policy. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a group from the list of groups included in a mobile app management policy. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the list of groups that are included in a mobile app management policy. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the list of groups that are included in a mobile app management policy. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs index 0ca67ca8bb6..93b81821485 100644 --- a/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Delete a group from the list of groups included in a mobile app management policy. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a group from the list of groups included in a mobile app management policy. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs index 7559fba56ae..968fb5afe28 100644 --- a/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/MobileDeviceManagementPolicies/Item/IncludedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/mobileDeviceManagementPolicies/{mobilityManagementPolicy%2Did}/includedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Get the list of groups that are included in a mobile app management policy. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a group from the list of groups included in a mobile app management policy. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the list of groups that are included in a mobile app management policy. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a group from the list of groups included in a mobile app management policy. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the list of groups that are included in a mobile app management policy. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs index bd0e6908b06..45bcd4023e3 100644 --- a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Revoke the specified group's access to submit print jobs to the associated printerShare. @@ -36,10 +36,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -55,10 +55,10 @@ public async Task DeleteAsync(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,25 +74,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified group's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Ref/RefRequestBuilder.cs index 2fdb4b1148b..ad70dfa2f37 100644 --- a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,35 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. @@ -73,6 +94,23 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,6 +156,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs index 339a060c94e..b94aa879d94 100644 --- a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", rawUrl) { } /// /// Revoke the specified user's access to submit print jobs to the associated printerShare. @@ -36,10 +36,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -55,10 +55,10 @@ public async Task DeleteAsync(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,25 +74,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified user's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Ref/RefRequestBuilder.cs index 8a294852920..500800f8932 100644 --- a/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/PrinterShares/Item/AllowedUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,35 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. @@ -73,6 +94,23 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,6 +156,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs index c2896bc05c7..a9f6c10d27d 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Revoke the specified group's access to submit print jobs to the associated printerShare. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified group's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs index 29ed59f1367..ef451c5b18e 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs index 68a40f4aec8..4e1514157be 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", rawUrl) { } /// /// Revoke the specified user's access to submit print jobs to the associated printerShare. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified user's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs index 5971b4acf69..ea89d25b768 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs index 4ad2617ffd0..5609c4d703b 100644 --- a/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/SchemaExtensions/Item/SchemaExtensionItemRequestBuilder.cs @@ -29,7 +29,7 @@ public SchemaExtensionItemRequestBuilder(Dictionary pathParamete public SchemaExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/schemaExtensions/{schemaExtension%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. + /// Delete the definition of a schema extension. In app-only scenarios, only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. In delegated scenarios, the owner of the owner app can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition before deleting the data associated with the extension in the target resources makes the data inaccessible. To recover the data, you can recreate the schema extension definition with the same configuration, but only if you used the verified domain for the schema extension id. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(SchemaExtension body, Action(requestInfo, SchemaExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the definition of a schema extension. Only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition does not affect accessing custom data that has been added to resource instances based on that definition. + /// Delete the definition of a schema extension. In app-only scenarios, only the app that created the schema extension (owner app) can delete the schema extension definition, and only when the extension is in the InDevelopment state. In delegated scenarios, the owner of the owner app can delete the schema extension definition, and only when the extension is in the InDevelopment state. Deleting a schema extension definition before deleting the data associated with the extension in the target resources makes the data inaccessible. To recover the data, you can recreate the schema extension definition with the same configuration, but only if you used the verified domain for the schema extension id. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs index df8263112f5..5069dcf0af5 100644 --- a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get records from security + /// An individual audit log record. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get records from security + /// An individual audit log record. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,7 +152,7 @@ public AuditLogRecordItemRequestBuilder WithUrl(string rawUrl) { public class AuditLogRecordItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get records from security + /// An individual audit log record. /// public class AuditLogRecordItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs index 3b8c62ee59e..8f2744be460 100644 --- a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs @@ -42,7 +42,7 @@ public RecordsRequestBuilder(Dictionary pathParameters, IRequest public RecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/auditLog/queries/{auditLogQuery%2Did}/records{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get records from security + /// An individual audit log record. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(AuditLogRecord body, Action(requestInfo, AuditLogRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get records from security + /// An individual audit log record. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public RecordsRequestBuilder WithUrl(string rawUrl) { return new RecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get records from security + /// An individual audit log record. /// public class RecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs index 57e711a64d9..9e394acd4e2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref", rawUrl) { } /// /// Remove a claimsMappingPolicy from a servicePrincipal. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a claimsMappingPolicy from a servicePrincipal. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs index 3bd827349cf..0b3c2481d00 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs index 800b9fe892c..95bda0cc96a 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref", rawUrl) { } /// /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs index 2088b592a24..d07f14924b2 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs index e98e9991604..445af514159 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs index 3a3db527964..1b8bf6af21d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index f4949a4f258..db907c9ecb7 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -93,8 +93,8 @@ public async Task DeleteAsync(Action - /// Return the metadata for a [list][]. - /// Find more info here + /// Get the list of richLongRunningOperations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Return the metadata for a [list][]. + /// Get the list of richLongRunningOperations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -198,7 +198,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Return the metadata for a [list][]. + /// Get the list of richLongRunningOperations associated with a list. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index f02481bc216..f20e5ffa733 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -62,8 +62,8 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. - /// Find more info here + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 906271e947e..ae087767db8 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index 872451baf4f..cc64080ddd3 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 8b2614c93ea..b3e4ed6407b 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 d19837ca170..5e2ad89f517 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index f9c7dc851f2..fa3842b46a6 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 184ae466ade..0e740e02cb0 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 466f9cab99b..7b08acbd1b5 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 498b7abd11e..15dda815f38 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index b71886b881b..79a84d4644d 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 9564543a0bf..6f3c6da699d 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index cbb04a908d1..dd35618b7e6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 82ba11a9a54..e045f3084ac 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 4517dfdfe40..bf380d01e27 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team.or channel. - /// Find more info here + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team.or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// 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 284acb28b2b..110d0e4e1e0 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel or a chat. - /// Find more info here + /// Send a new chatMessage in the specified channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index ac01b208a55..dedba64b75d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index 8f68c4b530d..4e2d936f5e6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered owner of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered owner of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index 21692244d48..caec279f362 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered owner of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered owner of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered owner of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index af4ff943831..e774284077f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered user of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// Configuration for 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered user of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index 782af81aff8..10e093d29c0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered user of the device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered user of the device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered user of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index cadb7969a34..5599cfd6d86 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 23be9b8aeee..b3d51a6ede3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index ff2e2eb11dd..1efe8b4fa80 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -99,8 +99,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of mailFolder object. - /// Find more info here + /// Update the writable properties of a mailSearchFolder object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of mailFolder object. + /// Update the writable properties of a mailSearchFolder object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index b87652b23a2..bcfa5aef856 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 f590ff3f06b..a536f5c041f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or to a newmessage 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 @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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 newmessage 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. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 8248ed438b3..cf00603e125 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -130,7 +130,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -149,8 +149,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Beta.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -203,7 +203,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 6566ce2bcd9..b234e48d7b8 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index 24032f0dbba..ebabb90073f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 f7c4f2a0859..d6aca2b5076 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 @@ -59,8 +59,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. @@ -117,7 +117,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 @@ -165,7 +165,7 @@ public RegistrationRequestBuilder WithUrl(string rawUrl) { public class RegistrationRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// 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/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 089dc45fb9e..6a2b95bddd1 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "70176B209A3B2735C0BE72949E39B89B4311C1FC1CF2D234AD65BE6E8001D14E3017483ECFE47C3D2A75ECAD736625F18DE0B0BD3148EA2DC68D0C2CAB0BCE62", + "descriptionHash": "C8A03575CF6D1AA8A0D507FFDBCCD6E67E00BD7DC8B60592B670C4598681C355DA79AECDE87D9FC4412D705DDA4192126F9ED3A3B67C44DDAB4FB3223F20156F", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.11.0", From dd0f31f0198cd9c56050b355d247433aa9e21bc7 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Wed, 31 Jan 2024 16:44:18 +0300 Subject: [PATCH 2/2] Bumps version and release notes --- CHANGELOG.md | 4 ++++ src/Microsoft.Graph/Microsoft.Graph.Beta.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d4556bc45..2d6ca57d16c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] +## [5.64.0-preview] - 2024-01-31 + +- Latest metadata updates from 30th January 2024. + ## [5.63.0-preview] - 2024-01-24 - Latest metadata updates from 24th January 2024. diff --git a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj index bb2cae34b3e..fe23892dcda 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj @@ -26,7 +26,7 @@ - https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/blob/master/CHANGELOG.md - 5.63.0 + 5.64.0