Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding request file links properties to site and tenant output #3557

Merged
merged 6 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `-RelativeUrl` parameter to `Connect-PnPOnline` cmdlet to allow specifying custom URLs for usage with `-WebLogin` method. [#3530](https://github.com/pnp/powershell/pull/3530)
- Added `-RetryCount` to `Submit-PnPSearchQuery` which allows for specifying the number of retries to perform when an exception occurs [#3528](https://github.com/pnp/powershell/pull/3528)
- Added `-MailNickname` parameter to `Set-PnPMicrosoft365Group` cmdlet to allow changing of this property on a Microsoft 365 Group [#3529](https://github.com/pnp/powershell/pull/3529)
- Added `RequestFilesLinkEnabled` and `RequestFilesLinkExpirationInDays` to the output of `Get-PnPSite` [#3557](https://github.com/pnp/powershell/pull/3557)
- Added `CoreRequestFilesLinkEnabled`, `CoreRequestFilesLinkExpirationInDays`, `OneDriveRequestFilesLinkEnabled`, `OneDriveRequestFilesLinkExpirationInDays`, `BusinessConnectivityServiceDisabled` to the output of `Get-PnPTenant` [#3557](https://github.com/pnp/powershell/pull/3557)
- Added `-BusinessConnectivityServiceDisabled` parameter to `Set-PnPTenant` cmdlt to allow disabling the Business Connectivity Service [#3562](https://github.com/pnp/powershell/pull/3562)

### Fixed
Expand Down
10 changes: 9 additions & 1 deletion src/Commands/Model/SPOSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace PnP.PowerShell.Commands.Model
{
public class SPOSite
{
#region Properties
public bool AllowDownloadingNonWebViewableFiles { get; set; }
public bool AllowEditing { get; set; }
public bool AllowSelfServiceUpgrade { get; set; }
Expand Down Expand Up @@ -67,6 +68,11 @@ public class SPOSite
public string Title { get; set; }
public string Url { get; set; }
public int WebsCount { get; set; }
public bool? RequestFilesLinkEnabled { private set; get; }
public int? RequestFilesLinkExpirationInDays { private set; get; }

#endregion

public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus)
{
AllowDownloadingNonWebViewableFiles = props.AllowDownloadingNonWebViewableFiles;
Expand Down Expand Up @@ -128,7 +134,9 @@ public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus)
Template = props.Template;
Title = props.Title;
WebsCount = props.WebsCount;
Url = props.Url;
Url = props.Url;
RequestFilesLinkEnabled = props.RequestFilesLinkEnabled;
RequestFilesLinkExpirationInDays = props.RequestFilesLinkExpirationInDays;
}

}
Expand Down
Loading