From 7bfd70a157fc2a51a4a98b23c726f98278bc12fb Mon Sep 17 00:00:00 2001 From: Eastman Date: Mon, 14 Mar 2022 17:02:49 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be3ed0e64ce..92d98ac15c9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Integrate the [Microsoft Graph API](https://graph.microsoft.io) into your .NET project! -The Microsoft Graph .NET Client Library targets .NetStandard 2.0 and .Net Framework 4.6.1. +The Microsoft Graph .NET Client Library targets .NetStandard 2.0 and .Net Framework 4.6.2. ## Installation via NuGet From f4aa1903185e6adf5b473425b061ae96e9891e85 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 15 Mar 2022 10:08:42 +0000 Subject: [PATCH 2/3] Update generated files with build 70473 --- .../Generated/model/AccessPackage.cs | 13 + .../model/AccessPackageApprovalStage.cs | 85 ++++++ .../model/AccessPackageAssignment.cs | 6 + ...AccessPackageAssignmentApprovalSettings.cs | 55 ++++ .../model/AccessPackageAssignmentPolicy.cs | 105 ++++++++ ...ccessPackageAssignmentRequestorSettings.cs | 85 ++++++ .../AccessPackageAssignmentReviewSettings.cs | 85 ++++++ .../model/AccessReviewExpirationBehavior.cs | 43 +++ .../Generated/model/Agreement.cs | 12 +- .../Generated/model/AgreementAcceptance.cs | 2 +- .../Generated/model/AgreementFileData.cs | 1 + .../Generated/model/AllowedTargetScope.cs | 73 +++++ .../Generated/model/EntitlementManagement.cs | 14 + .../Generated/model/RoleManagement.cs | 2 +- .../model/TargetApplicationOwners.cs | 31 +++ .../Generated/model/TargetManager.cs | 37 +++ ...PackageAssignmentPoliciesCollectionPage.cs | 38 +++ ...kageAssignmentPoliciesCollectionRequest.cs | 208 +++++++++++++++ ...ignmentPoliciesCollectionRequestBuilder.cs | 65 +++++ ...ageAssignmentPoliciesCollectionResponse.cs | 38 +++ ...PackageAssignmentPolicyReferenceRequest.cs | 91 +++++++ ...AssignmentPolicyReferenceRequestBuilder.cs | 51 ++++ .../AccessPackageAssignmentPolicyRequest.cs | 249 ++++++++++++++++++ ...ssPackageAssignmentPolicyRequestBuilder.cs | 78 ++++++ ...ageAssignmentPolicyWithReferenceRequest.cs | 210 +++++++++++++++ ...gnmentPolicyWithReferenceRequestBuilder.cs | 65 +++++ .../AccessPackageAssignmentRequestBuilder.cs | 12 + .../requests/AccessPackageRequest.cs | 12 + .../requests/AccessPackageRequestBuilder.cs | 12 + .../requests/ApplicationLogoRequest.cs | 4 +- .../CalendarSharingMessageContentRequest.cs | 4 +- .../ChatMessageHostedContentContentRequest.cs | 4 +- .../requests/DriveItemContentRequest.cs | 4 +- .../DriveItemVersionContentRequest.cs | 4 +- ...agementAssignmentPoliciesCollectionPage.cs | 38 +++ ...mentAssignmentPoliciesCollectionRequest.cs | 208 +++++++++++++++ ...ignmentPoliciesCollectionRequestBuilder.cs | 65 +++++ ...entAssignmentPoliciesCollectionResponse.cs | 38 +++ .../requests/EntitlementManagementRequest.cs | 6 + .../EntitlementManagementRequestBuilder.cs | 12 + .../requests/EventMessageContentRequest.cs | 4 +- .../EventMessageRequestContentRequest.cs | 4 +- .../EventMessageResponseContentRequest.cs | 4 +- .../requests/FileAttachmentContentRequest.cs | 4 +- ...PackageAssignmentPoliciesCollectionPage.cs | 31 +++ ...kageAssignmentPoliciesCollectionRequest.cs | 110 ++++++++ ...ignmentPoliciesCollectionRequestBuilder.cs | 41 +++ ...PackageAssignmentPolicyReferenceRequest.cs | 51 ++++ ...AssignmentPolicyReferenceRequestBuilder.cs | 33 +++ .../IAccessPackageAssignmentPolicyRequest.cs | 130 +++++++++ ...ssPackageAssignmentPolicyRequestBuilder.cs | 47 ++++ ...ageAssignmentPolicyWithReferenceRequest.cs | 114 ++++++++ ...gnmentPolicyWithReferenceRequestBuilder.cs | 40 +++ .../IAccessPackageAssignmentRequestBuilder.cs | 6 + .../requests/IAccessPackageRequestBuilder.cs | 6 + ...agementAssignmentPoliciesCollectionPage.cs | 31 +++ ...mentAssignmentPoliciesCollectionRequest.cs | 110 ++++++++ ...ignmentPoliciesCollectionRequestBuilder.cs | 41 +++ .../IEntitlementManagementRequestBuilder.cs | 6 + .../requests/MessageContentRequest.cs | 4 +- .../requests/OnenotePageContentRequest.cs | 4 +- .../requests/OnenoteResourceContentRequest.cs | 4 +- .../OnlineMeetingAttendeeReportRequest.cs | 4 +- ...randingPropertiesBackgroundImageRequest.cs | 4 +- ...onalBrandingPropertiesBannerLogoRequest.cs | 4 +- ...onalBrandingPropertiesSquareLogoRequest.cs | 4 +- .../requests/PrintDocumentContentRequest.cs | 4 +- .../requests/ProfilePhotoContentRequest.cs | 4 +- .../requests/ReportContentRequest.cs | 4 +- ...iceAnnouncementAttachmentContentRequest.cs | 4 +- ...eUpdateMessageAttachmentsArchiveRequest.cs | 4 +- .../TeamworkHostedContentContentRequest.cs | 4 +- .../requests/ThumbnailContentRequest.cs | 4 +- .../UserFlowLanguagePageContentRequest.cs | 4 +- 74 files changed, 2982 insertions(+), 56 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/model/AccessPackageApprovalStage.cs create mode 100644 src/Microsoft.Graph/Generated/model/AccessPackageAssignmentApprovalSettings.cs create mode 100644 src/Microsoft.Graph/Generated/model/AccessPackageAssignmentPolicy.cs create mode 100644 src/Microsoft.Graph/Generated/model/AccessPackageAssignmentRequestorSettings.cs create mode 100644 src/Microsoft.Graph/Generated/model/AccessPackageAssignmentReviewSettings.cs create mode 100644 src/Microsoft.Graph/Generated/model/AccessReviewExpirationBehavior.cs create mode 100644 src/Microsoft.Graph/Generated/model/AllowedTargetScope.cs create mode 100644 src/Microsoft.Graph/Generated/model/TargetApplicationOwners.cs create mode 100644 src/Microsoft.Graph/Generated/model/TargetManager.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionPage.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyReferenceRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyReferenceRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyWithReferenceRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPolicyWithReferenceRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/EntitlementManagementAssignmentPoliciesCollectionPage.cs create mode 100644 src/Microsoft.Graph/Generated/requests/EntitlementManagementAssignmentPoliciesCollectionRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/EntitlementManagementAssignmentPoliciesCollectionRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/EntitlementManagementAssignmentPoliciesCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPoliciesCollectionPage.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPoliciesCollectionRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPoliciesCollectionRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyReferenceRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyReferenceRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyWithReferenceRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IAccessPackageAssignmentPolicyWithReferenceRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IEntitlementManagementAssignmentPoliciesCollectionPage.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IEntitlementManagementAssignmentPoliciesCollectionRequest.cs create mode 100644 src/Microsoft.Graph/Generated/requests/IEntitlementManagementAssignmentPoliciesCollectionRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/model/AccessPackage.cs b/src/Microsoft.Graph/Generated/model/AccessPackage.cs index e94930d5ca5..4ffec3fa063 100644 --- a/src/Microsoft.Graph/Generated/model/AccessPackage.cs +++ b/src/Microsoft.Graph/Generated/model/AccessPackage.cs @@ -55,6 +55,19 @@ public partial class AccessPackage : Entity [JsonPropertyName("modifiedDateTime")] public DateTimeOffset? ModifiedDateTime { get; set; } + /// + /// Gets or sets assignment policies. + /// + [JsonPropertyName("assignmentPolicies")] + public IAccessPackageAssignmentPoliciesCollectionPage AssignmentPolicies { get; set; } + + /// + /// Gets or sets assignmentPoliciesNextLink. + /// + [JsonPropertyName("assignmentPolicies@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string AssignmentPoliciesNextLink { get; set; } + /// /// Gets or sets catalog. /// Read-only. Nullable. diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageApprovalStage.cs b/src/Microsoft.Graph/Generated/model/AccessPackageApprovalStage.cs new file mode 100644 index 00000000000..51148295709 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessPackageApprovalStage.cs @@ -0,0 +1,85 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type AccessPackageApprovalStage. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class AccessPackageApprovalStage + { + + /// + /// Gets or sets durationBeforeAutomaticDenial. + /// + [JsonPropertyName("durationBeforeAutomaticDenial")] + public Duration DurationBeforeAutomaticDenial { get; set; } + + /// + /// Gets or sets durationBeforeEscalation. + /// + [JsonPropertyName("durationBeforeEscalation")] + public Duration DurationBeforeEscalation { get; set; } + + /// + /// Gets or sets escalationApprovers. + /// + [JsonPropertyName("escalationApprovers")] + public IEnumerable EscalationApprovers { get; set; } + + /// + /// Gets or sets fallbackEscalationApprovers. + /// + [JsonPropertyName("fallbackEscalationApprovers")] + public IEnumerable FallbackEscalationApprovers { get; set; } + + /// + /// Gets or sets fallbackPrimaryApprovers. + /// + [JsonPropertyName("fallbackPrimaryApprovers")] + public IEnumerable FallbackPrimaryApprovers { get; set; } + + /// + /// Gets or sets isApproverJustificationRequired. + /// + [JsonPropertyName("isApproverJustificationRequired")] + public bool? IsApproverJustificationRequired { get; set; } + + /// + /// Gets or sets isEscalationEnabled. + /// + [JsonPropertyName("isEscalationEnabled")] + public bool? IsEscalationEnabled { get; set; } + + /// + /// Gets or sets primaryApprovers. + /// + [JsonPropertyName("primaryApprovers")] + public IEnumerable PrimaryApprovers { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageAssignment.cs b/src/Microsoft.Graph/Generated/model/AccessPackageAssignment.cs index 2a5264fa51e..05e5fa3952e 100644 --- a/src/Microsoft.Graph/Generated/model/AccessPackageAssignment.cs +++ b/src/Microsoft.Graph/Generated/model/AccessPackageAssignment.cs @@ -56,6 +56,12 @@ public partial class AccessPackageAssignment : Entity [JsonPropertyName("accessPackage")] public AccessPackage AccessPackage { get; set; } + /// + /// Gets or sets assignment policy. + /// + [JsonPropertyName("assignmentPolicy")] + public AccessPackageAssignmentPolicy AssignmentPolicy { get; set; } + /// /// Gets or sets target. /// The subject of the access package assignment. Read-only. Nullable. Supports $expand. Supports $filter (eq) on objectId. diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentApprovalSettings.cs b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentApprovalSettings.cs new file mode 100644 index 00000000000..340086a173e --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentApprovalSettings.cs @@ -0,0 +1,55 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type AccessPackageAssignmentApprovalSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class AccessPackageAssignmentApprovalSettings + { + + /// + /// Gets or sets isApprovalRequiredForAdd. + /// + [JsonPropertyName("isApprovalRequiredForAdd")] + public bool? IsApprovalRequiredForAdd { get; set; } + + /// + /// Gets or sets isApprovalRequiredForUpdate. + /// + [JsonPropertyName("isApprovalRequiredForUpdate")] + public bool? IsApprovalRequiredForUpdate { get; set; } + + /// + /// Gets or sets stages. + /// + [JsonPropertyName("stages")] + public IEnumerable Stages { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentPolicy.cs b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentPolicy.cs new file mode 100644 index 00000000000..c747d2f5a19 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentPolicy.cs @@ -0,0 +1,105 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type Access Package Assignment Policy. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class AccessPackageAssignmentPolicy : Entity + { + + /// + /// Gets or sets allowed target scope. + /// + [JsonPropertyName("allowedTargetScope")] + public AllowedTargetScope? AllowedTargetScope { get; set; } + + /// + /// Gets or sets created date time. + /// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// + [JsonPropertyName("createdDateTime")] + public DateTimeOffset? CreatedDateTime { get; set; } + + /// + /// Gets or sets description. + /// The description of the policy. + /// + [JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Gets or sets display name. + /// The display name of the policy. Supports $filter (eq). + /// + [JsonPropertyName("displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets expiration. + /// + [JsonPropertyName("expiration")] + public ExpirationPattern Expiration { get; set; } + + /// + /// Gets or sets modified date time. + /// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// + [JsonPropertyName("modifiedDateTime")] + public DateTimeOffset? ModifiedDateTime { get; set; } + + /// + /// Gets or sets request approval settings. + /// Who must approve requests for access package in this policy. + /// + [JsonPropertyName("requestApprovalSettings")] + public AccessPackageAssignmentApprovalSettings RequestApprovalSettings { get; set; } + + /// + /// Gets or sets requestor settings. + /// Who can request this access package from this policy. + /// + [JsonPropertyName("requestorSettings")] + public AccessPackageAssignmentRequestorSettings RequestorSettings { get; set; } + + /// + /// Gets or sets review settings. + /// + [JsonPropertyName("reviewSettings")] + public AccessPackageAssignmentReviewSettings ReviewSettings { get; set; } + + /// + /// Gets or sets specific allowed targets. + /// + [JsonPropertyName("specificAllowedTargets")] + public IEnumerable SpecificAllowedTargets { get; set; } + + /// + /// Gets or sets access package. + /// The access package with this policy. Read-only. Nullable. Supports $expand. + /// + [JsonPropertyName("accessPackage")] + public AccessPackage AccessPackage { get; set; } + + /// + /// Gets or sets catalog. + /// + [JsonPropertyName("catalog")] + public AccessPackageCatalog Catalog { get; set; } + + } +} + diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentRequestorSettings.cs b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentRequestorSettings.cs new file mode 100644 index 00000000000..7c04d26b40c --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentRequestorSettings.cs @@ -0,0 +1,85 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type AccessPackageAssignmentRequestorSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class AccessPackageAssignmentRequestorSettings + { + + /// + /// Gets or sets allowCustomAssignmentSchedule. + /// + [JsonPropertyName("allowCustomAssignmentSchedule")] + public bool? AllowCustomAssignmentSchedule { get; set; } + + /// + /// Gets or sets enableOnBehalfRequestorsToAddAccess. + /// + [JsonPropertyName("enableOnBehalfRequestorsToAddAccess")] + public bool? EnableOnBehalfRequestorsToAddAccess { get; set; } + + /// + /// Gets or sets enableOnBehalfRequestorsToRemoveAccess. + /// + [JsonPropertyName("enableOnBehalfRequestorsToRemoveAccess")] + public bool? EnableOnBehalfRequestorsToRemoveAccess { get; set; } + + /// + /// Gets or sets enableOnBehalfRequestorsToUpdateAccess. + /// + [JsonPropertyName("enableOnBehalfRequestorsToUpdateAccess")] + public bool? EnableOnBehalfRequestorsToUpdateAccess { get; set; } + + /// + /// Gets or sets enableTargetsToSelfAddAccess. + /// + [JsonPropertyName("enableTargetsToSelfAddAccess")] + public bool? EnableTargetsToSelfAddAccess { get; set; } + + /// + /// Gets or sets enableTargetsToSelfRemoveAccess. + /// + [JsonPropertyName("enableTargetsToSelfRemoveAccess")] + public bool? EnableTargetsToSelfRemoveAccess { get; set; } + + /// + /// Gets or sets enableTargetsToSelfUpdateAccess. + /// + [JsonPropertyName("enableTargetsToSelfUpdateAccess")] + public bool? EnableTargetsToSelfUpdateAccess { get; set; } + + /// + /// Gets or sets onBehalfRequestors. + /// + [JsonPropertyName("onBehalfRequestors")] + public IEnumerable OnBehalfRequestors { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentReviewSettings.cs b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentReviewSettings.cs new file mode 100644 index 00000000000..48eb410cd13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessPackageAssignmentReviewSettings.cs @@ -0,0 +1,85 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type AccessPackageAssignmentReviewSettings. + /// + [JsonConverter(typeof(DerivedTypeConverter))] + public partial class AccessPackageAssignmentReviewSettings + { + + /// + /// Gets or sets expirationBehavior. + /// + [JsonPropertyName("expirationBehavior")] + public AccessReviewExpirationBehavior? ExpirationBehavior { get; set; } + + /// + /// Gets or sets fallbackReviewers. + /// + [JsonPropertyName("fallbackReviewers")] + public IEnumerable FallbackReviewers { get; set; } + + /// + /// Gets or sets isEnabled. + /// + [JsonPropertyName("isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets isRecommendationEnabled. + /// + [JsonPropertyName("isRecommendationEnabled")] + public bool? IsRecommendationEnabled { get; set; } + + /// + /// Gets or sets isReviewerJustificationRequired. + /// + [JsonPropertyName("isReviewerJustificationRequired")] + public bool? IsReviewerJustificationRequired { get; set; } + + /// + /// Gets or sets isSelfReview. + /// + [JsonPropertyName("isSelfReview")] + public bool? IsSelfReview { get; set; } + + /// + /// Gets or sets primaryReviewers. + /// + [JsonPropertyName("primaryReviewers")] + public IEnumerable PrimaryReviewers { get; set; } + + /// + /// Gets or sets schedule. + /// + [JsonPropertyName("schedule")] + public EntitlementManagementSchedule Schedule { get; set; } + + /// + /// Gets or sets additional data. + /// + [JsonExtensionData] + public IDictionary AdditionalData { get; set; } + + /// + /// Gets or sets @odata.type. + /// + [JsonPropertyName("@odata.type")] + public string ODataType { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/AccessReviewExpirationBehavior.cs b/src/Microsoft.Graph/Generated/model/AccessReviewExpirationBehavior.cs new file mode 100644 index 00000000000..febda14976e --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AccessReviewExpirationBehavior.cs @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph +{ + using System.Text.Json.Serialization; + + /// + /// The enum AccessReviewExpirationBehavior. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum AccessReviewExpirationBehavior + { + + /// + /// Keep Access + /// + KeepAccess = 0, + + /// + /// Remove Access + /// + RemoveAccess = 1, + + /// + /// Accept Access Recommendation + /// + AcceptAccessRecommendation = 2, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 99, + + } +} diff --git a/src/Microsoft.Graph/Generated/model/Agreement.cs b/src/Microsoft.Graph/Generated/model/Agreement.cs index 7dd0a3305f9..9758ff35076 100644 --- a/src/Microsoft.Graph/Generated/model/Agreement.cs +++ b/src/Microsoft.Graph/Generated/model/Agreement.cs @@ -22,35 +22,35 @@ public partial class Agreement : Entity /// /// Gets or sets display name. - /// Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement. + /// Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement. Supports $filter (eq). /// [JsonPropertyName("displayName")] public string DisplayName { get; set; } /// /// Gets or sets is per device acceptance required. - /// Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven't already done so. + /// Indicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Azure AD, if they haven't already done so. Supports $filter (eq). /// [JsonPropertyName("isPerDeviceAcceptanceRequired")] public bool? IsPerDeviceAcceptanceRequired { get; set; } /// /// Gets or sets is viewing before acceptance required. - /// Indicates whether the user has to expand the agreement before accepting. + /// Indicates whether the user has to expand the agreement before accepting. Supports $filter (eq). /// [JsonPropertyName("isViewingBeforeAcceptanceRequired")] public bool? IsViewingBeforeAcceptanceRequired { get; set; } /// /// Gets or sets terms expiration. - /// Expiration schedule and frequency of agreement for all users. + /// Expiration schedule and frequency of agreement for all users. Supports $filter (eq). /// [JsonPropertyName("termsExpiration")] public TermsExpiration TermsExpiration { get; set; } /// /// Gets or sets user reaccept required frequency. - /// The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations. + /// The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq). /// [JsonPropertyName("userReacceptRequiredFrequency")] public Duration UserReacceptRequiredFrequency { get; set; } @@ -78,7 +78,7 @@ public partial class Agreement : Entity /// /// Gets or sets files. - /// PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. + /// PDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand. /// [JsonPropertyName("files")] public IAgreementFilesCollectionPage Files { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/AgreementAcceptance.cs b/src/Microsoft.Graph/Generated/model/AgreementAcceptance.cs index 00e9792cba4..e1fd9ff1528 100644 --- a/src/Microsoft.Graph/Generated/model/AgreementAcceptance.cs +++ b/src/Microsoft.Graph/Generated/model/AgreementAcceptance.cs @@ -79,7 +79,7 @@ public partial class AgreementAcceptance : Entity /// /// Gets or sets state. - /// The state of the agreement acceptance. Possible values are: accepted, declined. + /// The state of the agreement acceptance. Possible values are: accepted, declined. Supports $filter (eq). /// [JsonPropertyName("state")] public AgreementAcceptanceState? State { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/AgreementFileData.cs b/src/Microsoft.Graph/Generated/model/AgreementFileData.cs index 07c2e4e0eb5..0a7ca871f69 100644 --- a/src/Microsoft.Graph/Generated/model/AgreementFileData.cs +++ b/src/Microsoft.Graph/Generated/model/AgreementFileData.cs @@ -23,6 +23,7 @@ public partial class AgreementFileData /// /// Gets or sets data. + /// Data that represents the terms of use PDF document. Read-only. /// [JsonPropertyName("data")] public byte[] Data { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/AllowedTargetScope.cs b/src/Microsoft.Graph/Generated/model/AllowedTargetScope.cs new file mode 100644 index 00000000000..f556f986b85 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/AllowedTargetScope.cs @@ -0,0 +1,73 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EnumType.cs.tt + + +namespace Microsoft.Graph +{ + using System.Text.Json.Serialization; + + /// + /// The enum AllowedTargetScope. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum AllowedTargetScope + { + + /// + /// Not Specified + /// + NotSpecified = 0, + + /// + /// Specific Directory Users + /// + SpecificDirectoryUsers = 1, + + /// + /// Specific Connected Organization Users + /// + SpecificConnectedOrganizationUsers = 2, + + /// + /// Specific Directory Service Principals + /// + SpecificDirectoryServicePrincipals = 3, + + /// + /// All Member Users + /// + AllMemberUsers = 4, + + /// + /// All Directory Users + /// + AllDirectoryUsers = 5, + + /// + /// All Directory Service Principals + /// + AllDirectoryServicePrincipals = 6, + + /// + /// All Configured Connected Organization Users + /// + AllConfiguredConnectedOrganizationUsers = 7, + + /// + /// All External Users + /// + AllExternalUsers = 8, + + /// + /// Unknown Future Value + /// + UnknownFutureValue = 10, + + } +} diff --git a/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs b/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs index 6c7ce3c902e..ff5c17a1756 100644 --- a/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs +++ b/src/Microsoft.Graph/Generated/model/EntitlementManagement.cs @@ -22,6 +22,7 @@ public partial class EntitlementManagement : Entity /// /// Gets or sets access package assignment approvals. + /// Approval stages for assignment requests. /// [JsonPropertyName("accessPackageAssignmentApprovals")] public IEntitlementManagementAccessPackageAssignmentApprovalsCollectionPage AccessPackageAssignmentApprovals { get; set; } @@ -47,6 +48,19 @@ public partial class EntitlementManagement : Entity [JsonConverter(typeof(NextLinkConverter))] public string AccessPackagesNextLink { get; set; } + /// + /// Gets or sets assignment policies. + /// + [JsonPropertyName("assignmentPolicies")] + public IEntitlementManagementAssignmentPoliciesCollectionPage AssignmentPolicies { get; set; } + + /// + /// Gets or sets assignmentPoliciesNextLink. + /// + [JsonPropertyName("assignmentPolicies@odata.nextLink")] + [JsonConverter(typeof(NextLinkConverter))] + public string AssignmentPoliciesNextLink { get; set; } + /// /// Gets or sets assignment requests. /// Represents access package assignment requests created by or on behalf of a user. diff --git a/src/Microsoft.Graph/Generated/model/RoleManagement.cs b/src/Microsoft.Graph/Generated/model/RoleManagement.cs index ba8ff609c8a..63b16e2a7ed 100644 --- a/src/Microsoft.Graph/Generated/model/RoleManagement.cs +++ b/src/Microsoft.Graph/Generated/model/RoleManagement.cs @@ -30,7 +30,7 @@ public partial class RoleManagement /// /// Gets or sets entitlement management. - /// Container for all entitlement management resources in Azure AD identity governance. + /// Container for roles and assignments for entitlement management resources. /// [JsonPropertyName("entitlementManagement")] public RbacApplication EntitlementManagement { get; set; } diff --git a/src/Microsoft.Graph/Generated/model/TargetApplicationOwners.cs b/src/Microsoft.Graph/Generated/model/TargetApplicationOwners.cs new file mode 100644 index 00000000000..1aaa8232fe4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/TargetApplicationOwners.cs @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TargetApplicationOwners. + /// + public partial class TargetApplicationOwners : SubjectSet + { + /// + /// Initializes a new instance of the class. + /// + public TargetApplicationOwners() + { + this.ODataType = "microsoft.graph.targetApplicationOwners"; + } + + } +} diff --git a/src/Microsoft.Graph/Generated/model/TargetManager.cs b/src/Microsoft.Graph/Generated/model/TargetManager.cs new file mode 100644 index 00000000000..5858aa124a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/model/TargetManager.cs @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: ComplexType.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.IO; + using System.Text.Json.Serialization; + + /// + /// The type TargetManager. + /// + public partial class TargetManager : SubjectSet + { + /// + /// Initializes a new instance of the class. + /// + public TargetManager() + { + this.ODataType = "microsoft.graph.targetManager"; + } + + /// + /// Gets or sets managerLevel. + /// + [JsonPropertyName("managerLevel")] + public Int32? ManagerLevel { get; set; } + + } +} diff --git a/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionPage.cs b/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionPage.cs new file mode 100644 index 00000000000..166209a3eb2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionPage.cs @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionPage.cs.tt + +namespace Microsoft.Graph +{ + using System; + + /// + /// The type AccessPackageAssignmentPoliciesCollectionPage. + /// + public partial class AccessPackageAssignmentPoliciesCollectionPage : CollectionPage, IAccessPackageAssignmentPoliciesCollectionPage + { + /// + /// Gets the next page instance. + /// + public IAccessPackageAssignmentPoliciesCollectionRequest NextPageRequest { get; private set; } + + /// + /// Initializes the NextPageRequest property. + /// + public void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString) + { + if (!string.IsNullOrEmpty(nextPageLinkString)) + { + this.NextPageRequest = new AccessPackageAssignmentPoliciesCollectionRequest( + nextPageLinkString, + client, + null); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionRequest.cs b/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionRequest.cs new file mode 100644 index 00000000000..7c8d5e31f98 --- /dev/null +++ b/src/Microsoft.Graph/Generated/requests/AccessPackageAssignmentPoliciesCollectionRequest.cs @@ -0,0 +1,208 @@ +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +// **NOTE** This file was generated by a tool and any changes will be overwritten. +// + +// Template Source: EntityCollectionRequest.cs.tt + +namespace Microsoft.Graph +{ + using System; + using System.Collections.Generic; + using System.Net.Http; + using System.Threading; + using System.Linq.Expressions; + + /// + /// The type AccessPackageAssignmentPoliciesCollectionRequest. + /// + public partial class AccessPackageAssignmentPoliciesCollectionRequest : BaseRequest, IAccessPackageAssignmentPoliciesCollectionRequest + { + /// + /// Constructs a new AccessPackageAssignmentPoliciesCollectionRequest. + /// + /// The URL for the built request. + /// The for handling requests. + /// Query and header option name value pairs for the request. + public AccessPackageAssignmentPoliciesCollectionRequest( + string requestUrl, + IBaseClient client, + IEnumerable