Skip to content

Commit 90cddd0

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # generator/Settings.SharePoint.json
2 parents 4675e02 + ea0e82b commit 90cddd0

21 files changed

Lines changed: 348 additions & 137 deletions

generator/Settings.SharePoint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"docsRoot": "https:\/\/docs.microsoft.com\/en-us\/openspecs\/sharepoint_protocols\/ms-csomspt\/",
77
"rootNamespace": "Office365\\SharePoint",
88
"entityRootNamespace": "SP",
9-
"version": "16.0.21611.12002",
10-
"timestamp": "2021-08-22T17:22:47+03:00",
9+
"version": "16.0.21221.12006",
10+
"timestamp": "2021-05-05T14:47:20+00:00",
1111
"placeholder": "This file was generated by phpSPO model generator",
1212
"typeMappings": {
1313
"SP.List": "SP.SPList",

src/SharePoint/CustomerKeyInfo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2021-04-23T09:48:37+00:00 16.0.21207.12005
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -18,4 +18,8 @@ class CustomerKeyInfo extends ClientValue
1818
* @var CustomerKeyVaultInfo
1919
*/
2020
public $RecoveryKeyVault;
21+
/**
22+
* @var CustomerKeyVaultInfo
23+
*/
24+
public $AvailabilityKeyVault;
2125
}

src/SharePoint/CustomerKeyStatusInfo.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2019-10-12T18:54:53+00:00 16.0.19402.12016
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -30,4 +30,12 @@ class CustomerKeyStatusInfo extends ClientValue
3030
* @var integer
3131
*/
3232
public $Status;
33+
/**
34+
* @var string
35+
*/
36+
public $AvailabilityKeyVaultUri;
37+
/**
38+
* @var double
39+
*/
40+
public $RegistrationProgress;
3341
}

src/SharePoint/CustomerKeyVaultInfo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2021-04-23T09:48:37+00:00 16.0.21207.12005
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -32,4 +32,8 @@ class CustomerKeyVaultInfo extends ClientValue
3232
* @var string
3333
*/
3434
public $SubscriptionId;
35+
/**
36+
* @var string
37+
*/
38+
public $Uri;
3539
}

