From c3f12a65ede278b43b12108d800c253dead09eda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:47:46 +0000 Subject: [PATCH 1/4] Bump xunit.runner.visualstudio from 2.5.8 to 2.8.0 Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.5.8 to 2.8.0. - [Release notes](https://github.com/xunit/visualstudio.xunit/releases) - [Commits](https://github.com/xunit/visualstudio.xunit/compare/2.5.8...2.8.0) --- updated-dependencies: - dependency-name: xunit.runner.visualstudio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .../Microsoft.Graph.DotnetCore.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj index e989e44bd47..ef96e53e89f 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj +++ b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj @@ -19,7 +19,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From 208d864e13a9529e8febe42bae33f5200508d672 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:09:04 +0000 Subject: [PATCH 2/4] Bump xunit from 2.7.1 to 2.8.0 Bumps [xunit](https://github.com/xunit/xunit) from 2.7.1 to 2.8.0. - [Commits](https://github.com/xunit/xunit/compare/2.7.1...2.8.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .../Microsoft.Graph.DotnetCore.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj index ef96e53e89f..7a609b6b420 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj +++ b/tests/Microsoft.Graph.DotnetCore.Test/Microsoft.Graph.DotnetCore.Test.csproj @@ -18,7 +18,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From c5baa69c41a40d8c040449743a8b002931e5b911 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 30 Apr 2024 10:44:21 +0000 Subject: [PATCH 3/4] Update generated files with build 145961 --- .../Invite/InviteRequestBuilder.cs | 6 +- .../DeviceAppManagementRequestBuilder.cs | 4 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../DeviceManagementRequestBuilder.cs | 4 +- .../DirectoryRequestBuilder.cs | 17 ++ .../Count/CountRequestBuilder.cs | 118 +++++++++ .../CompanySubscriptionItemRequestBuilder.cs | 221 ++++++++++++++++ .../SubscriptionsRequestBuilder.cs | 231 +++++++++++++++++ ...ithCommerceSubscriptionIdRequestBuilder.cs | 223 ++++++++++++++++ .../Domains/Item/DomainItemRequestBuilder.cs | 8 +- .../DomainNameReferencesRequestBuilder.cs | 6 +- .../Item/DirectoryObjectItemRequestBuilder.cs | 6 +- .../ForceDelete/ForceDeleteRequestBuilder.cs | 4 +- .../Workbook/Tables/Add/AddRequestBuilder.cs | 6 +- .../Item/Tables/Add/AddRequestBuilder.cs | 6 +- .../Generated/Groups/GroupsRequestBuilder.cs | 6 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Groups/Item/GroupItemRequestBuilder.cs | 4 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../GroupsWithUniqueNameRequestBuilder.cs | 4 +- ...henticationEventListenersRequestBuilder.cs | 231 +++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 +++++++++ ...ticationEventListenerItemRequestBuilder.cs | 221 ++++++++++++++++ .../Count/CountRequestBuilder.cs | 118 +++++++++ ...mAuthenticationExtensionsRequestBuilder.cs | 237 ++++++++++++++++++ ...thenticationExtensionItemRequestBuilder.cs | 227 +++++++++++++++++ ...thenticationConfigurationRequestBuilder.cs | 94 +++++++ ...henticationConfigurationPostRequestBody.cs | 91 +++++++ ...thenticationConfigurationRequestBuilder.cs | 98 ++++++++ .../Identity/IdentityRequestBuilder.cs | 12 + .../Generated/Me/MeRequestBuilder.cs | 8 +- .../AuthenticationConditionApplication.cs | 90 +++++++ .../Models/AuthenticationConditions.cs | 90 +++++++ .../AuthenticationConditionsApplications.cs | 90 +++++++ .../AuthenticationConfigurationValidation.cs | 106 ++++++++ .../Models/AuthenticationEventListener.cs | 79 ++++++ ...ticationEventListenerCollectionResponse.cs | 58 +++++ .../Models/AzureAdTokenAuthentication.cs | 65 +++++ .../Generated/Models/BookingAppointment.cs | 64 +++++ .../Generated/Models/BookingStaffMember.cs | 7 + .../Models/BookingStaffMembershipStatus.cs | 26 ++ .../Generated/Models/CompanySubscription.cs | 198 +++++++++++++++ .../CompanySubscriptionCollectionResponse.cs | 58 +++++ .../Models/CrossTenantAccessPolicy.cs | 16 ++ ...sTenantAccessPolicyConfigurationPartner.cs | 7 + .../Models/CustomAuthenticationExtension.cs | 54 ++++ ...thenticationExtensionCollectionResponse.cs | 58 +++++ .../Models/CustomCalloutExtension.cs | 2 + ...tomExtensionAuthenticationConfiguration.cs | 1 + .../CustomExtensionClientConfiguration.cs | 7 + .../CustomExtensionEndpointConfiguration.cs | 1 + .../CustomExtensionOverwriteConfiguration.cs | 90 +++++++ .../Generated/Models/DirectoryObject.cs | 1 + .../Generated/Models/DirectoryObject1.cs | 16 ++ .../Generated/Models/Domain.cs | 16 +- .../Generated/Models/DomainDnsRecord.cs | 2 +- .../Generated/Models/DomainState.cs | 4 +- .../Generated/Models/Entity.cs | 11 + .../Generated/Models/HttpRequestEndpoint.cs | 65 +++++ .../Generated/Models/IdentityContainer.cs | 32 +++ .../Generated/Models/LearningContent.cs | 2 +- .../Models/MultiTenantOrganization.cs | 120 +++++++++ ...tOrganizationIdentitySyncPolicyTemplate.cs | 65 +++++ ...ultiTenantOrganizationJoinRequestRecord.cs | 88 +++++++ ...rganizationJoinRequestTransitionDetails.cs | 104 ++++++++ .../Models/MultiTenantOrganizationMember.cs | 132 ++++++++++ ...antOrganizationMemberCollectionResponse.cs | 58 +++++ ...enantOrganizationMemberProcessingStatus.cs | 30 +++ .../MultiTenantOrganizationMemberRole.cs | 22 ++ .../MultiTenantOrganizationMemberState.cs | 26 ++ ...nantOrganizationMemberTransitionDetails.cs | 111 ++++++++ ...rganizationPartnerConfigurationTemplate.cs | 145 +++++++++++ .../Models/MultiTenantOrganizationState.cs | 22 ++ .../OnTokenIssuanceStartCustomExtension.cs | 65 +++++ ...okenIssuanceStartCustomExtensionHandler.cs | 81 ++++++ .../Models/OnTokenIssuanceStartHandler.cs | 79 ++++++ .../Models/OnTokenIssuanceStartListener.cs | 65 +++++ .../Models/OnTokenIssuanceStartReturnClaim.cs | 90 +++++++ .../Generated/Models/PolicyTemplate.cs | 74 ++++++ .../Models/Security/DetectionSource.cs | 4 + .../Models/Security/ServiceSource.cs | 4 + .../Models/TemplateApplicationLevel.cs | 27 ++ .../Generated/Models/TenantRelationship.cs | 16 ++ .../Generated/Models/VerifiedDomain.cs | 2 +- .../Item/OrganizationItemRequestBuilder.cs | 8 +- .../OrganizationRequestBuilder.cs | 8 +- .../CrossTenantAccessPolicyRequestBuilder.cs | 6 + ...onIdentitySynchronizationRequestBuilder.cs | 221 ++++++++++++++++ ...ationPartnerConfigurationRequestBuilder.cs | 221 ++++++++++++++++ .../Templates/TemplatesRequestBuilder.cs | 233 +++++++++++++++++ .../Security/Alerts/AlertsRequestBuilder.cs | 7 + .../Alerts/Count/CountRequestBuilder.cs | 3 + .../Alerts/Item/AlertItemRequestBuilder.cs | 5 + .../JoinRequest/JoinRequestRequestBuilder.cs | 173 +++++++++++++ .../MultiTenantOrganizationRequestBuilder.cs | 185 ++++++++++++++ .../Tenants/Count/CountRequestBuilder.cs | 118 +++++++++ ...antOrganizationMemberItemRequestBuilder.cs | 221 ++++++++++++++++ .../Tenants/TenantsRequestBuilder.cs | 231 +++++++++++++++++ .../TenantRelationshipsRequestBuilder.cs | 6 + .../Users/Item/UserItemRequestBuilder.cs | 10 +- .../Generated/Users/UsersRequestBuilder.cs | 4 +- src/Microsoft.Graph/Generated/kiota-lock.json | 2 +- src/Microsoft.Graph/Microsoft.Graph.csproj | 2 +- 105 files changed, 6682 insertions(+), 75 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationConditionApplication.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationConditions.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationConditionsApplications.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationConfigurationValidation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AuthenticationEventListenerCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AzureAdTokenAuthentication.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CompanySubscription.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CompanySubscriptionCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtensionCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CustomExtensionOverwriteConfiguration.cs create mode 100644 src/Microsoft.Graph/Generated/Models/HttpRequestEndpoint.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganization.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestRecord.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMember.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberRole.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberState.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberTransitionDetails.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationState.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtension.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartHandler.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartListener.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartReturnClaim.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PolicyTemplate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/TemplateApplicationLevel.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 7f70debbfb3..57b866bbc65 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -32,8 +32,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. - /// Find more info here + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Find more info here /// /// A /// The request body @@ -58,7 +58,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index 819dc5cf76f..8bca9f3101e 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -123,7 +123,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -147,7 +147,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 716d3433ddd..e9adbcadbcf 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 4223ce2655d..7b387e2af65 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 9fb4be93c5f..2383cd32f5c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -32,7 +32,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 5a1f5ac1d93..ebde46b8fb8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -389,7 +389,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -423,7 +423,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs index 180916c14ff..060f3b27c50 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -6,6 +6,8 @@ using Microsoft.Graph.DirectoryNamespace.DeviceLocalCredentials; using Microsoft.Graph.DirectoryNamespace.FederationConfigurations; using Microsoft.Graph.DirectoryNamespace.OnPremisesSynchronization; +using Microsoft.Graph.DirectoryNamespace.Subscriptions; +using Microsoft.Graph.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -57,6 +59,11 @@ public OnPremisesSynchronizationRequestBuilder OnPremisesSynchronization { get => new OnPremisesSynchronizationRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + public SubscriptionsRequestBuilder Subscriptions + { + get => new SubscriptionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// @@ -122,6 +129,16 @@ public async Task PatchAsync(DirectoryObject1 body, Action(requestInfo, DirectoryObject1.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + /// + /// A + /// Alternate key of companySubscription + public SubscriptionsWithCommerceSubscriptionIdRequestBuilder SubscriptionsWithCommerceSubscriptionId(string commerceSubscriptionId) + { + if(string.IsNullOrEmpty(commerceSubscriptionId)) throw new ArgumentNullException(nameof(commerceSubscriptionId)); + return new SubscriptionsWithCommerceSubscriptionIdRequestBuilder(PathParameters, RequestAdapter, commerceSubscriptionId); + } + /// /// Get directory /// /// A diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..43af5e06615 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DirectoryNamespace.Subscriptions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs new file mode 100644 index 00000000000..44f5bc533a2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/Item/CompanySubscriptionItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DirectoryNamespace.Subscriptions.Item { + /// + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + /// + public class CompanySubscriptionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CompanySubscriptionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions/{companySubscription%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CompanySubscriptionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions/{companySubscription%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property subscriptions for directory + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get subscriptions from directory + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property subscriptions in directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CompanySubscription body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(CompanySubscription body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property subscriptions for directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get subscriptions from directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property subscriptions in directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CompanySubscription body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CompanySubscription 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. + /// + /// A + /// The raw URL to use for the request builder. + public CompanySubscriptionItemRequestBuilder WithUrl(string rawUrl) + { + return new CompanySubscriptionItemRequestBuilder(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 CompanySubscriptionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get subscriptions from directory + /// + public class CompanySubscriptionItemRequestBuilderGetQueryParameters + { + /// 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 CompanySubscriptionItemRequestBuilderGetRequestConfiguration : 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 CompanySubscriptionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs new file mode 100644 index 00000000000..9e4416b3d5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/Subscriptions/SubscriptionsRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.DirectoryNamespace.Subscriptions.Count; +using Microsoft.Graph.DirectoryNamespace.Subscriptions.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DirectoryNamespace.Subscriptions { + /// + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + /// + public class SubscriptionsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + /// The unique identifier of companySubscription + /// A + public CompanySubscriptionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("companySubscription%2Did", position); + return new CompanySubscriptionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubscriptionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubscriptionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get subscriptions from directory + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscriptionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to subscriptions for directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CompanySubscription body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(CompanySubscription body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get subscriptions from directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to subscriptions for directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CompanySubscription body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CompanySubscription 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. + /// + /// A + /// The raw URL to use for the request builder. + public SubscriptionsRequestBuilder WithUrl(string rawUrl) + { + return new SubscriptionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get subscriptions from directory + /// + public class SubscriptionsRequestBuilderGetQueryParameters + { + /// 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 SubscriptionsRequestBuilderGetRequestConfiguration : 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 SubscriptionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs new file mode 100644 index 00000000000..4fc4f603287 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/SubscriptionsWithCommerceSubscriptionId/SubscriptionsWithCommerceSubscriptionIdRequestBuilder.cs @@ -0,0 +1,223 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId { + /// + /// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity. + /// + public class SubscriptionsWithCommerceSubscriptionIdRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Alternate key of companySubscription + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubscriptionsWithCommerceSubscriptionIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string commerceSubscriptionId = "") : base(requestAdapter, "{+baseurl}/directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'){?%24expand,%24select}", pathParameters) + { + if (!string.IsNullOrWhiteSpace(commerceSubscriptionId)) PathParameters.Add("commerceSubscriptionId", commerceSubscriptionId); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubscriptionsWithCommerceSubscriptionIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/subscriptions(commerceSubscriptionId='{commerceSubscriptionId}'){?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property subscriptions for directory + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get subscriptions from directory + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property subscriptions in directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CompanySubscription body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(CompanySubscription body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CompanySubscription.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property subscriptions for directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get subscriptions from directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property subscriptions in directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CompanySubscription body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CompanySubscription 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. + /// + /// A + /// The raw URL to use for the request builder. + public SubscriptionsWithCommerceSubscriptionIdRequestBuilder WithUrl(string rawUrl) + { + return new SubscriptionsWithCommerceSubscriptionIdRequestBuilder(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 SubscriptionsWithCommerceSubscriptionIdRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get subscriptions from directory + /// + public class SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetQueryParameters + { + /// 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 SubscriptionsWithCommerceSubscriptionIdRequestBuilderGetRequestConfiguration : 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 SubscriptionsWithCommerceSubscriptionIdRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs index 37169eb7518..9ef66c32cb3 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainItemRequestBuilder.cs @@ -74,7 +74,7 @@ public DomainItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Deletes a domain from a tenant. + /// Delete a domain from a tenant. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -121,7 +121,7 @@ public async Task GetAsync(Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of domain object. + /// Update the properties of domain object. Only verified domains can be updated. /// Find more info here /// /// A @@ -147,7 +147,7 @@ public async Task PatchAsync(Domain body, Action(requestInfo, Domain.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a domain from a tenant. + /// Delete a domain from a tenant. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -185,7 +185,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of domain object. + /// Update the properties of domain object. Only verified domains can be updated. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs index 33eb432121c..383fd58f3de 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/DomainNameReferencesRequestBuilder.cs @@ -51,7 +51,7 @@ public DomainNameReferencesRequestBuilder(string rawUrl, IRequestAdapter request { } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A /// Cancellation token to use when cancelling requests @@ -74,7 +74,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -102,7 +102,7 @@ public DomainNameReferencesRequestBuilder WithUrl(string rawUrl) return new DomainNameReferencesRequestBuilder(rawUrl, RequestAdapter); } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// public class DomainNameReferencesRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs index 518a65c0f65..3fef1cbef0b 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/DomainNameReferences/Item/DirectoryObjectItemRequestBuilder.cs @@ -32,7 +32,7 @@ public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestA { } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A /// Cancellation token to use when cancelling requests @@ -55,7 +55,7 @@ public async Task GetAsync(Action(requestInfo, DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public DirectoryObjectItemRequestBuilder WithUrl(string rawUrl) return new DirectoryObjectItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. /// public class DirectoryObjectItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs index f6d69ffa366..9e77a6b9cfc 100644 --- a/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Domains/Item/ForceDelete/ForceDeleteRequestBuilder.cs @@ -31,7 +31,7 @@ public ForceDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + /// Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. /// Find more info here /// /// The request body @@ -56,7 +56,7 @@ public async Task PostAsync(ForceDeletePostRequestBody body, Action - /// Deletes a domain using an asynchronous long-running operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. + /// Delete a domain using an asynchronous long-running operation. Before performing this operation, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain return an HTTP 404 status code. To verify deletion of a domain, you can perform a get domain operation. /// /// A /// The request body 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 eef10f42787..56cf560b522 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 @@ -32,8 +32,8 @@ public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r { } /// - /// Use this API to create a new Table. - /// Find more info here + /// 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 generated. + /// Find more info here /// /// A /// The request body @@ -58,7 +58,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Table. + /// 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 generated. /// /// A /// The request body 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 5dea3c14de1..abe905ed1e3 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 @@ -32,8 +32,8 @@ public AddRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r { } /// - /// Use this API to create a new Table. - /// Find more info here + /// 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 generated. + /// Find more info here /// /// A /// The request body @@ -58,7 +58,7 @@ public async Task PostAsync(AddPostRequestBody body, Action(requestInfo, WorkbookTable.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Table. + /// 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 generated. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs index bdb2eef2014..6ab39bf80a7 100644 --- a/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/GroupsRequestBuilder.cs @@ -99,8 +99,8 @@ public async Task GetAsync(Action(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. - /// Find more info here + /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Find more info here /// /// A /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group as specified in the request body. You can create the following types of groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index acbc92cca53..c03e32b99ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -31,8 +31,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -56,7 +56,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs index 6feee096fb7..bebcc516bbc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/GroupItemRequestBuilder.cs @@ -337,7 +337,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. /// Find more info here /// /// A @@ -401,7 +401,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index ee4403776fb..c1c9bac462f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -31,8 +31,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -56,7 +56,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs index a6cc3a58cdd..1db393dd1a6 100644 --- a/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupsWithUniqueName/GroupsWithUniqueNameRequestBuilder.cs @@ -81,7 +81,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Group.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. /// Find more info here /// /// A @@ -145,7 +145,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see thethe Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. + /// Create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.cs new file mode 100644 index 00000000000..4c4d7296519 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/AuthenticationEventListenersRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Identity.AuthenticationEventListeners.Count; +using Microsoft.Graph.Identity.AuthenticationEventListeners.Item; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.AuthenticationEventListeners { + /// + /// Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + /// + public class AuthenticationEventListenersRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + /// The unique identifier of authenticationEventListener + /// A + public AuthenticationEventListenerItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("authenticationEventListener%2Did", position); + return new AuthenticationEventListenerItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationEventListenersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationEventListenersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationEventListenerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to authenticationEventListeners for identity + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthenticationEventListener body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(AuthenticationEventListener body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationEventListener.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to authenticationEventListeners for identity + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(AuthenticationEventListener body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthenticationEventListener 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. + /// + /// A + /// The raw URL to use for the request builder. + public AuthenticationEventListenersRequestBuilder WithUrl(string rawUrl) + { + return new AuthenticationEventListenersRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + public class AuthenticationEventListenersRequestBuilderGetQueryParameters + { + /// 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 AuthenticationEventListenersRequestBuilderGetRequestConfiguration : 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 AuthenticationEventListenersRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b9894cd5319 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.AuthenticationEventListeners.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.cs new file mode 100644 index 00000000000..c087bbccf70 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/AuthenticationEventListeners/Item/AuthenticationEventListenerItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.AuthenticationEventListeners.Item { + /// + /// Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + /// + public class AuthenticationEventListenerItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthenticationEventListenerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners/{authenticationEventListener%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthenticationEventListenerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/authenticationEventListeners/{authenticationEventListener%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property authenticationEventListeners for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationEventListener.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property authenticationEventListeners in identity + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthenticationEventListener body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(AuthenticationEventListener body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationEventListener.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property authenticationEventListeners for identity + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property authenticationEventListeners in identity + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(AuthenticationEventListener body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthenticationEventListener 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. + /// + /// A + /// The raw URL to use for the request builder. + public AuthenticationEventListenerItemRequestBuilder WithUrl(string rawUrl) + { + return new AuthenticationEventListenerItemRequestBuilder(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 AuthenticationEventListenerItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. + /// + public class AuthenticationEventListenerItemRequestBuilderGetQueryParameters + { + /// 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 AuthenticationEventListenerItemRequestBuilderGetRequestConfiguration : 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 AuthenticationEventListenerItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ac37f68aa6a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..cd0ee5cdbc6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/CustomAuthenticationExtensionsRequestBuilder.cs @@ -0,0 +1,237 @@ +// +using Microsoft.Graph.Identity.CustomAuthenticationExtensions.Count; +using Microsoft.Graph.Identity.CustomAuthenticationExtensions.Item; +using Microsoft.Graph.Identity.CustomAuthenticationExtensions.ValidateAuthenticationConfiguration; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions { + /// + /// Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + /// + public class CustomAuthenticationExtensionsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the validateAuthenticationConfiguration method. + public ValidateAuthenticationConfigurationRequestBuilder ValidateAuthenticationConfiguration + { + get => new ValidateAuthenticationConfigurationRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + /// The unique identifier of customAuthenticationExtension + /// A + public CustomAuthenticationExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customAuthenticationExtension%2Did", position); + return new CustomAuthenticationExtensionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomAuthenticationExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomAuthenticationExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CustomAuthenticationExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to customAuthenticationExtensions for identity + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CustomAuthenticationExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(CustomAuthenticationExtension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CustomAuthenticationExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to customAuthenticationExtensions for identity + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CustomAuthenticationExtension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CustomAuthenticationExtension 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. + /// + /// A + /// The raw URL to use for the request builder. + public CustomAuthenticationExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new CustomAuthenticationExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + public class CustomAuthenticationExtensionsRequestBuilderGetQueryParameters + { + /// 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 CustomAuthenticationExtensionsRequestBuilderGetRequestConfiguration : 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 CustomAuthenticationExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..11fe96f34a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs @@ -0,0 +1,227 @@ +// +using Microsoft.Graph.Identity.CustomAuthenticationExtensions.Item.ValidateAuthenticationConfiguration; +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions.Item { + /// + /// Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + /// + public class CustomAuthenticationExtensionItemRequestBuilder : BaseRequestBuilder + { + /// Provides operations to call the validateAuthenticationConfiguration method. + public ValidateAuthenticationConfigurationRequestBuilder ValidateAuthenticationConfiguration + { + get => new ValidateAuthenticationConfigurationRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomAuthenticationExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomAuthenticationExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property customAuthenticationExtensions for identity + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CustomAuthenticationExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property customAuthenticationExtensions in identity + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(CustomAuthenticationExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(CustomAuthenticationExtension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CustomAuthenticationExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property customAuthenticationExtensions for identity + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property customAuthenticationExtensions in identity + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(CustomAuthenticationExtension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CustomAuthenticationExtension 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. + /// + /// A + /// The raw URL to use for the request builder. + public CustomAuthenticationExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new CustomAuthenticationExtensionItemRequestBuilder(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 CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. + /// + public class CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters + { + /// 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 CustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration : 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 CustomAuthenticationExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs new file mode 100644 index 00000000000..6bec311ffde --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs @@ -0,0 +1,94 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions.Item.ValidateAuthenticationConfiguration { + /// + /// Provides operations to call the validateAuthenticationConfiguration method. + /// + public class ValidateAuthenticationConfigurationRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ValidateAuthenticationConfigurationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}/validateAuthenticationConfiguration", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ValidateAuthenticationConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/{customAuthenticationExtension%2Did}/validateAuthenticationConfiguration", rawUrl) + { + } + /// + /// An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task 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> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationConfigurationValidation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// An API to check validity of the endpoint and and authentication configuration for a customAuthenticationExtension. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation 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. + /// + /// A + /// The raw URL to use for the request builder. + public ValidateAuthenticationConfigurationRequestBuilder WithUrl(string rawUrl) + { + return new ValidateAuthenticationConfigurationRequestBuilder(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 ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.cs new file mode 100644 index 00000000000..eda46964a50 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationPostRequestBody.cs @@ -0,0 +1,91 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions.ValidateAuthenticationConfiguration { + #pragma warning disable CS1591 + public class ValidateAuthenticationConfigurationPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// The authenticationConfiguration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CustomExtensionAuthenticationConfiguration? AuthenticationConfiguration { + get { return BackingStore?.Get("authenticationConfiguration"); } + set { BackingStore?.Set("authenticationConfiguration", value); } + } +#nullable restore +#else + public CustomExtensionAuthenticationConfiguration AuthenticationConfiguration { + get { return BackingStore?.Get("authenticationConfiguration"); } + set { BackingStore?.Set("authenticationConfiguration", value); } + } +#endif + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The endpointConfiguration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CustomExtensionEndpointConfiguration? EndpointConfiguration { + get { return BackingStore?.Get("endpointConfiguration"); } + set { BackingStore?.Set("endpointConfiguration", value); } + } +#nullable restore +#else + public CustomExtensionEndpointConfiguration EndpointConfiguration { + get { return BackingStore?.Get("endpointConfiguration"); } + set { BackingStore?.Set("endpointConfiguration", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ValidateAuthenticationConfigurationPostRequestBody() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static ValidateAuthenticationConfigurationPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ValidateAuthenticationConfigurationPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"authenticationConfiguration", n => { AuthenticationConfiguration = n.GetObjectValue(CustomExtensionAuthenticationConfiguration.CreateFromDiscriminatorValue); } }, + {"endpointConfiguration", n => { EndpointConfiguration = n.GetObjectValue(CustomExtensionEndpointConfiguration.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// 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("authenticationConfiguration", AuthenticationConfiguration); + writer.WriteObjectValue("endpointConfiguration", EndpointConfiguration); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs new file mode 100644 index 00000000000..c739e315a13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/ValidateAuthenticationConfiguration/ValidateAuthenticationConfigurationRequestBuilder.cs @@ -0,0 +1,98 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Identity.CustomAuthenticationExtensions.ValidateAuthenticationConfiguration { + /// + /// Provides operations to call the validateAuthenticationConfiguration method. + /// + public class ValidateAuthenticationConfigurationRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ValidateAuthenticationConfigurationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/validateAuthenticationConfiguration", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ValidateAuthenticationConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/customAuthenticationExtensions/validateAuthenticationConfiguration", rawUrl) + { + } + /// + /// Invoke action validateAuthenticationConfiguration + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(ValidateAuthenticationConfigurationPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(ValidateAuthenticationConfigurationPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthenticationConfigurationValidation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action validateAuthenticationConfiguration + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(ValidateAuthenticationConfigurationPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ValidateAuthenticationConfigurationPostRequestBody 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. + /// + /// A + /// The raw URL to use for the request builder. + public ValidateAuthenticationConfigurationRequestBuilder WithUrl(string rawUrl) + { + return new ValidateAuthenticationConfigurationRequestBuilder(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 ValidateAuthenticationConfigurationRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs index 59da77fbb94..fb5e4e55a4e 100644 --- a/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/IdentityRequestBuilder.cs @@ -1,7 +1,9 @@ // using Microsoft.Graph.Identity.ApiConnectors; +using Microsoft.Graph.Identity.AuthenticationEventListeners; using Microsoft.Graph.Identity.B2xUserFlows; using Microsoft.Graph.Identity.ConditionalAccess; +using Microsoft.Graph.Identity.CustomAuthenticationExtensions; using Microsoft.Graph.Identity.IdentityProviders; using Microsoft.Graph.Identity.UserFlowAttributes; using Microsoft.Graph.Models.ODataErrors; @@ -25,6 +27,11 @@ public ApiConnectorsRequestBuilder ApiConnectors { get => new ApiConnectorsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the authenticationEventListeners property of the microsoft.graph.identityContainer entity. + public AuthenticationEventListenersRequestBuilder AuthenticationEventListeners + { + get => new AuthenticationEventListenersRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the b2xUserFlows property of the microsoft.graph.identityContainer entity. public B2xUserFlowsRequestBuilder B2xUserFlows { @@ -35,6 +42,11 @@ public ConditionalAccessRequestBuilder ConditionalAccess { get => new ConditionalAccessRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the customAuthenticationExtensions property of the microsoft.graph.identityContainer entity. + public CustomAuthenticationExtensionsRequestBuilder CustomAuthenticationExtensions + { + get => new CustomAuthenticationExtensionsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the identityProviders property of the microsoft.graph.identityContainer entity. public IdentityProvidersRequestBuilder IdentityProviders { diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index d5fdc6cfc09..6bf16c70b33 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -484,8 +484,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. - /// Find more info here + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -546,7 +546,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -596,7 +596,7 @@ public MeRequestBuilder WithUrl(string rawUrl) return new MeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. /// public class MeRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationConditionApplication.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationConditionApplication.cs new file mode 100644 index 00000000000..deedfd123d0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationConditionApplication.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationConditionApplication : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// The identifier for an application corresponding to a condition that triggers an authenticationEventListener. +#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 and sets the default values. + /// + public AuthenticationConditionApplication() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static AuthenticationConditionApplication CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationConditionApplication(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + 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/AuthenticationConditions.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationConditions.cs new file mode 100644 index 00000000000..8ba427f015a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationConditions.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationConditions : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Applications which trigger a custom authentication extension. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AuthenticationConditionsApplications? Applications { + get { return BackingStore?.Get("applications"); } + set { BackingStore?.Set("applications", value); } + } +#nullable restore +#else + public AuthenticationConditionsApplications Applications { + get { return BackingStore?.Get("applications"); } + set { BackingStore?.Set("applications", 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 and sets the default values. + /// + public AuthenticationConditions() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static AuthenticationConditions CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationConditions(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"applications", n => { Applications = n.GetObjectValue(AuthenticationConditionsApplications.CreateFromDiscriminatorValue); } }, + {"@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.WriteObjectValue("applications", Applications); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationConditionsApplications.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationConditionsApplications.cs new file mode 100644 index 00000000000..ba19525d2f5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationConditionsApplications.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationConditionsApplications : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The includeApplications property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? IncludeApplications { + get { return BackingStore?.Get?>("includeApplications"); } + set { BackingStore?.Set("includeApplications", value); } + } +#nullable restore +#else + public List IncludeApplications { + get { return BackingStore?.Get>("includeApplications"); } + set { BackingStore?.Set("includeApplications", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AuthenticationConditionsApplications() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static AuthenticationConditionsApplications CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationConditionsApplications(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"includeApplications", n => { IncludeApplications = n.GetCollectionOfObjectValues(AuthenticationConditionApplication.CreateFromDiscriminatorValue)?.ToList(); } }, + {"@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.WriteCollectionOfObjectValues("includeApplications", IncludeApplications); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationConfigurationValidation.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationConfigurationValidation.cs new file mode 100644 index 00000000000..3f0e94e777b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationConfigurationValidation.cs @@ -0,0 +1,106 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationConfigurationValidation : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// Errors in the validation result of a customAuthenticationExtension. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Errors { + get { return BackingStore?.Get?>("errors"); } + set { BackingStore?.Set("errors", value); } + } +#nullable restore +#else + public List Errors { + get { return BackingStore?.Get>("errors"); } + set { BackingStore?.Set("errors", 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 + /// Warnings in the validation result of a customAuthenticationExtension. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Warnings { + get { return BackingStore?.Get?>("warnings"); } + set { BackingStore?.Set("warnings", value); } + } +#nullable restore +#else + public List Warnings { + get { return BackingStore?.Get>("warnings"); } + set { BackingStore?.Set("warnings", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AuthenticationConfigurationValidation() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static AuthenticationConfigurationValidation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationConfigurationValidation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"errors", n => { Errors = n.GetCollectionOfObjectValues(GenericError.CreateFromDiscriminatorValue)?.ToList(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"warnings", n => { Warnings = n.GetCollectionOfObjectValues(GenericError.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// 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.WriteCollectionOfObjectValues("errors", Errors); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteCollectionOfObjectValues("warnings", Warnings); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs new file mode 100644 index 00000000000..8be07ea5c38 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListener.cs @@ -0,0 +1,79 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationEventListener : Entity, IParsable + #pragma warning restore CS1591 + { + /// The authenticationEventsFlowId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AuthenticationEventsFlowId { + get { return BackingStore?.Get("authenticationEventsFlowId"); } + set { BackingStore?.Set("authenticationEventsFlowId", value); } + } +#nullable restore +#else + public string AuthenticationEventsFlowId { + get { return BackingStore?.Get("authenticationEventsFlowId"); } + set { BackingStore?.Set("authenticationEventsFlowId", value); } + } +#endif + /// The conditions on which this authenticationEventListener should trigger. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AuthenticationConditions? Conditions { + get { return BackingStore?.Get("conditions"); } + set { BackingStore?.Set("conditions", value); } + } +#nullable restore +#else + public AuthenticationConditions Conditions { + get { return BackingStore?.Get("conditions"); } + set { BackingStore?.Set("conditions", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationEventListener CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.onTokenIssuanceStartListener" => new OnTokenIssuanceStartListener(), + _ => new AuthenticationEventListener(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"authenticationEventsFlowId", n => { AuthenticationEventsFlowId = n.GetStringValue(); } }, + {"conditions", n => { Conditions = n.GetObjectValue(AuthenticationConditions.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("authenticationEventsFlowId", AuthenticationEventsFlowId); + writer.WriteObjectValue("conditions", Conditions); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationEventListenerCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListenerCollectionResponse.cs new file mode 100644 index 00000000000..ae7faa93a3b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationEventListenerCollectionResponse.cs @@ -0,0 +1,58 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AuthenticationEventListenerCollectionResponse : BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new AuthenticationEventListenerCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AuthenticationEventListenerCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(AuthenticationEventListener.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/AzureAdTokenAuthentication.cs b/src/Microsoft.Graph/Generated/Models/AzureAdTokenAuthentication.cs new file mode 100644 index 00000000000..12b6430f398 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AzureAdTokenAuthentication.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class AzureAdTokenAuthentication : CustomExtensionAuthenticationConfiguration, IParsable + #pragma warning restore CS1591 + { + /// The appID of the Microsoft Entra application to use to authenticate an app with a custom extension. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { + get { return BackingStore?.Get("resourceId"); } + set { BackingStore?.Set("resourceId", value); } + } +#nullable restore +#else + public string ResourceId { + get { return BackingStore?.Get("resourceId"); } + set { BackingStore?.Set("resourceId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AzureAdTokenAuthentication() : base() + { + OdataType = "#microsoft.graph.azureAdTokenAuthentication"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new AzureAdTokenAuthentication CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AzureAdTokenAuthentication(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("resourceId", ResourceId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index aabc2945f33..27b75907e87 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -37,6 +37,62 @@ public string AnonymousJoinWebUrl { get { return BackingStore?.Get("anonymousJoinWebUrl"); } set { BackingStore?.Set("anonymousJoinWebUrl", value); } } +#endif + /// The customerEmailAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CustomerEmailAddress { + get { return BackingStore?.Get("customerEmailAddress"); } + set { BackingStore?.Set("customerEmailAddress", value); } + } +#nullable restore +#else + public string CustomerEmailAddress { + get { return BackingStore?.Get("customerEmailAddress"); } + set { BackingStore?.Set("customerEmailAddress", value); } + } +#endif + /// The customerName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CustomerName { + get { return BackingStore?.Get("customerName"); } + set { BackingStore?.Set("customerName", value); } + } +#nullable restore +#else + public string CustomerName { + get { return BackingStore?.Get("customerName"); } + set { BackingStore?.Set("customerName", value); } + } +#endif + /// Notes from the customer associated with this appointment. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CustomerNotes { + get { return BackingStore?.Get("customerNotes"); } + set { BackingStore?.Set("customerNotes", value); } + } +#nullable restore +#else + public string CustomerNotes { + get { return BackingStore?.Get("customerNotes"); } + set { BackingStore?.Set("customerNotes", value); } + } +#endif + /// The customerPhone property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CustomerPhone { + get { return BackingStore?.Get("customerPhone"); } + set { BackingStore?.Set("customerPhone", value); } + } +#nullable restore +#else + public string CustomerPhone { + get { return BackingStore?.Get("customerPhone"); } + set { BackingStore?.Set("customerPhone", value); } + } #endif /// A collection of customer properties for an appointment. An appointment contains a list of customer information and each unit will indicate the properties of a customer who is part of that appointment. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -276,6 +332,10 @@ public override IDictionary> GetFieldDeserializers() { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"anonymousJoinWebUrl", n => { AnonymousJoinWebUrl = n.GetStringValue(); } }, + {"customerEmailAddress", n => { CustomerEmailAddress = n.GetStringValue(); } }, + {"customerName", n => { CustomerName = n.GetStringValue(); } }, + {"customerNotes", n => { CustomerNotes = n.GetStringValue(); } }, + {"customerPhone", n => { CustomerPhone = n.GetStringValue(); } }, {"customerTimeZone", n => { CustomerTimeZone = n.GetStringValue(); } }, {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"duration", n => { Duration = n.GetTimeSpanValue(); } }, @@ -310,6 +370,10 @@ public override void Serialize(ISerializationWriter writer) base.Serialize(writer); writer.WriteStringValue("additionalInformation", AdditionalInformation); writer.WriteStringValue("anonymousJoinWebUrl", AnonymousJoinWebUrl); + writer.WriteStringValue("customerEmailAddress", CustomerEmailAddress); + writer.WriteStringValue("customerName", CustomerName); + writer.WriteStringValue("customerNotes", CustomerNotes); + writer.WriteStringValue("customerPhone", CustomerPhone); writer.WriteCollectionOfObjectValues("customers", Customers); writer.WriteStringValue("customerTimeZone", CustomerTimeZone); writer.WriteObjectValue("endDateTime", EndDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs index 37b62d34004..fa93205849d 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMember.cs @@ -48,6 +48,11 @@ public bool? IsEmailNotificationEnabled { get { return BackingStore?.Get("isEmailNotificationEnabled"); } set { BackingStore?.Set("isEmailNotificationEnabled", value); } } + /// The membershipStatus property + public BookingStaffMembershipStatus? MembershipStatus { + get { return BackingStore?.Get("membershipStatus"); } + set { BackingStore?.Set("membershipStatus", value); } + } /// The role property public BookingStaffRole? Role { get { return BackingStore?.Get("role"); } @@ -115,6 +120,7 @@ public override IDictionary> GetFieldDeserializers() {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, {"isEmailNotificationEnabled", n => { IsEmailNotificationEnabled = n.GetBoolValue(); } }, + {"membershipStatus", n => { MembershipStatus = n.GetEnumValue(); } }, {"role", n => { Role = n.GetEnumValue(); } }, {"timeZone", n => { TimeZone = n.GetStringValue(); } }, {"useBusinessHours", n => { UseBusinessHours = n.GetBoolValue(); } }, @@ -133,6 +139,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("emailAddress", EmailAddress); writer.WriteBoolValue("isEmailNotificationEnabled", IsEmailNotificationEnabled); + writer.WriteEnumValue("membershipStatus", MembershipStatus); writer.WriteEnumValue("role", Role); writer.WriteStringValue("timeZone", TimeZone); writer.WriteBoolValue("useBusinessHours", UseBusinessHours); diff --git a/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs b/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs new file mode 100644 index 00000000000..09ccc2b85c9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BookingStaffMembershipStatus.cs @@ -0,0 +1,26 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public enum BookingStaffMembershipStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "active")] + #pragma warning disable CS1591 + Active, + #pragma warning restore CS1591 + [EnumMember(Value = "pendingAcceptance")] + #pragma warning disable CS1591 + PendingAcceptance, + #pragma warning restore CS1591 + [EnumMember(Value = "rejectedByStaff")] + #pragma warning disable CS1591 + RejectedByStaff, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CompanySubscription.cs b/src/Microsoft.Graph/Generated/Models/CompanySubscription.cs new file mode 100644 index 00000000000..ad69ab3f6f5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CompanySubscription.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class CompanySubscription : Entity, IParsable + #pragma warning restore CS1591 + { + /// The commerceSubscriptionId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CommerceSubscriptionId { + get { return BackingStore?.Get("commerceSubscriptionId"); } + set { BackingStore?.Set("commerceSubscriptionId", value); } + } +#nullable restore +#else + public string CommerceSubscriptionId { + get { return BackingStore?.Get("commerceSubscriptionId"); } + set { BackingStore?.Set("commerceSubscriptionId", value); } + } +#endif + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The isTrial property + public bool? IsTrial { + get { return BackingStore?.Get("isTrial"); } + set { BackingStore?.Set("isTrial", value); } + } + /// The nextLifecycleDateTime property + public DateTimeOffset? NextLifecycleDateTime { + get { return BackingStore?.Get("nextLifecycleDateTime"); } + set { BackingStore?.Set("nextLifecycleDateTime", value); } + } + /// The ownerId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OwnerId { + get { return BackingStore?.Get("ownerId"); } + set { BackingStore?.Set("ownerId", value); } + } +#nullable restore +#else + public string OwnerId { + get { return BackingStore?.Get("ownerId"); } + set { BackingStore?.Set("ownerId", value); } + } +#endif + /// The ownerTenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OwnerTenantId { + get { return BackingStore?.Get("ownerTenantId"); } + set { BackingStore?.Set("ownerTenantId", value); } + } +#nullable restore +#else + public string OwnerTenantId { + get { return BackingStore?.Get("ownerTenantId"); } + set { BackingStore?.Set("ownerTenantId", value); } + } +#endif + /// The ownerType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OwnerType { + get { return BackingStore?.Get("ownerType"); } + set { BackingStore?.Set("ownerType", value); } + } +#nullable restore +#else + public string OwnerType { + get { return BackingStore?.Get("ownerType"); } + set { BackingStore?.Set("ownerType", value); } + } +#endif + /// The serviceStatus property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ServiceStatus { + get { return BackingStore?.Get?>("serviceStatus"); } + set { BackingStore?.Set("serviceStatus", value); } + } +#nullable restore +#else + public List ServiceStatus { + get { return BackingStore?.Get>("serviceStatus"); } + set { BackingStore?.Set("serviceStatus", value); } + } +#endif + /// The skuId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SkuId { + get { return BackingStore?.Get("skuId"); } + set { BackingStore?.Set("skuId", value); } + } +#nullable restore +#else + public string SkuId { + get { return BackingStore?.Get("skuId"); } + set { BackingStore?.Set("skuId", value); } + } +#endif + /// The skuPartNumber property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SkuPartNumber { + get { return BackingStore?.Get("skuPartNumber"); } + set { BackingStore?.Set("skuPartNumber", value); } + } +#nullable restore +#else + public string SkuPartNumber { + get { return BackingStore?.Get("skuPartNumber"); } + set { BackingStore?.Set("skuPartNumber", value); } + } +#endif + /// The status property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } +#nullable restore +#else + public string Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } +#endif + /// The totalLicenses property + public int? TotalLicenses { + get { return BackingStore?.Get("totalLicenses"); } + set { BackingStore?.Set("totalLicenses", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CompanySubscription CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CompanySubscription(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"commerceSubscriptionId", n => { CommerceSubscriptionId = n.GetStringValue(); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"isTrial", n => { IsTrial = n.GetBoolValue(); } }, + {"nextLifecycleDateTime", n => { NextLifecycleDateTime = n.GetDateTimeOffsetValue(); } }, + {"ownerId", n => { OwnerId = n.GetStringValue(); } }, + {"ownerTenantId", n => { OwnerTenantId = n.GetStringValue(); } }, + {"ownerType", n => { OwnerType = n.GetStringValue(); } }, + {"serviceStatus", n => { ServiceStatus = n.GetCollectionOfObjectValues(ServicePlanInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + {"skuId", n => { SkuId = n.GetStringValue(); } }, + {"skuPartNumber", n => { SkuPartNumber = n.GetStringValue(); } }, + {"status", n => { Status = n.GetStringValue(); } }, + {"totalLicenses", n => { TotalLicenses = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("commerceSubscriptionId", CommerceSubscriptionId); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteBoolValue("isTrial", IsTrial); + writer.WriteDateTimeOffsetValue("nextLifecycleDateTime", NextLifecycleDateTime); + writer.WriteStringValue("ownerId", OwnerId); + writer.WriteStringValue("ownerTenantId", OwnerTenantId); + writer.WriteStringValue("ownerType", OwnerType); + writer.WriteCollectionOfObjectValues("serviceStatus", ServiceStatus); + writer.WriteStringValue("skuId", SkuId); + writer.WriteStringValue("skuPartNumber", SkuPartNumber); + writer.WriteStringValue("status", Status); + writer.WriteIntValue("totalLicenses", TotalLicenses); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CompanySubscriptionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CompanySubscriptionCollectionResponse.cs new file mode 100644 index 00000000000..b49617f01bd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CompanySubscriptionCollectionResponse.cs @@ -0,0 +1,58 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class CompanySubscriptionCollectionResponse : BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CompanySubscriptionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CompanySubscriptionCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(CompanySubscription.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/CrossTenantAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs index d1112c3b052..9aae64a9366 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicy.cs @@ -50,6 +50,20 @@ public List Partners { get { return BackingStore?.Get>("partners"); } set { BackingStore?.Set("partners", value); } } +#endif + /// Represents the base policy in the directory for multitenant organization settings. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PolicyTemplate? Templates { + get { return BackingStore?.Get("templates"); } + set { BackingStore?.Set("templates", value); } + } +#nullable restore +#else + public PolicyTemplate Templates { + get { return BackingStore?.Get("templates"); } + set { BackingStore?.Set("templates", value); } + } #endif /// /// Instantiates a new and sets the default values. @@ -79,6 +93,7 @@ public override IDictionary> GetFieldDeserializers() {"allowedCloudEndpoints", n => { AllowedCloudEndpoints = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"default", n => { Default = n.GetObjectValue(CrossTenantAccessPolicyConfigurationDefault.CreateFromDiscriminatorValue); } }, {"partners", n => { Partners = n.GetCollectionOfObjectValues(CrossTenantAccessPolicyConfigurationPartner.CreateFromDiscriminatorValue)?.ToList(); } }, + {"templates", n => { Templates = n.GetObjectValue(PolicyTemplate.CreateFromDiscriminatorValue); } }, }; } /// @@ -92,6 +107,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("allowedCloudEndpoints", AllowedCloudEndpoints); writer.WriteObjectValue("default", Default); writer.WriteCollectionOfObjectValues("partners", Partners); + writer.WriteObjectValue("templates", Templates); } } } diff --git a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs index f2736df6dc0..c39a35326c0 100644 --- a/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs +++ b/src/Microsoft.Graph/Generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs @@ -115,6 +115,11 @@ public CrossTenantAccessPolicyInboundTrust InboundTrust { set { BackingStore?.Set("inboundTrust", value); } } #endif + /// Identifies whether a tenant is a member of a multitenant organization. + public bool? IsInMultiTenantOrganization { + get { return BackingStore?.Get("isInMultiTenantOrganization"); } + set { BackingStore?.Set("isInMultiTenantOrganization", value); } + } /// Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. public bool? IsServiceProvider { get { return BackingStore?.Get("isServiceProvider"); } @@ -181,6 +186,7 @@ public virtual IDictionary> GetFieldDeserializers() {"b2bDirectConnectOutbound", n => { B2bDirectConnectOutbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, {"identitySynchronization", n => { IdentitySynchronization = n.GetObjectValue(CrossTenantIdentitySyncPolicyPartner.CreateFromDiscriminatorValue); } }, {"inboundTrust", n => { InboundTrust = n.GetObjectValue(CrossTenantAccessPolicyInboundTrust.CreateFromDiscriminatorValue); } }, + {"isInMultiTenantOrganization", n => { IsInMultiTenantOrganization = n.GetBoolValue(); } }, {"isServiceProvider", n => { IsServiceProvider = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, @@ -200,6 +206,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteObjectValue("b2bDirectConnectOutbound", B2bDirectConnectOutbound); writer.WriteObjectValue("identitySynchronization", IdentitySynchronization); writer.WriteObjectValue("inboundTrust", InboundTrust); + writer.WriteBoolValue("isInMultiTenantOrganization", IsInMultiTenantOrganization); writer.WriteBoolValue("isServiceProvider", IsServiceProvider); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("tenantId", TenantId); diff --git a/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs new file mode 100644 index 00000000000..aca32efafa0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtension.cs @@ -0,0 +1,54 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class CustomAuthenticationExtension : CustomCalloutExtension, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public CustomAuthenticationExtension() : base() + { + OdataType = "#microsoft.graph.customAuthenticationExtension"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CustomAuthenticationExtension CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.onTokenIssuanceStartCustomExtension" => new OnTokenIssuanceStartCustomExtension(), + _ => new CustomAuthenticationExtension(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtensionCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtensionCollectionResponse.cs new file mode 100644 index 00000000000..63f1d669cd9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CustomAuthenticationExtensionCollectionResponse.cs @@ -0,0 +1,58 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class CustomAuthenticationExtensionCollectionResponse : BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new CustomAuthenticationExtensionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CustomAuthenticationExtensionCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(CustomAuthenticationExtension.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/CustomCalloutExtension.cs b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs index be5eaf4d27d..3386dcff821 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomCalloutExtension.cs @@ -93,7 +93,9 @@ public CustomExtensionEndpointConfiguration EndpointConfiguration { { "#microsoft.graph.accessPackageAssignmentRequestWorkflowExtension" => new AccessPackageAssignmentRequestWorkflowExtension(), "#microsoft.graph.accessPackageAssignmentWorkflowExtension" => new AccessPackageAssignmentWorkflowExtension(), + "#microsoft.graph.customAuthenticationExtension" => new CustomAuthenticationExtension(), "#microsoft.graph.identityGovernance.customTaskExtension" => new CustomTaskExtension(), + "#microsoft.graph.onTokenIssuanceStartCustomExtension" => new OnTokenIssuanceStartCustomExtension(), _ => new CustomCalloutExtension(), }; } diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs index 55555feb38f..01c7c64523b 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionAuthenticationConfiguration.cs @@ -51,6 +51,7 @@ public static CustomExtensionAuthenticationConfiguration CreateFromDiscriminator return mappingValue switch { "#microsoft.graph.azureAdPopTokenAuthentication" => new AzureAdPopTokenAuthentication(), + "#microsoft.graph.azureAdTokenAuthentication" => new AzureAdTokenAuthentication(), _ => new CustomExtensionAuthenticationConfiguration(), }; } diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs index 1d88d94324b..7ea495b1f9a 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs @@ -17,6 +17,11 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } + /// The max number of retries that Microsoft Entra ID makes to the external API. Values of 0 or 1 are supported. If null, the default for the service applies. + public int? MaximumRetries { + get { return BackingStore?.Get("maximumRetries"); } + set { BackingStore?.Set("maximumRetries", value); } + } /// The OdataType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -62,6 +67,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"maximumRetries", n => { MaximumRetries = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"timeoutInMilliseconds", n => { TimeoutInMilliseconds = n.GetIntValue(); } }, }; @@ -73,6 +79,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("maximumRetries", MaximumRetries); writer.WriteStringValue("@odata.type", OdataType); writer.WriteIntValue("timeoutInMilliseconds", TimeoutInMilliseconds); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs index b4d0faaace4..668205540e2 100644 --- a/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionEndpointConfiguration.cs @@ -50,6 +50,7 @@ public static CustomExtensionEndpointConfiguration CreateFromDiscriminatorValue( var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.httpRequestEndpoint" => new HttpRequestEndpoint(), "#microsoft.graph.logicAppTriggerEndpointConfiguration" => new LogicAppTriggerEndpointConfiguration(), _ => new CustomExtensionEndpointConfiguration(), }; diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionOverwriteConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionOverwriteConfiguration.cs new file mode 100644 index 00000000000..a4444e92b70 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionOverwriteConfiguration.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class CustomExtensionOverwriteConfiguration : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// Configuration regarding properties of the custom extension which can be overwritten per event listener. If no values are provided, the properties on the custom extension are used. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CustomExtensionClientConfiguration? ClientConfiguration { + get { return BackingStore?.Get("clientConfiguration"); } + set { BackingStore?.Set("clientConfiguration", value); } + } +#nullable restore +#else + public CustomExtensionClientConfiguration ClientConfiguration { + get { return BackingStore?.Get("clientConfiguration"); } + set { BackingStore?.Set("clientConfiguration", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CustomExtensionOverwriteConfiguration() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static CustomExtensionOverwriteConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CustomExtensionOverwriteConfiguration(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"clientConfiguration", n => { ClientConfiguration = n.GetObjectValue(CustomExtensionClientConfiguration.CreateFromDiscriminatorValue); } }, + {"@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.WriteObjectValue("clientConfiguration", ClientConfiguration); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs index 48d98c1974c..e34a3d16e86 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs @@ -44,6 +44,7 @@ public DateTimeOffset? DeletedDateTime { "#microsoft.graph.groupSettingTemplate" => new GroupSettingTemplate(), "#microsoft.graph.homeRealmDiscoveryPolicy" => new HomeRealmDiscoveryPolicy(), "#microsoft.graph.identitySecurityDefaultsEnforcementPolicy" => new IdentitySecurityDefaultsEnforcementPolicy(), + "#microsoft.graph.multiTenantOrganizationMember" => new MultiTenantOrganizationMember(), "#microsoft.graph.organization" => new Organization(), "#microsoft.graph.orgContact" => new OrgContact(), "#microsoft.graph.permissionGrantPolicy" => new PermissionGrantPolicy(), diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs index 74a848a5dc3..7291eea30c0 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs @@ -106,6 +106,20 @@ public List OnPremisesSynchronization { get { return BackingStore?.Get>("onPremisesSynchronization"); } set { BackingStore?.Set("onPremisesSynchronization", value); } } +#endif + /// The subscriptions property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Subscriptions { + get { return BackingStore?.Get?>("subscriptions"); } + set { BackingStore?.Set("subscriptions", value); } + } +#nullable restore +#else + public List Subscriptions { + get { return BackingStore?.Get>("subscriptions"); } + set { BackingStore?.Set("subscriptions", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -132,6 +146,7 @@ public override IDictionary> GetFieldDeserializers() {"deviceLocalCredentials", n => { DeviceLocalCredentials = n.GetCollectionOfObjectValues(DeviceLocalCredentialInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"federationConfigurations", n => { FederationConfigurations = n.GetCollectionOfObjectValues(IdentityProviderBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"onPremisesSynchronization", n => { OnPremisesSynchronization = n.GetCollectionOfObjectValues(OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue)?.ToList(); } }, + {"subscriptions", n => { Subscriptions = n.GetCollectionOfObjectValues(CompanySubscription.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -149,6 +164,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("deviceLocalCredentials", DeviceLocalCredentials); writer.WriteCollectionOfObjectValues("federationConfigurations", FederationConfigurations); writer.WriteCollectionOfObjectValues("onPremisesSynchronization", OnPremisesSynchronization); + writer.WriteCollectionOfObjectValues("subscriptions", Subscriptions); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Domain.cs b/src/Microsoft.Graph/Generated/Models/Domain.cs index fb95b350f38..50a991e86dd 100644 --- a/src/Microsoft.Graph/Generated/Models/Domain.cs +++ b/src/Microsoft.Graph/Generated/Models/Domain.cs @@ -9,7 +9,7 @@ namespace Microsoft.Graph.Models { public class Domain : Entity, IParsable #pragma warning restore CS1591 { - /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. + /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Microsoft Entra ID performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. To update this property in delegated scenarios, the calling app must be assigned the Directory.AccessAsUser.All delegated permission. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AuthenticationType { @@ -37,7 +37,7 @@ public string AvailabilityStatus { set { BackingStore?.Set("availabilityStatus", value); } } #endif - /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. + /// The objects such as users and groups that reference the domain ID. Read-only, Nullable. Supports $expand and $filter by the OData type of objects returned. For example, /domains/{domainId}/domainNameReferences/microsoft.graph.user and /domains/{domainId}/domainNameReferences/microsoft.graph.group. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DomainNameReferences { @@ -65,17 +65,17 @@ public List FederationConfiguration { set { BackingStore?.Set("federationConfiguration", value); } } #endif - /// The value of the property is false if the DNS record management of the domain has been delegated to Microsoft 365. Otherwise, the value is true. Not nullable + /// The value of the property is false if the DNS record management of the domain is delegated to Microsoft 365. Otherwise, the value is true. Not nullable public bool? IsAdminManaged { get { return BackingStore?.Get("isAdminManaged"); } set { BackingStore?.Set("isAdminManaged", value); } } - /// true if this is the default domain that is used for user creation. There is only one default domain per company. Not nullable + /// true if this is the default domain that is used for user creation. There's only one default domain per company. Not nullable public bool? IsDefault { get { return BackingStore?.Get("isDefault"); } set { BackingStore?.Set("isDefault", value); } } - /// true if this is the initial domain created by Microsoft Online Services (contoso.com). There is only one initial domain per company. Not nullable + /// true if this is the initial domain created by Microsoft Online Services (contoso.com). There's only one initial domain per company. Not nullable public bool? IsInitial { get { return BackingStore?.Get("isInitial"); } set { BackingStore?.Set("isInitial", value); } @@ -118,12 +118,12 @@ public string Model { set { BackingStore?.Set("model", value); } } #endif - /// Specifies the number of days before a user receives notification that their password will expire. If the property is not set, a default value of 14 days will be used. + /// Specifies the number of days before a user receives notification that their password will expire. If the property isn't set, a default value of 14 days is used. public int? PasswordNotificationWindowInDays { get { return BackingStore?.Get("passwordNotificationWindowInDays"); } set { BackingStore?.Set("passwordNotificationWindowInDays", value); } } - /// Specifies the length of time that a password is valid before it must be changed. If the property is not set, a default value of 90 days will be used. + /// Specifies the length of time that a password is valid before it must be changed. If the property isn't set, a default value of 90 days is used. public int? PasswordValidityPeriodInDays { get { return BackingStore?.Get("passwordValidityPeriodInDays"); } set { BackingStore?.Set("passwordValidityPeriodInDays", value); } @@ -156,7 +156,7 @@ public DomainState State { set { BackingStore?.Set("state", value); } } #endif - /// The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values which you can add/remove using Graph API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. + /// The capabilities assigned to the domain. Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. The values that you can add or remove using the API include: Email, OfficeCommunicationsOnline, Yammer. Not nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? SupportedServices { diff --git a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs index eddf17c3ff7..f90d62b7601 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainDnsRecord.cs @@ -9,7 +9,7 @@ namespace Microsoft.Graph.Models { public class DomainDnsRecord : Entity, IParsable #pragma warning restore CS1591 { - /// If false, this record must be configured by the customer at the DNS host for Microsoft Online Services to operate correctly with the domain. + /// If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain. public bool? IsOptional { get { return BackingStore?.Get("isOptional"); } set { BackingStore?.Set("isOptional", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DomainState.cs b/src/Microsoft.Graph/Generated/Models/DomainState.cs index 3ab63757550..73af5be941a 100644 --- a/src/Microsoft.Graph/Generated/Models/DomainState.cs +++ b/src/Microsoft.Graph/Generated/Models/DomainState.cs @@ -36,7 +36,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Type of asynchronous operation. The values can be ForceDelete or Verification + /// Type of asynchronous operation. The values can be ForceDelete or Verification. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Operation { @@ -50,7 +50,7 @@ public string Operation { set { BackingStore?.Set("operation", value); } } #endif - /// Current status of the operation. Scheduled - Operation has been scheduled but has not started. InProgress - Task has started and is in progress. Failed - Operation has failed. + /// Current status of the operation. Scheduled - Operation is scheduled but hasn't started. InProgress - Task is in progress. Failed - The operation failed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Status { diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 5f48bea1802..35163642d48 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -152,6 +152,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.authentication" => new Authentication(), "#microsoft.graph.authenticationCombinationConfiguration" => new AuthenticationCombinationConfiguration(), "#microsoft.graph.authenticationContextClassReference" => new AuthenticationContextClassReference(), + "#microsoft.graph.authenticationEventListener" => new AuthenticationEventListener(), "#microsoft.graph.authenticationFlowsPolicy" => new AuthenticationFlowsPolicy(), "#microsoft.graph.authenticationMethod" => new AuthenticationMethod(), "#microsoft.graph.authenticationMethodConfiguration" => new AuthenticationMethodConfiguration(), @@ -219,6 +220,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.columnDefinition" => new ColumnDefinition(), "#microsoft.graph.columnLink" => new ColumnLink(), "#microsoft.graph.commsOperation" => new CommsOperation(), + "#microsoft.graph.companySubscription" => new CompanySubscription(), "#microsoft.graph.complianceManagementPartner" => new ComplianceManagementPartner(), "#microsoft.graph.conditionalAccessPolicy" => new ConditionalAccessPolicy(), "#microsoft.graph.conditionalAccessRoot" => new ConditionalAccessRoot(), @@ -235,6 +237,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.countryNamedLocation" => new CountryNamedLocation(), "#microsoft.graph.crossTenantAccessPolicy" => new CrossTenantAccessPolicy(), "#microsoft.graph.crossTenantAccessPolicyConfigurationDefault" => new CrossTenantAccessPolicyConfigurationDefault(), + "#microsoft.graph.customAuthenticationExtension" => new CustomAuthenticationExtension(), "#microsoft.graph.customCalloutExtension" => new CustomCalloutExtension(), "#microsoft.graph.customExtensionStageSetting" => new CustomExtensionStageSetting(), "#microsoft.graph.customSecurityAttributeDefinition" => new CustomSecurityAttributeDefinition(), @@ -501,6 +504,11 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.mobileContainedApp" => new MobileContainedApp(), "#microsoft.graph.mobileLobApp" => new MobileLobApp(), "#microsoft.graph.mobileThreatDefenseConnector" => new MobileThreatDefenseConnector(), + "#microsoft.graph.multiTenantOrganization" => new MultiTenantOrganization(), + "#microsoft.graph.multiTenantOrganizationIdentitySyncPolicyTemplate" => new MultiTenantOrganizationIdentitySyncPolicyTemplate(), + "#microsoft.graph.multiTenantOrganizationJoinRequestRecord" => new MultiTenantOrganizationJoinRequestRecord(), + "#microsoft.graph.multiTenantOrganizationMember" => new MultiTenantOrganizationMember(), + "#microsoft.graph.multiTenantOrganizationPartnerConfigurationTemplate" => new MultiTenantOrganizationPartnerConfigurationTemplate(), "#microsoft.graph.multiValueLegacyExtendedProperty" => new MultiValueLegacyExtendedProperty(), "#microsoft.graph.muteParticipantOperation" => new MuteParticipantOperation(), "#microsoft.graph.namedLocation" => new NamedLocation(), @@ -521,6 +529,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.onlineMeetingBase" => new OnlineMeetingBase(), "#microsoft.graph.onPremisesConditionalAccessSettings" => new OnPremisesConditionalAccessSettings(), "#microsoft.graph.onPremisesDirectorySynchronization" => new OnPremisesDirectorySynchronization(), + "#microsoft.graph.onTokenIssuanceStartCustomExtension" => new OnTokenIssuanceStartCustomExtension(), + "#microsoft.graph.onTokenIssuanceStartListener" => new OnTokenIssuanceStartListener(), "#microsoft.graph.openShift" => new OpenShift(), "#microsoft.graph.openShiftChangeRequest" => new OpenShiftChangeRequest(), "#microsoft.graph.openTypeExtension" => new OpenTypeExtension(), @@ -572,6 +582,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.playPromptOperation" => new PlayPromptOperation(), "#microsoft.graph.policyBase" => new PolicyBase(), "#microsoft.graph.policyRoot" => new PolicyRoot(), + "#microsoft.graph.policyTemplate" => new PolicyTemplate(), "#microsoft.graph.post" => new Post(), "#microsoft.graph.presence" => new Presence(), "#microsoft.graph.printConnector" => new PrintConnector(), diff --git a/src/Microsoft.Graph/Generated/Models/HttpRequestEndpoint.cs b/src/Microsoft.Graph/Generated/Models/HttpRequestEndpoint.cs new file mode 100644 index 00000000000..a092ef98b36 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/HttpRequestEndpoint.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class HttpRequestEndpoint : CustomExtensionEndpointConfiguration, IParsable + #pragma warning restore CS1591 + { + /// The HTTP endpoint that a custom extension calls. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TargetUrl { + get { return BackingStore?.Get("targetUrl"); } + set { BackingStore?.Set("targetUrl", value); } + } +#nullable restore +#else + public string TargetUrl { + get { return BackingStore?.Get("targetUrl"); } + set { BackingStore?.Set("targetUrl", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public HttpRequestEndpoint() : base() + { + OdataType = "#microsoft.graph.httpRequestEndpoint"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new HttpRequestEndpoint CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HttpRequestEndpoint(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"targetUrl", n => { TargetUrl = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("targetUrl", TargetUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs b/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs index aa1a5d3a7a9..4b46f4b10ee 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityContainer.cs @@ -22,6 +22,20 @@ public List ApiConnectors { get { return BackingStore?.Get>("apiConnectors"); } set { BackingStore?.Set("apiConnectors", value); } } +#endif + /// Represents listeners for custom authentication extension events in Azure AD for workforce and customers. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AuthenticationEventListeners { + get { return BackingStore?.Get?>("authenticationEventListeners"); } + set { BackingStore?.Set("authenticationEventListeners", value); } + } +#nullable restore +#else + public List AuthenticationEventListeners { + get { return BackingStore?.Get>("authenticationEventListeners"); } + set { BackingStore?.Set("authenticationEventListeners", value); } + } #endif /// Represents entry point for B2X/self-service sign-up identity userflows. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -50,6 +64,20 @@ public ConditionalAccessRoot ConditionalAccess { get { return BackingStore?.Get("conditionalAccess"); } set { BackingStore?.Set("conditionalAccess", value); } } +#endif + /// Represents custom extensions to authentication flows in Azure AD for workforce and customers. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CustomAuthenticationExtensions { + get { return BackingStore?.Get?>("customAuthenticationExtensions"); } + set { BackingStore?.Set("customAuthenticationExtensions", value); } + } +#nullable restore +#else + public List CustomAuthenticationExtensions { + get { return BackingStore?.Get>("customAuthenticationExtensions"); } + set { BackingStore?.Set("customAuthenticationExtensions", value); } + } #endif /// The identityProviders property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,8 +126,10 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { {"apiConnectors", n => { ApiConnectors = n.GetCollectionOfObjectValues(IdentityApiConnector.CreateFromDiscriminatorValue)?.ToList(); } }, + {"authenticationEventListeners", n => { AuthenticationEventListeners = n.GetCollectionOfObjectValues(AuthenticationEventListener.CreateFromDiscriminatorValue)?.ToList(); } }, {"b2xUserFlows", n => { B2xUserFlows = n.GetCollectionOfObjectValues(B2xIdentityUserFlow.CreateFromDiscriminatorValue)?.ToList(); } }, {"conditionalAccess", n => { ConditionalAccess = n.GetObjectValue(ConditionalAccessRoot.CreateFromDiscriminatorValue); } }, + {"customAuthenticationExtensions", n => { CustomAuthenticationExtensions = n.GetCollectionOfObjectValues(CustomAuthenticationExtension.CreateFromDiscriminatorValue)?.ToList(); } }, {"identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(IdentityProviderBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"userFlowAttributes", n => { UserFlowAttributes = n.GetCollectionOfObjectValues(IdentityUserFlowAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -113,8 +143,10 @@ public override void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("apiConnectors", ApiConnectors); + writer.WriteCollectionOfObjectValues("authenticationEventListeners", AuthenticationEventListeners); writer.WriteCollectionOfObjectValues("b2xUserFlows", B2xUserFlows); writer.WriteObjectValue("conditionalAccess", ConditionalAccess); + writer.WriteCollectionOfObjectValues("customAuthenticationExtensions", CustomAuthenticationExtensions); writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); writer.WriteCollectionOfObjectValues("userFlowAttributes", UserFlowAttributes); } diff --git a/src/Microsoft.Graph/Generated/Models/LearningContent.cs b/src/Microsoft.Graph/Generated/Models/LearningContent.cs index f22c1cac110..5a729489aee 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningContent.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningContent.cs @@ -137,7 +137,7 @@ public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } - /// The level property + /// The difficulty level of the learning content. Possible values are: Beginner, Intermediate, Advanced, unknownFutureValue. Optional. public Microsoft.Graph.Models.Level? Level { get { return BackingStore?.Get("level"); } set { BackingStore?.Set("level", value); } diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganization.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganization.cs new file mode 100644 index 00000000000..66584a706e0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganization.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.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganization : Entity, IParsable + #pragma warning restore CS1591 + { + /// Date when multitenant organization was created. Read-only. + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// Description of the multitenant organization. +#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 + /// Display name of the multitenant organization. +#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 + /// Defines the status of a tenant joining a multitenant organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public MultiTenantOrganizationJoinRequestRecord? JoinRequest { + get { return BackingStore?.Get("joinRequest"); } + set { BackingStore?.Set("joinRequest", value); } + } +#nullable restore +#else + public MultiTenantOrganizationJoinRequestRecord JoinRequest { + get { return BackingStore?.Get("joinRequest"); } + set { BackingStore?.Set("joinRequest", value); } + } +#endif + /// State of the multitenant organization. The possible values are: active, inactive, unknownFutureValue. active indicates the multitenant organization is created. inactive indicates the multitenant organization isn't created. Read-only. + public MultiTenantOrganizationState? State { + get { return BackingStore?.Get("state"); } + set { BackingStore?.Set("state", value); } + } + /// Defines tenants added to a multitenant organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Tenants { + get { return BackingStore?.Get?>("tenants"); } + set { BackingStore?.Set("tenants", value); } + } +#nullable restore +#else + public List Tenants { + get { return BackingStore?.Get>("tenants"); } + set { BackingStore?.Set("tenants", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganization CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganization(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"description", n => { Description = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"joinRequest", n => { JoinRequest = n.GetObjectValue(MultiTenantOrganizationJoinRequestRecord.CreateFromDiscriminatorValue); } }, + {"state", n => { State = n.GetEnumValue(); } }, + {"tenants", n => { Tenants = n.GetCollectionOfObjectValues(MultiTenantOrganizationMember.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.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteObjectValue("joinRequest", JoinRequest); + writer.WriteEnumValue("state", State); + writer.WriteCollectionOfObjectValues("tenants", Tenants); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.cs new file mode 100644 index 00000000000..4707fc830b6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationIdentitySyncPolicyTemplate.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationIdentitySyncPolicyTemplate : Entity, IParsable + #pragma warning restore CS1591 + { + /// The templateApplicationLevel property + public Microsoft.Graph.Models.TemplateApplicationLevel? TemplateApplicationLevel { + get { return BackingStore?.Get("templateApplicationLevel"); } + set { BackingStore?.Set("templateApplicationLevel", value); } + } + /// Defines whether users can be synchronized from the partner tenant. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantUserSyncInbound? UserSyncInbound { + get { return BackingStore?.Get("userSyncInbound"); } + set { BackingStore?.Set("userSyncInbound", value); } + } +#nullable restore +#else + public CrossTenantUserSyncInbound UserSyncInbound { + get { return BackingStore?.Get("userSyncInbound"); } + set { BackingStore?.Set("userSyncInbound", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganizationIdentitySyncPolicyTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationIdentitySyncPolicyTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"templateApplicationLevel", n => { TemplateApplicationLevel = n.GetEnumValue(); } }, + {"userSyncInbound", n => { UserSyncInbound = n.GetObjectValue(CrossTenantUserSyncInbound.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteEnumValue("templateApplicationLevel", TemplateApplicationLevel); + writer.WriteObjectValue("userSyncInbound", UserSyncInbound); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestRecord.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestRecord.cs new file mode 100644 index 00000000000..de9506e29c5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestRecord.cs @@ -0,0 +1,88 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationJoinRequestRecord : Entity, IParsable + #pragma warning restore CS1591 + { + /// Tenant ID of the Microsoft Entra tenant that added a tenant to the multitenant organization. To reset a failed join request, set addedByTenantId to 00000000-0000-0000-0000-000000000000. Required. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AddedByTenantId { + get { return BackingStore?.Get("addedByTenantId"); } + set { BackingStore?.Set("addedByTenantId", value); } + } +#nullable restore +#else + public string AddedByTenantId { + get { return BackingStore?.Get("addedByTenantId"); } + set { BackingStore?.Set("addedByTenantId", value); } + } +#endif + /// State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + public MultiTenantOrganizationMemberState? MemberState { + get { return BackingStore?.Get("memberState"); } + set { BackingStore?.Set("memberState", value); } + } + /// Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. Tenants with the member role can participate in a multitenant organization. + public MultiTenantOrganizationMemberRole? Role { + get { return BackingStore?.Get("role"); } + set { BackingStore?.Set("role", value); } + } + /// Details of the processing status for a tenant joining a multitenant organization. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public MultiTenantOrganizationJoinRequestTransitionDetails? TransitionDetails { + get { return BackingStore?.Get("transitionDetails"); } + set { BackingStore?.Set("transitionDetails", value); } + } +#nullable restore +#else + public MultiTenantOrganizationJoinRequestTransitionDetails TransitionDetails { + get { return BackingStore?.Get("transitionDetails"); } + set { BackingStore?.Set("transitionDetails", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganizationJoinRequestRecord CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationJoinRequestRecord(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"addedByTenantId", n => { AddedByTenantId = n.GetStringValue(); } }, + {"memberState", n => { MemberState = n.GetEnumValue(); } }, + {"role", n => { Role = n.GetEnumValue(); } }, + {"transitionDetails", n => { TransitionDetails = n.GetObjectValue(MultiTenantOrganizationJoinRequestTransitionDetails.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("addedByTenantId", AddedByTenantId); + writer.WriteEnumValue("memberState", MemberState); + writer.WriteEnumValue("role", Role); + writer.WriteObjectValue("transitionDetails", TransitionDetails); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.cs new file mode 100644 index 00000000000..796bd6f6511 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationJoinRequestTransitionDetails.cs @@ -0,0 +1,104 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationJoinRequestTransitionDetails : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + public MultiTenantOrganizationMemberState? DesiredMemberState { + get { return BackingStore?.Get("desiredMemberState"); } + set { BackingStore?.Set("desiredMemberState", value); } + } + /// Details that explain the processing status if any. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Details { + get { return BackingStore?.Get("details"); } + set { BackingStore?.Set("details", value); } + } +#nullable restore +#else + public string Details { + get { return BackingStore?.Get("details"); } + set { BackingStore?.Set("details", 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 + /// Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + public MultiTenantOrganizationMemberProcessingStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public MultiTenantOrganizationJoinRequestTransitionDetails() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static MultiTenantOrganizationJoinRequestTransitionDetails CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationJoinRequestTransitionDetails(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"desiredMemberState", n => { DesiredMemberState = n.GetEnumValue(); } }, + {"details", n => { Details = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"status", n => { Status = 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.WriteEnumValue("desiredMemberState", DesiredMemberState); + writer.WriteStringValue("details", Details); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("status", Status); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMember.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMember.cs new file mode 100644 index 00000000000..1d025a3024a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMember.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationMember : DirectoryObject, IParsable + #pragma warning restore CS1591 + { + /// Tenant ID of the tenant that added the tenant to the multitenant organization. Read-only. + public Guid? AddedByTenantId { + get { return BackingStore?.Get("addedByTenantId"); } + set { BackingStore?.Set("addedByTenantId", value); } + } + /// Date and time when the tenant was added to the multitenant organization. Read-only. + public DateTimeOffset? AddedDateTime { + get { return BackingStore?.Get("addedDateTime"); } + set { BackingStore?.Set("addedDateTime", value); } + } + /// Display name of the tenant added to the multitenant organization. +#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 + /// Date and time when the tenant joined the multitenant organization. Read-only. + public DateTimeOffset? JoinedDateTime { + get { return BackingStore?.Get("joinedDateTime"); } + set { BackingStore?.Set("joinedDateTime", value); } + } + /// Role of the tenant in the multitenant organization. The possible values are: owner, member (default), unknownFutureValue. Tenants with the owner role can manage the multitenant organization but tenants with the member role can only participate in a multitenant organization. There can be multiple tenants with the owner role in a multitenant organization. + public MultiTenantOrganizationMemberRole? Role { + get { return BackingStore?.Get("role"); } + set { BackingStore?.Set("role", value); } + } + /// State of the tenant in the multitenant organization. The possible values are: pending, active, removed, unknownFutureValue. Tenants in the pending state must join the multitenant organization to participate in the multitenant organization. Tenants in the active state can participate in the multitenant organization. Tenants in the removed state are in the process of being removed from the multitenant organization. Read-only. + public MultiTenantOrganizationMemberState? State { + get { return BackingStore?.Get("state"); } + set { BackingStore?.Set("state", value); } + } + /// Tenant ID of the Microsoft Entra tenant added to the multitenant organization. Set at the time tenant is added.Supports $filter. Key. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// Details of the processing status for a tenant in a multitenant organization. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public MultiTenantOrganizationMemberTransitionDetails? TransitionDetails { + get { return BackingStore?.Get("transitionDetails"); } + set { BackingStore?.Set("transitionDetails", value); } + } +#nullable restore +#else + public MultiTenantOrganizationMemberTransitionDetails TransitionDetails { + get { return BackingStore?.Get("transitionDetails"); } + set { BackingStore?.Set("transitionDetails", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public MultiTenantOrganizationMember() : base() + { + OdataType = "#microsoft.graph.multiTenantOrganizationMember"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganizationMember CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationMember(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"addedByTenantId", n => { AddedByTenantId = n.GetGuidValue(); } }, + {"addedDateTime", n => { AddedDateTime = n.GetDateTimeOffsetValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"joinedDateTime", n => { JoinedDateTime = n.GetDateTimeOffsetValue(); } }, + {"role", n => { Role = n.GetEnumValue(); } }, + {"state", n => { State = n.GetEnumValue(); } }, + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + {"transitionDetails", n => { TransitionDetails = n.GetObjectValue(MultiTenantOrganizationMemberTransitionDetails.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteGuidValue("addedByTenantId", AddedByTenantId); + writer.WriteDateTimeOffsetValue("addedDateTime", AddedDateTime); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteDateTimeOffsetValue("joinedDateTime", JoinedDateTime); + writer.WriteEnumValue("role", Role); + writer.WriteEnumValue("state", State); + writer.WriteStringValue("tenantId", TenantId); + writer.WriteObjectValue("transitionDetails", TransitionDetails); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.cs new file mode 100644 index 00000000000..51319da5f68 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberCollectionResponse.cs @@ -0,0 +1,58 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationMemberCollectionResponse : BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganizationMemberCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationMemberCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"value", n => { Value = n.GetCollectionOfObjectValues(MultiTenantOrganizationMember.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/MultiTenantOrganizationMemberProcessingStatus.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.cs new file mode 100644 index 00000000000..1c4dfe7b661 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberProcessingStatus.cs @@ -0,0 +1,30 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public enum MultiTenantOrganizationMemberProcessingStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "notStarted")] + #pragma warning disable CS1591 + NotStarted, + #pragma warning restore CS1591 + [EnumMember(Value = "running")] + #pragma warning disable CS1591 + Running, + #pragma warning restore CS1591 + [EnumMember(Value = "succeeded")] + #pragma warning disable CS1591 + Succeeded, + #pragma warning restore CS1591 + [EnumMember(Value = "failed")] + #pragma warning disable CS1591 + Failed, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberRole.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberRole.cs new file mode 100644 index 00000000000..3455c5ede33 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberRole.cs @@ -0,0 +1,22 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public enum MultiTenantOrganizationMemberRole + #pragma warning restore CS1591 + { + [EnumMember(Value = "owner")] + #pragma warning disable CS1591 + Owner, + #pragma warning restore CS1591 + [EnumMember(Value = "member")] + #pragma warning disable CS1591 + Member, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberState.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberState.cs new file mode 100644 index 00000000000..672f325b381 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberState.cs @@ -0,0 +1,26 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public enum MultiTenantOrganizationMemberState + #pragma warning restore CS1591 + { + [EnumMember(Value = "pending")] + #pragma warning disable CS1591 + Pending, + #pragma warning restore CS1591 + [EnumMember(Value = "active")] + #pragma warning disable CS1591 + Active, + #pragma warning restore CS1591 + [EnumMember(Value = "removed")] + #pragma warning disable CS1591 + Removed, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberTransitionDetails.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberTransitionDetails.cs new file mode 100644 index 00000000000..a58b3c1c296 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationMemberTransitionDetails.cs @@ -0,0 +1,111 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationMemberTransitionDetails : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// Role of the tenant in the multitenant organization. The possible values are: owner, member, unknownFutureValue. + public MultiTenantOrganizationMemberRole? DesiredRole { + get { return BackingStore?.Get("desiredRole"); } + set { BackingStore?.Set("desiredRole", value); } + } + /// State of the tenant in the multitenant organization currently being processed. The possible values are: pending, active, removed, unknownFutureValue. Read-only. + public MultiTenantOrganizationMemberState? DesiredState { + get { return BackingStore?.Get("desiredState"); } + set { BackingStore?.Set("desiredState", value); } + } + /// Details that explain the processing status if any. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Details { + get { return BackingStore?.Get("details"); } + set { BackingStore?.Set("details", value); } + } +#nullable restore +#else + public string Details { + get { return BackingStore?.Get("details"); } + set { BackingStore?.Set("details", 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 + /// Processing state of the asynchronous job. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue. Read-only. + public MultiTenantOrganizationMemberProcessingStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public MultiTenantOrganizationMemberTransitionDetails() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static MultiTenantOrganizationMemberTransitionDetails CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationMemberTransitionDetails(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"desiredRole", n => { DesiredRole = n.GetEnumValue(); } }, + {"desiredState", n => { DesiredState = n.GetEnumValue(); } }, + {"details", n => { Details = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"status", n => { Status = 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.WriteEnumValue("desiredRole", DesiredRole); + writer.WriteEnumValue("desiredState", DesiredState); + writer.WriteStringValue("details", Details); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("status", Status); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.cs new file mode 100644 index 00000000000..99ff8b04453 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationPartnerConfigurationTemplate.cs @@ -0,0 +1,145 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class MultiTenantOrganizationPartnerConfigurationTemplate : Entity, IParsable + #pragma warning restore CS1591 + { + /// Determines the partner-specific configuration for automatic user consent settings. Unless configured, the inboundAllowed and outboundAllowed properties are null and inherit from the default settings, which is always false. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public InboundOutboundPolicyConfiguration? AutomaticUserConsentSettings { + get { return BackingStore?.Get("automaticUserConsentSettings"); } + set { BackingStore?.Set("automaticUserConsentSettings", value); } + } +#nullable restore +#else + public InboundOutboundPolicyConfiguration AutomaticUserConsentSettings { + get { return BackingStore?.Get("automaticUserConsentSettings"); } + set { BackingStore?.Set("automaticUserConsentSettings", value); } + } +#endif + /// Defines your partner-specific configuration for users from other organizations accessing your resources via Microsoft Entra B2B collaboration. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantAccessPolicyB2BSetting? B2bCollaborationInbound { + get { return BackingStore?.Get("b2bCollaborationInbound"); } + set { BackingStore?.Set("b2bCollaborationInbound", value); } + } +#nullable restore +#else + public CrossTenantAccessPolicyB2BSetting B2bCollaborationInbound { + get { return BackingStore?.Get("b2bCollaborationInbound"); } + set { BackingStore?.Set("b2bCollaborationInbound", value); } + } +#endif + /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B collaboration. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantAccessPolicyB2BSetting? B2bCollaborationOutbound { + get { return BackingStore?.Get("b2bCollaborationOutbound"); } + set { BackingStore?.Set("b2bCollaborationOutbound", value); } + } +#nullable restore +#else + public CrossTenantAccessPolicyB2BSetting B2bCollaborationOutbound { + get { return BackingStore?.Get("b2bCollaborationOutbound"); } + set { BackingStore?.Set("b2bCollaborationOutbound", value); } + } +#endif + /// Defines your partner-specific configuration for users from other organizations accessing your resources via Azure B2B direct connect. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantAccessPolicyB2BSetting? B2bDirectConnectInbound { + get { return BackingStore?.Get("b2bDirectConnectInbound"); } + set { BackingStore?.Set("b2bDirectConnectInbound", value); } + } +#nullable restore +#else + public CrossTenantAccessPolicyB2BSetting B2bDirectConnectInbound { + get { return BackingStore?.Get("b2bDirectConnectInbound"); } + set { BackingStore?.Set("b2bDirectConnectInbound", value); } + } +#endif + /// Defines your partner-specific configuration for users in your organization going outbound to access resources in another organization via Microsoft Entra B2B direct connect. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantAccessPolicyB2BSetting? B2bDirectConnectOutbound { + get { return BackingStore?.Get("b2bDirectConnectOutbound"); } + set { BackingStore?.Set("b2bDirectConnectOutbound", value); } + } +#nullable restore +#else + public CrossTenantAccessPolicyB2BSetting B2bDirectConnectOutbound { + get { return BackingStore?.Get("b2bDirectConnectOutbound"); } + set { BackingStore?.Set("b2bDirectConnectOutbound", value); } + } +#endif + /// Determines the partner-specific configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CrossTenantAccessPolicyInboundTrust? InboundTrust { + get { return BackingStore?.Get("inboundTrust"); } + set { BackingStore?.Set("inboundTrust", value); } + } +#nullable restore +#else + public CrossTenantAccessPolicyInboundTrust InboundTrust { + get { return BackingStore?.Get("inboundTrust"); } + set { BackingStore?.Set("inboundTrust", value); } + } +#endif + /// The templateApplicationLevel property + public Microsoft.Graph.Models.TemplateApplicationLevel? TemplateApplicationLevel { + get { return BackingStore?.Get("templateApplicationLevel"); } + set { BackingStore?.Set("templateApplicationLevel", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new MultiTenantOrganizationPartnerConfigurationTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MultiTenantOrganizationPartnerConfigurationTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"automaticUserConsentSettings", n => { AutomaticUserConsentSettings = n.GetObjectValue(InboundOutboundPolicyConfiguration.CreateFromDiscriminatorValue); } }, + {"b2bCollaborationInbound", n => { B2bCollaborationInbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, + {"b2bCollaborationOutbound", n => { B2bCollaborationOutbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, + {"b2bDirectConnectInbound", n => { B2bDirectConnectInbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, + {"b2bDirectConnectOutbound", n => { B2bDirectConnectOutbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, + {"inboundTrust", n => { InboundTrust = n.GetObjectValue(CrossTenantAccessPolicyInboundTrust.CreateFromDiscriminatorValue); } }, + {"templateApplicationLevel", n => { TemplateApplicationLevel = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("automaticUserConsentSettings", AutomaticUserConsentSettings); + writer.WriteObjectValue("b2bCollaborationInbound", B2bCollaborationInbound); + writer.WriteObjectValue("b2bCollaborationOutbound", B2bCollaborationOutbound); + writer.WriteObjectValue("b2bDirectConnectInbound", B2bDirectConnectInbound); + writer.WriteObjectValue("b2bDirectConnectOutbound", B2bDirectConnectOutbound); + writer.WriteObjectValue("inboundTrust", InboundTrust); + writer.WriteEnumValue("templateApplicationLevel", TemplateApplicationLevel); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationState.cs b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationState.cs new file mode 100644 index 00000000000..32b56c664c4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MultiTenantOrganizationState.cs @@ -0,0 +1,22 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public enum MultiTenantOrganizationState + #pragma warning restore CS1591 + { + [EnumMember(Value = "active")] + #pragma warning disable CS1591 + Active, + #pragma warning restore CS1591 + [EnumMember(Value = "inactive")] + #pragma warning disable CS1591 + Inactive, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtension.cs b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtension.cs new file mode 100644 index 00000000000..4911a86ef7c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtension.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class OnTokenIssuanceStartCustomExtension : CustomAuthenticationExtension, IParsable + #pragma warning restore CS1591 + { + /// Collection of claims to be returned by the API called by this custom authentication extension. Used to populate claims mapping experience in Microsoft Entra admin center. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ClaimsForTokenConfiguration { + get { return BackingStore?.Get?>("claimsForTokenConfiguration"); } + set { BackingStore?.Set("claimsForTokenConfiguration", value); } + } +#nullable restore +#else + public List ClaimsForTokenConfiguration { + get { return BackingStore?.Get>("claimsForTokenConfiguration"); } + set { BackingStore?.Set("claimsForTokenConfiguration", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnTokenIssuanceStartCustomExtension() : base() + { + OdataType = "#microsoft.graph.onTokenIssuanceStartCustomExtension"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new OnTokenIssuanceStartCustomExtension CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new OnTokenIssuanceStartCustomExtension(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"claimsForTokenConfiguration", n => { ClaimsForTokenConfiguration = n.GetCollectionOfObjectValues(OnTokenIssuanceStartReturnClaim.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("claimsForTokenConfiguration", ClaimsForTokenConfiguration); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.cs b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.cs new file mode 100644 index 00000000000..d832442b819 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartCustomExtensionHandler.cs @@ -0,0 +1,81 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class OnTokenIssuanceStartCustomExtensionHandler : OnTokenIssuanceStartHandler, IParsable + #pragma warning restore CS1591 + { + /// The configuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CustomExtensionOverwriteConfiguration? Configuration { + get { return BackingStore?.Get("configuration"); } + set { BackingStore?.Set("configuration", value); } + } +#nullable restore +#else + public CustomExtensionOverwriteConfiguration Configuration { + get { return BackingStore?.Get("configuration"); } + set { BackingStore?.Set("configuration", value); } + } +#endif + /// The customExtension property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public OnTokenIssuanceStartCustomExtension? CustomExtension { + get { return BackingStore?.Get("customExtension"); } + set { BackingStore?.Set("customExtension", value); } + } +#nullable restore +#else + public OnTokenIssuanceStartCustomExtension CustomExtension { + get { return BackingStore?.Get("customExtension"); } + set { BackingStore?.Set("customExtension", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnTokenIssuanceStartCustomExtensionHandler() : base() + { + OdataType = "#microsoft.graph.onTokenIssuanceStartCustomExtensionHandler"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new OnTokenIssuanceStartCustomExtensionHandler CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new OnTokenIssuanceStartCustomExtensionHandler(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"configuration", n => { Configuration = n.GetObjectValue(CustomExtensionOverwriteConfiguration.CreateFromDiscriminatorValue); } }, + {"customExtension", n => { CustomExtension = n.GetObjectValue(OnTokenIssuanceStartCustomExtension.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("configuration", Configuration); + writer.WriteObjectValue("customExtension", CustomExtension); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartHandler.cs b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartHandler.cs new file mode 100644 index 00000000000..bc5bdc04921 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartHandler.cs @@ -0,0 +1,79 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class OnTokenIssuanceStartHandler : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnTokenIssuanceStartHandler() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static OnTokenIssuanceStartHandler CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.onTokenIssuanceStartCustomExtensionHandler" => new OnTokenIssuanceStartCustomExtensionHandler(), + _ => new OnTokenIssuanceStartHandler(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartListener.cs b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartListener.cs new file mode 100644 index 00000000000..5c240491490 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartListener.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class OnTokenIssuanceStartListener : AuthenticationEventListener, IParsable + #pragma warning restore CS1591 + { + /// The handler to invoke when conditions are met for this onTokenIssuanceStartListener. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public OnTokenIssuanceStartHandler? Handler { + get { return BackingStore?.Get("handler"); } + set { BackingStore?.Set("handler", value); } + } +#nullable restore +#else + public OnTokenIssuanceStartHandler Handler { + get { return BackingStore?.Get("handler"); } + set { BackingStore?.Set("handler", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnTokenIssuanceStartListener() : base() + { + OdataType = "#microsoft.graph.onTokenIssuanceStartListener"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new OnTokenIssuanceStartListener CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new OnTokenIssuanceStartListener(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"handler", n => { Handler = n.GetObjectValue(OnTokenIssuanceStartHandler.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("handler", Handler); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartReturnClaim.cs b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartReturnClaim.cs new file mode 100644 index 00000000000..fff7eace266 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnTokenIssuanceStartReturnClaim.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class OnTokenIssuanceStartReturnClaim : IAdditionalDataHolder, IBackedModel, IParsable + #pragma warning restore CS1591 + { + /// 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") ?? throw new InvalidOperationException("AdditionalData can not be null"); } + set { BackingStore.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The identifier of the claim returned by an API that is to be add to a token being issued. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClaimIdInApiResponse { + get { return BackingStore?.Get("claimIdInApiResponse"); } + set { BackingStore?.Set("claimIdInApiResponse", value); } + } +#nullable restore +#else + public string ClaimIdInApiResponse { + get { return BackingStore?.Get("claimIdInApiResponse"); } + set { BackingStore?.Set("claimIdInApiResponse", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnTokenIssuanceStartReturnClaim() + { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static OnTokenIssuanceStartReturnClaim CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new OnTokenIssuanceStartReturnClaim(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"claimIdInApiResponse", n => { ClaimIdInApiResponse = 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("claimIdInApiResponse", ClaimIdInApiResponse); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PolicyTemplate.cs b/src/Microsoft.Graph/Generated/Models/PolicyTemplate.cs new file mode 100644 index 00000000000..b5a8d461506 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PolicyTemplate.cs @@ -0,0 +1,74 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + #pragma warning disable CS1591 + public class PolicyTemplate : Entity, IParsable + #pragma warning restore CS1591 + { + /// Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public MultiTenantOrganizationIdentitySyncPolicyTemplate? MultiTenantOrganizationIdentitySynchronization { + get { return BackingStore?.Get("multiTenantOrganizationIdentitySynchronization"); } + set { BackingStore?.Set("multiTenantOrganizationIdentitySynchronization", value); } + } +#nullable restore +#else + public MultiTenantOrganizationIdentitySyncPolicyTemplate MultiTenantOrganizationIdentitySynchronization { + get { return BackingStore?.Get("multiTenantOrganizationIdentitySynchronization"); } + set { BackingStore?.Set("multiTenantOrganizationIdentitySynchronization", value); } + } +#endif + /// Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public MultiTenantOrganizationPartnerConfigurationTemplate? MultiTenantOrganizationPartnerConfiguration { + get { return BackingStore?.Get("multiTenantOrganizationPartnerConfiguration"); } + set { BackingStore?.Set("multiTenantOrganizationPartnerConfiguration", value); } + } +#nullable restore +#else + public MultiTenantOrganizationPartnerConfigurationTemplate MultiTenantOrganizationPartnerConfiguration { + get { return BackingStore?.Get("multiTenantOrganizationPartnerConfiguration"); } + set { BackingStore?.Set("multiTenantOrganizationPartnerConfiguration", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new PolicyTemplate CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PolicyTemplate(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + {"multiTenantOrganizationIdentitySynchronization", n => { MultiTenantOrganizationIdentitySynchronization = n.GetObjectValue(MultiTenantOrganizationIdentitySyncPolicyTemplate.CreateFromDiscriminatorValue); } }, + {"multiTenantOrganizationPartnerConfiguration", n => { MultiTenantOrganizationPartnerConfiguration = n.GetObjectValue(MultiTenantOrganizationPartnerConfigurationTemplate.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("multiTenantOrganizationIdentitySynchronization", MultiTenantOrganizationIdentitySynchronization); + writer.WriteObjectValue("multiTenantOrganizationPartnerConfiguration", MultiTenantOrganizationPartnerConfiguration); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs b/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs index e7bb5b631a9..ad668d9ec4f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DetectionSource.cs @@ -142,6 +142,10 @@ public enum DetectionSource #pragma warning disable CS1591 BuiltInMl, #pragma warning restore CS1591 + [EnumMember(Value = "microsoftInsiderRiskManagement")] + #pragma warning disable CS1591 + MicrosoftInsiderRiskManagement, + #pragma warning restore CS1591 [EnumMember(Value = "microsoftSentinel")] #pragma warning disable CS1591 MicrosoftSentinel, diff --git a/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs b/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs index d120c06b9ce..32e41e208f4 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ServiceSource.cs @@ -54,5 +54,9 @@ public enum ServiceSource #pragma warning disable CS1591 MicrosoftSentinel, #pragma warning restore CS1591 + [EnumMember(Value = "microsoftInsiderRiskManagement")] + #pragma warning disable CS1591 + MicrosoftInsiderRiskManagement, + #pragma warning restore CS1591 } } diff --git a/src/Microsoft.Graph/Generated/Models/TemplateApplicationLevel.cs b/src/Microsoft.Graph/Generated/Models/TemplateApplicationLevel.cs new file mode 100644 index 00000000000..236818c2251 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TemplateApplicationLevel.cs @@ -0,0 +1,27 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + [Flags] + #pragma warning disable CS1591 + public enum TemplateApplicationLevel + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None = 1, + #pragma warning restore CS1591 + [EnumMember(Value = "newPartners")] + #pragma warning disable CS1591 + NewPartners = 2, + #pragma warning restore CS1591 + [EnumMember(Value = "existingPartners")] + #pragma warning disable CS1591 + ExistingPartners = 4, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue = 8, + #pragma warning restore CS1591 + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs index c635bb0f66a..836de8437ad 100644 --- a/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/TenantRelationship.cs @@ -44,6 +44,20 @@ public List DelegatedAdminRelationships { get { return BackingStore?.Get>("delegatedAdminRelationships"); } set { BackingStore?.Set("delegatedAdminRelationships", value); } } +#endif + /// Defines an organization with more than one instance of Microsoft Entra ID. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Models.MultiTenantOrganization? MultiTenantOrganization { + get { return BackingStore?.Get("multiTenantOrganization"); } + set { BackingStore?.Set("multiTenantOrganization", value); } + } +#nullable restore +#else + public Microsoft.Graph.Models.MultiTenantOrganization MultiTenantOrganization { + get { return BackingStore?.Get("multiTenantOrganization"); } + set { BackingStore?.Set("multiTenantOrganization", value); } + } #endif /// The OdataType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,6 +101,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"delegatedAdminCustomers", n => { DelegatedAdminCustomers = n.GetCollectionOfObjectValues(DelegatedAdminCustomer.CreateFromDiscriminatorValue)?.ToList(); } }, {"delegatedAdminRelationships", n => { DelegatedAdminRelationships = n.GetCollectionOfObjectValues(DelegatedAdminRelationship.CreateFromDiscriminatorValue)?.ToList(); } }, + {"multiTenantOrganization", n => { MultiTenantOrganization = n.GetObjectValue(Microsoft.Graph.Models.MultiTenantOrganization.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } @@ -99,6 +114,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("delegatedAdminCustomers", DelegatedAdminCustomers); writer.WriteCollectionOfObjectValues("delegatedAdminRelationships", DelegatedAdminRelationships); + writer.WriteObjectValue("multiTenantOrganization", MultiTenantOrganization); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs b/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs index 5b5a0792a76..9539a23c98f 100644 --- a/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs +++ b/src/Microsoft.Graph/Generated/Models/VerifiedDomain.cs @@ -41,7 +41,7 @@ public bool? IsInitial { get { return BackingStore?.Get("isInitial"); } set { BackingStore?.Set("isInitial", value); } } - /// The domain name; for example, contoso.com`. + /// The domain name; for example, contoso.com. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index 42c2f2ffb8a..d003dc9de6a 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -108,8 +108,8 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. - /// Find more info here + /// Read properties and relationships of the organization object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -177,7 +177,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Read properties and relationships of the organization object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -234,7 +234,7 @@ public class OrganizationItemRequestBuilderDeleteRequestConfiguration : RequestC { } /// - /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Read properties and relationships of the organization object. /// public class OrganizationItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs index b1c94b0b7c3..9326a8c5fbf 100644 --- a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs @@ -75,8 +75,8 @@ public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. - /// Find more info here + /// List properties and relationships of the organization objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -124,7 +124,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. + /// List properties and relationships of the organization objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -174,7 +174,7 @@ public OrganizationRequestBuilder WithUrl(string rawUrl) return new OrganizationRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. + /// List properties and relationships of the organization objects. /// public class OrganizationRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs index 830ed070e51..83bc374f27d 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/CrossTenantAccessPolicyRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Policies.CrossTenantAccessPolicy.Default; using Microsoft.Graph.Policies.CrossTenantAccessPolicy.Partners; +using Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -27,6 +28,11 @@ public PartnersRequestBuilder Partners { get => new PartnersRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the templates property of the microsoft.graph.crossTenantAccessPolicy entity. + public TemplatesRequestBuilder Templates + { + get => new TemplatesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs new file mode 100644 index 00000000000..cd450d3f501 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization { + /// + /// Provides operations to manage the multiTenantOrganizationIdentitySynchronization property of the microsoft.graph.policyTemplate entity. + /// + public class MultiTenantOrganizationIdentitySynchronizationRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationIdentitySynchronizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationIdentitySynchronizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property multiTenantOrganizationIdentitySynchronization for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationIdentitySyncPolicyTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property multiTenantOrganizationIdentitySynchronization in policies + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MultiTenantOrganizationIdentitySyncPolicyTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(MultiTenantOrganizationIdentitySyncPolicyTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationIdentitySyncPolicyTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property multiTenantOrganizationIdentitySynchronization for policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property multiTenantOrganizationIdentitySynchronization in policies + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationIdentitySyncPolicyTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationIdentitySyncPolicyTemplate 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. + /// + /// A + /// The raw URL to use for the request builder. + public MultiTenantOrganizationIdentitySynchronizationRequestBuilder WithUrl(string rawUrl) + { + return new MultiTenantOrganizationIdentitySynchronizationRequestBuilder(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 MultiTenantOrganizationIdentitySynchronizationRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Defines an optional cross-tenant access policy template with user synchronization settings for a multitenant organization. + /// + public class MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetQueryParameters + { + /// 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 MultiTenantOrganizationIdentitySynchronizationRequestBuilderGetRequestConfiguration : 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 MultiTenantOrganizationIdentitySynchronizationRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs new file mode 100644 index 00000000000..47c3d8c08be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration { + /// + /// Provides operations to manage the multiTenantOrganizationPartnerConfiguration property of the microsoft.graph.policyTemplate entity. + /// + public class MultiTenantOrganizationPartnerConfigurationRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationPartnerConfigurationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationPartnerConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property multiTenantOrganizationPartnerConfiguration for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationPartnerConfigurationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property multiTenantOrganizationPartnerConfiguration in policies + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MultiTenantOrganizationPartnerConfigurationTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(MultiTenantOrganizationPartnerConfigurationTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationPartnerConfigurationTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property multiTenantOrganizationPartnerConfiguration for policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property multiTenantOrganizationPartnerConfiguration in policies + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationPartnerConfigurationTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationPartnerConfigurationTemplate 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. + /// + /// A + /// The raw URL to use for the request builder. + public MultiTenantOrganizationPartnerConfigurationRequestBuilder WithUrl(string rawUrl) + { + return new MultiTenantOrganizationPartnerConfigurationRequestBuilder(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 MultiTenantOrganizationPartnerConfigurationRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Defines an optional cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization. + /// + public class MultiTenantOrganizationPartnerConfigurationRequestBuilderGetQueryParameters + { + /// 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 MultiTenantOrganizationPartnerConfigurationRequestBuilderGetRequestConfiguration : 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 MultiTenantOrganizationPartnerConfigurationRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.cs new file mode 100644 index 00000000000..aa7b5083674 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Templates/TemplatesRequestBuilder.cs @@ -0,0 +1,233 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization; +using Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Policies.CrossTenantAccessPolicy.Templates { + /// + /// Provides operations to manage the templates property of the microsoft.graph.crossTenantAccessPolicy entity. + /// + public class TemplatesRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the multiTenantOrganizationIdentitySynchronization property of the microsoft.graph.policyTemplate entity. + public MultiTenantOrganizationIdentitySynchronizationRequestBuilder MultiTenantOrganizationIdentitySynchronization + { + get => new MultiTenantOrganizationIdentitySynchronizationRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the multiTenantOrganizationPartnerConfiguration property of the microsoft.graph.policyTemplate entity. + public MultiTenantOrganizationPartnerConfigurationRequestBuilder MultiTenantOrganizationPartnerConfiguration + { + get => new MultiTenantOrganizationPartnerConfigurationRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property templates for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the base policy in the directory for multitenant organization settings. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PolicyTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property templates in policies + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(PolicyTemplate body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(PolicyTemplate body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PolicyTemplate.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property templates for policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents the base policy in the directory for multitenant organization settings. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property templates in policies + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PolicyTemplate body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PolicyTemplate 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. + /// + /// A + /// The raw URL to use for the request builder. + public TemplatesRequestBuilder WithUrl(string rawUrl) + { + return new TemplatesRequestBuilder(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 TemplatesRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents the base policy in the directory for multitenant organization settings. + /// + public class TemplatesRequestBuilderGetQueryParameters + { + /// 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 TemplatesRequestBuilderGetRequestConfiguration : 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 TemplatesRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs index 66a088a8395..1f62dc54fce 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/AlertsRequestBuilder.cs @@ -18,6 +18,7 @@ namespace Microsoft.Graph.Security.Alerts { public class AlertsRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); @@ -25,6 +26,7 @@ public CountRequestBuilder Count /// Provides operations to manage the alerts property of the microsoft.graph.security entity. /// The unique identifier of alert /// A + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] public AlertItemRequestBuilder this[string position] { get @@ -57,6 +59,7 @@ public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -81,6 +84,7 @@ public async Task GetAsync(ActionCancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(Alert body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -103,6 +107,7 @@ public async Task PostAsync(Alert body, Action /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) @@ -123,6 +128,7 @@ public RequestInformation ToGetRequestInformation(ActionA /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPostRequestInformation(Alert body, Action>? requestConfiguration = default) @@ -144,6 +150,7 @@ public RequestInformation ToPostRequestInformation(Alert body, Action /// A /// The raw URL to use for the request builder. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] public AlertsRequestBuilder WithUrl(string rawUrl) { return new AlertsRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs index 2e92ddb06df..2a66ad8fc06 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/Count/CountRequestBuilder.cs @@ -37,6 +37,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -58,6 +59,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) @@ -77,6 +79,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs index 7b9d0ef6564..5220111aab4 100644 --- a/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Alerts/Item/AlertItemRequestBuilder.cs @@ -38,6 +38,7 @@ public AlertItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -62,6 +63,7 @@ public async Task GetAsync(ActionCancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(Alert body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -84,6 +86,7 @@ public async Task PatchAsync(Alert body, Action /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) @@ -104,6 +107,7 @@ public RequestInformation ToGetRequestInformation(ActionA /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPatchRequestInformation(Alert body, Action>? requestConfiguration = default) @@ -125,6 +129,7 @@ public RequestInformation ToPatchRequestInformation(Alert body, Action /// A /// The raw URL to use for the request builder. + [Obsolete("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation")] public AlertItemRequestBuilder WithUrl(string rawUrl) { return new AlertItemRequestBuilder(rawUrl, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.cs new file mode 100644 index 00000000000..6a9fd895a5e --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/JoinRequest/JoinRequestRequestBuilder.cs @@ -0,0 +1,173 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.MultiTenantOrganization.JoinRequest { + /// + /// Provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity. + /// + public class JoinRequestRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public JoinRequestRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/joinRequest{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public JoinRequestRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/joinRequest{?%24expand,%24select}", rawUrl) + { + } + /// + /// Defines the status of a tenant joining a multitenant organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationJoinRequestRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property joinRequest in tenantRelationships + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MultiTenantOrganizationJoinRequestRecord body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(MultiTenantOrganizationJoinRequestRecord body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationJoinRequestRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines the status of a tenant joining a multitenant organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property joinRequest in tenantRelationships + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationJoinRequestRecord body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationJoinRequestRecord 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. + /// + /// A + /// The raw URL to use for the request builder. + public JoinRequestRequestBuilder WithUrl(string rawUrl) + { + return new JoinRequestRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Defines the status of a tenant joining a multitenant organization. + /// + public class JoinRequestRequestBuilderGetQueryParameters + { + /// 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 JoinRequestRequestBuilderGetRequestConfiguration : 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 JoinRequestRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs new file mode 100644 index 00000000000..93c8f3dadbf --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs @@ -0,0 +1,185 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.TenantRelationships.MultiTenantOrganization.JoinRequest; +using Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants; +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.TenantRelationships.MultiTenantOrganization { + /// + /// Provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity. + /// + public class MultiTenantOrganizationRequestBuilder : BaseRequestBuilder + { + /// Provides operations to manage the joinRequest property of the microsoft.graph.multiTenantOrganization entity. + public JoinRequestRequestBuilder JoinRequest + { + get => new JoinRequestRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + public TenantsRequestBuilder Tenants + { + get => new TenantsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization{?%24expand,%24select}", rawUrl) + { + } + /// + /// Defines an organization with more than one instance of Microsoft Entra ID. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MultiTenantOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property multiTenantOrganization in tenantRelationships + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Microsoft.Graph.Models.MultiTenantOrganization body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Microsoft.Graph.Models.MultiTenantOrganization body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MultiTenantOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines an organization with more than one instance of Microsoft Entra ID. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property multiTenantOrganization in tenantRelationships + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.MultiTenantOrganization body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Microsoft.Graph.Models.MultiTenantOrganization body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, 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. + /// + /// A + /// The raw URL to use for the request builder. + public MultiTenantOrganizationRequestBuilder WithUrl(string rawUrl) + { + return new MultiTenantOrganizationRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Defines an organization with more than one instance of Microsoft Entra ID. + /// + public class MultiTenantOrganizationRequestBuilderGetQueryParameters + { + /// 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 MultiTenantOrganizationRequestBuilderGetRequestConfiguration : 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 MultiTenantOrganizationRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..71bfab32a07 --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Count/CountRequestBuilder.cs @@ -0,0 +1,118 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) + { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.cs new file mode 100644 index 00000000000..1e7ba8b4c43 --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/Item/MultiTenantOrganizationMemberItemRequestBuilder.cs @@ -0,0 +1,221 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants.Item { + /// + /// Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + /// + public class MultiTenantOrganizationMemberItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationMemberItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/{multiTenantOrganizationMember%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MultiTenantOrganizationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants/{multiTenantOrganizationMember%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property tenants for tenantRelationships + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines tenants added to a multitenant organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property tenants in tenantRelationships + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(MultiTenantOrganizationMember body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(MultiTenantOrganizationMember body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property tenants for tenantRelationships + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Defines tenants added to a multitenant organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property tenants in tenantRelationships + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(MultiTenantOrganizationMember 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. + /// + /// A + /// The raw URL to use for the request builder. + public MultiTenantOrganizationMemberItemRequestBuilder WithUrl(string rawUrl) + { + return new MultiTenantOrganizationMemberItemRequestBuilder(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 MultiTenantOrganizationMemberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Defines tenants added to a multitenant organization. + /// + public class MultiTenantOrganizationMemberItemRequestBuilderGetQueryParameters + { + /// 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 MultiTenantOrganizationMemberItemRequestBuilderGetRequestConfiguration : 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 MultiTenantOrganizationMemberItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.cs new file mode 100644 index 00000000000..9d5ba5d1d53 --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/Tenants/TenantsRequestBuilder.cs @@ -0,0 +1,231 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants.Count; +using Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.MultiTenantOrganization.Tenants { + /// + /// Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + /// + public class TenantsRequestBuilder : BaseRequestBuilder + { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the tenants property of the microsoft.graph.multiTenantOrganization entity. + /// The unique identifier of multiTenantOrganizationMember + /// A + public MultiTenantOrganizationMemberItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("multiTenantOrganizationMember%2Did", position); + return new MultiTenantOrganizationMemberItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TenantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TenantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/multiTenantOrganization/tenants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Defines tenants added to a multitenant organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to tenants for tenantRelationships + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(MultiTenantOrganizationMember body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(MultiTenantOrganizationMember body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, MultiTenantOrganizationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines tenants added to a multitenant organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to tenants for tenantRelationships + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(MultiTenantOrganizationMember body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(MultiTenantOrganizationMember 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. + /// + /// A + /// The raw URL to use for the request builder. + public TenantsRequestBuilder WithUrl(string rawUrl) + { + return new TenantsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Defines tenants added to a multitenant organization. + /// + public class TenantsRequestBuilderGetQueryParameters + { + /// 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 TenantsRequestBuilderGetRequestConfiguration : 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 TenantsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs index dd7153bc9ff..66f9830c4f1 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs @@ -5,6 +5,7 @@ using Microsoft.Graph.TenantRelationships.DelegatedAdminRelationships; using Microsoft.Graph.TenantRelationships.FindTenantInformationByDomainNameWithDomainName; using Microsoft.Graph.TenantRelationships.FindTenantInformationByTenantIdWithTenantId; +using Microsoft.Graph.TenantRelationships.MultiTenantOrganization; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -29,6 +30,11 @@ public DelegatedAdminRelationshipsRequestBuilder DelegatedAdminRelationships { get => new DelegatedAdminRelationshipsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the multiTenantOrganization property of the microsoft.graph.tenantRelationship entity. + public MultiTenantOrganizationRequestBuilder MultiTenantOrganization + { + get => new MultiTenantOrganizationRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 02b0b84012a..b6eae02f124 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -473,7 +473,7 @@ public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// Deletes a user. - /// 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. @@ -507,8 +507,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. - /// Find more info here + /// Read properties and relationships of the user object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -588,7 +588,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Read properties and relationships of the user object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -645,7 +645,7 @@ public class UserItemRequestBuilderDeleteRequestConfiguration : RequestConfigura { } /// - /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. + /// Read properties and relationships of the user object. /// public class UserItemRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index 2f652dad087..e04a2ee520b 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -76,7 +76,7 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// List properties and relationships of the user objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public async Task GetAsync(Action /// Create a new user object. - /// Find more info here + /// Find more info here /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 4322ad1fec5..cf5b435c443 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2B662CAC912EC3BB64772F15E35D75EAD2185C80979E94B744AB9D77833875545F55223BF08ECB86F3F64F7723BE039FD72BA22FF568C2AB5B8BDA40A583FB9E", + "descriptionHash": "5DA575F4771C4D0DC403ACA06BEF3B62E224F8FF6B482FB66B79521334DFB514667E3DA55FE64C988FA0C7F4E16E11F3D37756C8B83E4E03AFF6559D1237EBD2", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index 7faca5c4939..1a9df6d93ac 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.50.0 + 5.51.0 From 442dd15d15327acc23c34684420e30adf2d3707d Mon Sep 17 00:00:00 2001 From: shemogumbe Date: Thu, 2 May 2024 15:52:29 +0300 Subject: [PATCH 4/4] update change log --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77d835634bd..790b19558d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.51.0] - 2024-05-02 + +- Latest metadata updates from 24th April 2024. + ## [5.50.0] - 2024-04-17 - Latest metadata updates from 24th April 2024.