Skip to content

Commit

Permalink
Update PnPTenantSite to include additional properties and their sette…
Browse files Browse the repository at this point in the history
…rs (#3987)

Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com>
  • Loading branch information
gautamdsheth and Gautam Sheth authored May 30, 2024
1 parent aebec9a commit 7ee6d49
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions src/Commands/Model/SPOSite.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.Online.SharePoint.TenantManagement;
using Microsoft.SharePoint.Client.Sharing;

namespace PnP.PowerShell.Commands.Model
Expand Down Expand Up @@ -33,7 +34,7 @@ public class SPOSite
public bool IsTeamsConnected { get; }
public DateTime LastContentModifiedDate { get; }
public Microsoft.Online.SharePoint.TenantManagement.SPOLimitedAccessFileType LimitedAccessFileType { get; set; }
public UInt32 LocaleId { get; set; }
public uint LocaleId { get; set; }
public string LockIssue { get; }
public string LockState { get; set; }
public bool OverrideTenantAnonymousLinkExpirationPolicy { get; set; }
Expand Down Expand Up @@ -75,12 +76,30 @@ public class SPOSite
public Guid[] InformationBarrierSegmentsToAdd { get; set; }
public Guid[] InformationBarrierSegmentsToRemove { get; set; }

public bool? RequestFilesLinkEnabled { private set; get; }
public int? RequestFilesLinkExpirationInDays { private set; get; }
public bool? RequestFilesLinkEnabled { set; get; }
public int? RequestFilesLinkExpirationInDays { set; get; }
public Role LoopDefaultSharingLinkRole { get; set; }
public SharingScope DefaultShareLinkScope { get; set; }
public Role DefaultShareLinkRole { get; set; }
public SharingScope LoopDefaultSharingLinkScope { get; set; }
public string ArchiveStatus { get; set; }
public bool EnableAutoExpirationVersionTrim { get; set; }
public int ExpireVersionsAfterDays { get; set; }

public bool InheritVersionPolicyFromTenant { get; set; }
public bool IsGroupOwnerSiteAdmin { get; set; }
public bool ListsShowHeaderAndNavigation { get; set; }
public int LockReason { get; set; }
public bool LoopOverrideSharingCapability { get; set; }
public SharingCapabilities LoopSharingCapability { get; set; }
public int MajorVersionLimit { get; set; }
public int MajorWithMinorVersionsLimit { get; set; }
public bool RestrictedAccessControl { get; set; }
public Guid[] RestrictedAccessControlGroups { get; set; }
public Guid[] RestrictedAccessControlGroupsToAdd { get; set; }
public Guid[] RestrictedAccessControlGroupsToRemove { get; set; }
public RestrictedToRegion RestrictedToRegion { get; set; }
public bool SetOwnerWithoutUpdatingSecondaryAdmin { get; set; }

#endregion

Expand Down Expand Up @@ -157,6 +176,23 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus)
DefaultShareLinkScope = props.DefaultShareLinkScope;
DefaultShareLinkRole = props.DefaultShareLinkRole;
LoopDefaultSharingLinkScope = props.LoopDefaultSharingLinkScope;
ArchiveStatus = props.ArchiveStatus;
EnableAutoExpirationVersionTrim = props.EnableAutoExpirationVersionTrim;
ExpireVersionsAfterDays = props.ExpireVersionsAfterDays;
InheritVersionPolicyFromTenant = props.InheritVersionPolicyFromTenant;
IsGroupOwnerSiteAdmin = props.IsGroupOwnerSiteAdmin;
ListsShowHeaderAndNavigation = props.ListsShowHeaderAndNavigation;
LockReason = props.LockReason;
LoopOverrideSharingCapability = props.LoopOverrideSharingCapability;
LoopSharingCapability = props.LoopSharingCapability;
MajorVersionLimit = props.MajorVersionLimit;
MajorWithMinorVersionsLimit = props.MajorWithMinorVersionsLimit;
RestrictedAccessControl = props.RestrictedAccessControl;
RestrictedAccessControlGroups = props.RestrictedAccessControlGroups;
RestrictedAccessControlGroupsToAdd = props.RestrictedAccessControlGroupsToAdd;
RestrictedAccessControlGroupsToRemove = props.RestrictedAccessControlGroupsToRemove;
RestrictedToRegion = props.RestrictedToRegion;
SetOwnerWithoutUpdatingSecondaryAdmin = props.SetOwnerWithoutUpdatingSecondaryAdmin;
}
}
}

0 comments on commit 7ee6d49

Please sign in to comment.