src/SharePoint/File.php

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2021-03-12T16:05:00+00:00 16.0.21103.12002
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -28,17 +28,12 @@
2828
*/
2929
class File extends SecurableObject
3030
{
31-
32-
public function moveToEx($destUrl, $overwrite){
33-
$this->ensureProperty("ServerRelativeUrl", function () use($destUrl,$overwrite){
34-
MoveCopyUtil::moveFile($this->getContext(),
35-
$this->getServerRelativeUrl(),
36-
$destUrl,
37-
$overwrite,
38-
new MoveCopyOptions());
31+
public function moveToEx($destUrl, $overwrite)
32+
{
33+
$this->ensureProperty("ServerRelativeUrl", function () use($destUrl, $overwrite) {
34+
MoveCopyUtil::moveFile($this->getContext(), $this->getServerRelativeUrl(), $destUrl, $overwrite, new MoveCopyOptions());
3935
});
4036
}
41-
4237
/**
4338
* Resolves File from absolute Url
4439
* @param string $absUrl
@@ -77,7 +72,6 @@ private function constructDownloadQuery($url, $handle)
7772
});
7873
return $qry;
7974
}
80-
8175
/**
8276
* Checks out the file from a document library based on the check-out type.
8377
* @return $this
@@ -234,8 +228,7 @@ public static function saveBinary(ClientRuntimeContext $ctx, $serverRelativeUrl,
234228
*/
235229
public function getLimitedWebPartManager($scope)
236230
{
237-
return new LimitedWebPartManager($this->getContext(),
238-
new ResourcePathServiceOperation("getLimitedWebPartManager", array($scope), $this->getResourcePath()));
231+
return new LimitedWebPartManager($this->getContext(), new ResourcePathServiceOperation("getLimitedWebPartManager", array($scope), $this->getResourcePath()));
239232
}
240233
/**
241234
* Returns IRM settings for given file.
@@ -244,18 +237,15 @@ public function getLimitedWebPartManager($scope)
244237
*/
245238
public function getInformationRightsManagementSettings()
246239
{
247-
return $this->getProperty("InformationRightsManagementSettings",
248-
new InformationRightsManagementSettings($this->getContext(),
249-
new ResourcePath("InformationRightsManagementSettings", $this->getResourcePath())));
240+
return $this->getProperty("InformationRightsManagementSettings", new InformationRightsManagementSettings($this->getContext(), new ResourcePath("InformationRightsManagementSettings", $this->getResourcePath())));
250241
}
251242
/**
252243
* Gets a value that returns a collection of file version objects that represent the versions of the file.
253244
* @return FileVersionCollection
254245
*/
255246
public function getVersions()
256247
{
257-
return $this->getProperty("Versions",
258-
new FileVersionCollection($this->getContext(), new ResourcePath("Versions", $this->getResourcePath())));
248+
return $this->getProperty("Versions", new FileVersionCollection($this->getContext(), new ResourcePath("Versions", $this->getResourcePath())));
259249
}
260250
/**
261251
* Gets a value that indicates how the file is checked out of a document library
@@ -271,8 +261,7 @@ public function getCheckOutType()
271261
*/
272262
public function getListItemAllFields()
273263
{
274-
return $this->getProperty("ListItemAllFields",
275-
new ListItem($this->getContext(), new ResourcePath("ListItemAllFields", $this->getResourcePath())));
264+
return $this->getProperty("ListItemAllFields", new ListItem($this->getContext(), new ResourcePath("ListItemAllFields", $this->getResourcePath())));
276265
}
277266
/**
278267
* Starts a new chunk upload session and uploads the first fragment
@@ -337,7 +326,6 @@ public function getCheckInComment()
337326
{
338327
return $this->getProperty("CheckInComment");
339328
}
340-
341329
/**
342330
* Specifies
343331
* the comment used when a document is checked into a document library.Its length
@@ -867,8 +855,7 @@ public function setWebId($value)
867855
*/
868856
public function getAuthor()
869857
{
870-
return $this->getProperty("Author",
871-
new User($this->getContext(), new ResourcePath("Author", $this->getResourcePath())));
858+
return $this->getProperty("Author", new User($this->getContext(), new ResourcePath("Author", $this->getResourcePath())));
872859
}
873860
/**
874861
* Specifies
@@ -877,8 +864,7 @@ public function getAuthor()
877864
*/
878865
public function getCheckedOutByUser()
879866
{
880-
return $this->getProperty("CheckedOutByUser",
881-
new User($this->getContext(), new ResourcePath("CheckedOutByUser", $this->getResourcePath())));
867+
return $this->getProperty("CheckedOutByUser", new User($this->getContext(), new ResourcePath("CheckedOutByUser", $this->getResourcePath())));
882868
}
883869
/**
884870
* Specifies
@@ -888,8 +874,7 @@ public function getCheckedOutByUser()
888874
*/
889875
public function getLockedByUser()
890876
{
891-
return $this->getProperty("LockedByUser",
892-
new User($this->getContext(), new ResourcePath("LockedByUser", $this->getResourcePath())));
877+
return $this->getProperty("LockedByUser", new User($this->getContext(), new ResourcePath("LockedByUser", $this->getResourcePath())));
893878
}
894879
/**
895880
* Specifies
@@ -899,17 +884,14 @@ public function getLockedByUser()
899884
*/
900885
public function getModifiedBy()
901886
{
902-
return $this->getProperty("ModifiedBy",
903-
new User($this->getContext(), new ResourcePath("ModifiedBy", $this->getResourcePath())));
887+
return $this->getProperty("ModifiedBy", new User($this->getContext(), new ResourcePath("ModifiedBy", $this->getResourcePath())));
904888
}
905889
/**
906890
* @return EffectiveInformationRightsManagementSettings
907891
*/
908892
public function getEffectiveInformationRightsManagementSettings()
909893
{
910-
return $this->getProperty("EffectiveInformationRightsManagementSettings",
911-
new EffectiveInformationRightsManagementSettings($this->getContext(),
912-
new ResourcePath("EffectiveInformationRightsManagementSettings", $this->getResourcePath())));
894+
return $this->getProperty("EffectiveInformationRightsManagementSettings", new EffectiveInformationRightsManagementSettings($this->getContext(), new ResourcePath("EffectiveInformationRightsManagementSettings", $this->getResourcePath())));
913895
}
914896
/**
915897
* @return Web|null
@@ -992,4 +974,32 @@ public function setServerRedirectedUrl($value)
992974
{
993975
$this->setProperty("ServerRedirectedUrl", $value, true);
994976
}
977+
/**
978+
* @return ListItemComplianceInfo
979+
*/
980+
public function getComplianceInfo()
981+
{
982+
return $this->getProperty("ComplianceInfo");
983+
}
984+
/**
985+
* @var ListItemComplianceInfo
986+
*/
987+
public function setComplianceInfo($value)
988+
{
989+
return $this->setProperty("ComplianceInfo", $value, true);
990+
}
991+
/**
992+
* @return string
993+
*/
994+
public function getExpirationDate()
995+
{
996+
return $this->getProperty("ExpirationDate");
997+
}
998+
/**
999+
* @var string
1000+
*/
1001+
public function setExpirationDate($value)
1002+
{
1003+
return $this->setProperty("ExpirationDate", $value, true);
1004+
}
9951005
}

src/SharePoint/MediaServiceUpdateParameters.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2021-04-23T09:48:37+00:00 16.0.21207.12005
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -84,4 +84,8 @@ class MediaServiceUpdateParameters extends ClientValue
8484
* @var integer
8585
*/
8686
public $AIPLabelExtractionStatus;
87+
/**
88+
* @var string
89+
*/
90+
public $MediaServiceImageTags;
8791
}

src/SharePoint/MenuNode.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2020-08-17T19:25:17+00:00 16.0.20405.12007
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -95,4 +95,8 @@ class MenuNode extends ClientValue
9595
* @var integer
9696
*/
9797
public $CurrentLCID;
98+
/**
99+
* @var bool
100+
*/
101+
public $OpenInNewWindow;
98102
}

src/SharePoint/ObjectSharingSettings.php

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

33
/**
4-
* Modified: 2021-03-12T16:05:00+00:00
5-
* API version: 16.0.21103.12002
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
65
*/
76
namespace Office365\SharePoint;
87

@@ -726,18 +725,14 @@ public function setWebUrl($value)
726725
*/
727726
public function getObjectSharingInformation()
728727
{
729-
return $this->getProperty("ObjectSharingInformation",
730-
new ObjectSharingInformation($this->getContext(),
731-
new ResourcePath("ObjectSharingInformation", $this->getResourcePath())));
728+
return $this->getProperty("ObjectSharingInformation", new ObjectSharingInformation($this->getContext(), new ResourcePath("ObjectSharingInformation", $this->getResourcePath())));
732729
}
733730
/**
734731
* @return SharePointSharingSettings
735732
*/
736733
public function getSharePointSettings()
737734
{
738-
return $this->getProperty("SharePointSettings",
739-
new SharePointSharingSettings($this->getContext(),
740-
new ResourcePath("SharePointSettings", $this->getResourcePath())));
735+
return $this->getProperty("SharePointSettings", new SharePointSharingSettings($this->getContext(), new ResourcePath("SharePointSettings", $this->getResourcePath())));
741736
}
742737
/**
743738
* @return bool
@@ -781,4 +776,18 @@ public function setEnforceSPOSearch($value)
781776
{
782777
$this->setProperty("EnforceSPOSearch", $value, true);
783778
}
779+
/**
780+
* @return string
781+
*/
782+
public function getSiteIBMode()
783+
{
784+
return $this->getProperty("SiteIBMode");
785+
}
786+
/**
787+
* @var string
788+
*/
789+
public function setSiteIBMode($value)
790+
{
791+
return $this->setProperty("SiteIBMode", $value, true);
792+
}
784793
}

src/SharePoint/Placeholder.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* This file was generated by phpSPO model generator 2021-04-23T09:48:37+00:00 16.0.21207.12005
4+
* This file was generated by phpSPO model generator 2021-08-22T15:28:03+00:00 16.0.21611.12002
55
*/
66
namespace Office365\SharePoint;
77

@@ -36,4 +36,8 @@ class Placeholder extends ClientValue
3636
* @var integer
3737
*/
3838
public $StartPosition;
39+
/**
40+
* @var string
41+
*/
42+
public $ParagraphId;
3943
}

0 commit comments

Comments
 (0)