forked from pnp/powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSPOSite.cs
More file actions
207 lines (200 loc) · 12.1 KB
/
SPOSite.cs
File metadata and controls
207 lines (200 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
using System;
using Microsoft.Online.SharePoint.TenantAdministration;
using Microsoft.SharePoint.Client.Sharing;
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; }
public int AnonymousLinkExpirationInDays { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.BlockDownloadLinksFileTypes BlockDownloadLinksFileType { get; set; }
public bool CommentsOnSitePagesDisabled { get; set; }
public int CompatibilityLevel { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SPOConditionalAccessPolicyType ConditionalAccessPolicy { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SharingPermissionType DefaultLinkPermission { get; set; }
public bool DefaultLinkToExistingAccess { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SharingLinkType DefaultSharingLinkType { get; set; }
public DenyAddAndCustomizePagesStatus DenyAddAndCustomizePages { get; set; }
public string Description { get; set; }
public AppViewsPolicy DisableAppViews { get; set; }
public CompanyWideSharingLinksPolicy DisableCompanyWideSharingLinks { get; set; }
public FlowsPolicy DisableFlows { get; set; }
public bool? DisableSharingForNonOwnersStatus { get; set; }
public int ExternalUserExpirationInDays { get; set; }
public Guid GroupId { get; set; }
public Guid HubSiteId { get; }
public Guid[] InformationSegment { get; set; }
public bool IsHubSite { get; }
public bool IsTeamsChannelConnected { get; }
public bool IsTeamsConnected { get; }
public DateTime LastContentModifiedDate { get; }
public Microsoft.Online.SharePoint.TenantManagement.SPOLimitedAccessFileType LimitedAccessFileType { get; set; }
public uint LocaleId { get; set; }
public string LockIssue { get; }
public string LockState { get; set; }
public bool OverrideTenantAnonymousLinkExpirationPolicy { get; set; }
public bool OverrideTenantExternalUserExpirationPolicy { get; set; }
public string Owner { get; }
public string OwnerEmail { get; }
public string OwnerLoginName { get; }
public string OwnerName { get; }
public string ProtectionLevelName { get; set; }
public PWAEnabledStatus PWAEnabled { get; set; }
public Guid RelatedGroupId { get; }
public double ResourceQuota { get; set; }
public double ResourceQuotaWarningLevel { get; set; }
public double ResourceUsageAverage { get; set; }
public double ResourceUsageCurrent { get; set; }
public RestrictedToRegion RestrictedToGeo { get; set; }
public SandboxedCodeActivationCapabilities SandboxedCodeActivationCapability { get; set; }
public string SensitivityLabel { get; set; }
public string SharingAllowedDomainList { get; set; }
public string SharingBlockedDomainList { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities SharingCapability { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SharingDomainRestrictionModes SharingDomainRestrictionMode { get; set; }
public bool ShowPeoplePickerSuggestionsForGuestUsers { get; set; }
public Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities SiteDefinedSharingCapability { get; set; }
public Guid SiteId { get; set; }
public bool SocialBarOnSitePagesDisabled { get; set; }
public string Status { get; set; }
public long StorageQuota { get; set; }
public string StorageQuotaType { get; set; }
public long StorageQuotaWarningLevel { get; set; }
public long StorageUsageCurrent { get; set; }
public TeamsChannelTypeValue TeamsChannelType { get; set; }
public string Template { get; set; }
public string Title { get; set; }
public string Url { get; set; }
public int WebsCount { get; set; }
public string InformationBarrierMode { get; set; }
public Guid[] InformationBarrierSegments { get; set; }
public Guid[] InformationBarrierSegmentsToAdd { get; set; }
public Guid[] InformationBarrierSegmentsToRemove { get; set; }
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 HasHolds { 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; }
public bool RestrictContentOrgWideSearch { get; set; }
public bool ReadOnlyForUnmanagedDevices { get; set; }
public SiteUserInfoVisibilityPolicyValue OverrideBlockUserInfoVisibility { get; set; }
public bool OverrideSharingCapability { get; set; }
public bool AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled { get; set; }
#endregion
public SPOSite(SiteProperties props, bool? disableSharingForNonOwnersStatus)
{
AllowDownloadingNonWebViewableFiles = props.AllowDownloadingNonWebViewableFiles;
AllowEditing = props.AllowEditing;
AllowSelfServiceUpgrade = props.AllowSelfServiceUpgrade;
AnonymousLinkExpirationInDays = props.AnonymousLinkExpirationInDays;
BlockDownloadLinksFileType = props.BlockDownloadLinksFileType;
CommentsOnSitePagesDisabled = props.CommentsOnSitePagesDisabled;
CompatibilityLevel = props.CompatibilityLevel;
ConditionalAccessPolicy = props.ConditionalAccessPolicy;
DefaultLinkPermission = props.DefaultLinkPermission;
DefaultLinkToExistingAccess = props.DefaultLinkToExistingAccess;
DefaultSharingLinkType = props.DefaultSharingLinkType;
DenyAddAndCustomizePages = props.DenyAddAndCustomizePages;
Description = props.Description;
DisableAppViews = props.DisableAppViews;
DisableCompanyWideSharingLinks = props.DisableCompanyWideSharingLinks;
DisableFlows = props.DisableFlows;
DisableSharingForNonOwnersStatus = disableSharingForNonOwnersStatus;
ExternalUserExpirationInDays = props.ExternalUserExpirationInDays;
GroupId = props.GroupId;
HubSiteId = props.HubSiteId;
IsHubSite = props.IsHubSite;
IsTeamsChannelConnected = props.IsTeamsChannelConnected;
IsTeamsConnected = props.IsTeamsConnected;
LastContentModifiedDate = props.LastContentModifiedDate;
LimitedAccessFileType = props.LimitedAccessFileType;
LocaleId = props.Lcid;
LockIssue = props.LockIssue;
LockState = props.LockState;
Owner = props.Owner;
OwnerEmail = props.OwnerEmail;
OwnerLoginName = props.OwnerLoginName;
OwnerName = props.OwnerName;
OverrideTenantAnonymousLinkExpirationPolicy = props.OverrideTenantAnonymousLinkExpirationPolicy;
OverrideTenantExternalUserExpirationPolicy = props.OverrideTenantExternalUserExpirationPolicy;
PWAEnabled = props.PWAEnabled;
RelatedGroupId = props.RelatedGroupId;
ResourceQuota = props.UserCodeMaximumLevel;
ResourceQuotaWarningLevel = props.UserCodeWarningLevel;
ResourceUsageAverage = props.AverageResourceUsage;
ResourceUsageCurrent = props.CurrentResourceUsage;
RestrictedToGeo = props.RestrictedToRegion;
SandboxedCodeActivationCapability = props.SandboxedCodeActivationCapability;
SensitivityLabel = props.SensitivityLabel2;
SharingAllowedDomainList = props.SharingAllowedDomainList;
SharingBlockedDomainList = props.SharingBlockedDomainList;
SharingCapability = props.SharingCapability;
SharingDomainRestrictionMode = props.SharingDomainRestrictionMode;
ShowPeoplePickerSuggestionsForGuestUsers = props.ShowPeoplePickerSuggestionsForGuestUsers;
SiteDefinedSharingCapability = props.SiteDefinedSharingCapability;
SiteId = props.SiteId;
SocialBarOnSitePagesDisabled = props.SocialBarOnSitePagesDisabled;
Status = props.Status;
StorageQuota = props.StorageMaximumLevel;
StorageQuotaType = props.StorageQuotaType;
StorageQuotaWarningLevel = props.StorageWarningLevel;
StorageUsageCurrent = props.StorageUsage;
TeamsChannelType = props.TeamsChannelType;
Template = props.Template;
Title = props.Title;
WebsCount = props.WebsCount;
Url = props.Url;
InformationBarrierMode = props.IBMode;
InformationBarrierSegments = props.IBSegments;
InformationBarrierSegmentsToAdd = props.IBSegmentsToAdd;
InformationBarrierSegmentsToRemove = props.IBSegmentsToRemove;
RequestFilesLinkEnabled = props.RequestFilesLinkEnabled;
RequestFilesLinkExpirationInDays = props.RequestFilesLinkExpirationInDays;
LoopDefaultSharingLinkRole = props.LoopDefaultSharingLinkRole;
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;
HasHolds = props.HasHolds;
MajorVersionLimit = props.MajorVersionLimit;
MajorWithMinorVersionsLimit = props.MajorWithMinorVersionsLimit;
RestrictedAccessControl = props.RestrictedAccessControl;
RestrictedAccessControlGroups = props.RestrictedAccessControlGroups;
RestrictedAccessControlGroupsToAdd = props.RestrictedAccessControlGroupsToAdd;
RestrictedAccessControlGroupsToRemove = props.RestrictedAccessControlGroupsToRemove;
RestrictedToRegion = props.RestrictedToRegion;
SetOwnerWithoutUpdatingSecondaryAdmin = props.SetOwnerWithoutUpdatingSecondaryAdmin;
RestrictContentOrgWideSearch = props.RestrictContentOrgWideSearch;
ReadOnlyForUnmanagedDevices = props.ReadOnlyForUnmanagedDevices;
OverrideSharingCapability = props.OverrideSharingCapability;
OverrideBlockUserInfoVisibility = props.OverrideBlockUserInfoVisibility;
AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled = props.AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled;
}
}
}