Skip to content

Commit

Permalink
Adding request file links properties to site and tenant output (#3557)
Browse files Browse the repository at this point in the history
* Cleanup of the file. Removing separate private properties and replacing by get/set properties to simplify.

* Adding CoreRequestFilesLinkEnabled, CoreRequestFilesLinkExpirationInDays, OneDriveRequestFilesLinkEnabled and OneDriveRequestFilesLinkExpirationInDays

* Adding RequestFilesLinkEnabled and RequestFilesLinkExpirationInDays

* Adding changelog entry

* Added BusinessConnectivityServiceDisabled

---------

Co-authored-by: Gautam Sheth <[email protected]>
  • Loading branch information
KoenZomers and gautamdsheth authored Nov 10, 2023
1 parent 30c7c0e commit 61d10a1
Show file tree
Hide file tree
Showing 3 changed files with 329 additions and 484 deletions.
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

0 comments on commit 61d10a1

Please sign in to comment.