Skip to content

Commit 4e580c2

Browse files
committed
chore: commit pending changes
1 parent 830ae40 commit 4e580c2

22 files changed

Lines changed: 244 additions & 61 deletions

generator/.checkpoints/SharePoint.xml.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

office365/onedrive/driveitems/driveItem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def upload_file(self, path_or_file: str | PathLike | IOBase) -> DriveItem:
391391
return self.upload(os.path.basename(getattr(path_or_file, "name", "")), path_or_file.read())
392392

393393
file_size = os.path.getsize(path_or_file)
394-
if file_size > 4 * 1024 * 1024:
394+
if file_size >= 4 * 1024 * 1024:
395395
return self.resumable_upload(str(path_or_file))
396396

397397
with open(path_or_file, "rb") as f:

office365/sharepoint/clientsidecomponent/identifier.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from dataclasses import dataclass, field
3+
from dataclasses import dataclass
44

55
from office365.runtime.client_value import ClientValue
66

@@ -9,11 +9,8 @@
99
class SPClientSideComponentIdentifier(ClientValue):
1010
"""This identifier uniquely identifies a component."""
1111

12-
id_: str | None = field(default=None)
1312
version: str | None = None
14-
15-
def __post_init__(self):
16-
self.id = self.id_
13+
id: str | None = None
1714

1815
def __repr__(self):
1916
return self.id or self.entity_type_name

office365/sharepoint/clientsidecomponent/query_result.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from dataclasses import dataclass
3+
from dataclasses import dataclass, field
44
from datetime import datetime
55

66
from office365.runtime.client_value import ClientValue
@@ -17,13 +17,13 @@ class SPClientSideComponentQueryResult(ClientValue):
1717
manifest_type (str | None):
1818
"""
1919

20-
component_type: str | None = None
21-
manifest: str | None = None
22-
manifest_type: str | None = None
23-
id_: str | None = None
24-
manifest_activated_time: datetime | None = None
25-
name: str | None = None
26-
status: int | None = None
20+
ComponentType: int | None = None
21+
Id: str | None = None
22+
Manifest: str | None = None
23+
ManifestActivatedTime: datetime | None = field(default_factory=lambda: datetime.min)
24+
ManifestType: int | None = None
25+
Name: str | None = None
26+
Status: int | None = None
2727

2828
@property
2929
def entity_type_name(self):

office365/sharepoint/clientsidecomponent/spteamsappcomponent.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
@dataclass
99
class SPTeamsAppComponent(ClientValue):
10-
app_description: str | None = None
11-
app_id: str | None = None
12-
app_name: str | None = None
13-
bot_id: str | None = None
14-
component_id: str | None = None
15-
default_size: str | None = None
16-
description: str | None = None
17-
external_app_id: str | None = None
18-
group_id: str | None = None
19-
icon_url: str | None = None
20-
name: str | None = None
21-
office_ui_fabric_icon_name: str | None = None
22-
version: str | None = None
10+
appDescription: str | None = None
11+
appId: str | None = None
12+
appName: str | None = None
13+
botId: str | None = None
14+
componentId: str | None = None
15+
defaultSize: str | None = None
16+
externalAppId: str | None = None
17+
groupId: str | None = None
18+
iconUrl: str | None = None
19+
officeUIFabricIconName: str | None = None
2320

2421
@property
2522
def entity_type_name(self):
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from __future__ import annotations
2+
3+
from dataclasses import field
4+
5+
from office365.runtime.client_value import ClientValue
6+
from office365.runtime.types.collections import StringCollection
7+
8+
9+
class AddRawQuestionsPayload(ClientValue):
10+
Questions: StringCollection = field(default_factory=StringCollection)
11+
12+
@property
13+
def entity_type_name(self) -> str:
14+
return "Microsoft.SharePoint.DynamicContent.AddRawQuestionsPayload"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from office365.runtime.client_value import ClientValue
4+
5+
6+
class AggregatedQuestion(ClientValue):
7+
AskedCount: int | None = None
8+
9+
@property
10+
def entity_type_name(self) -> str:
11+
return "Microsoft.SharePoint.DynamicContent.AggregatedQuestion"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from __future__ import annotations
2+
3+
from dataclasses import field
4+
5+
from office365.runtime.client_value import ClientValue
6+
from office365.runtime.client_value_collection import ClientValueCollection
7+
from office365.runtime.types.collections import GuidCollection
8+
from office365.sharepoint.dynamiccontent.aggregated_question import AggregatedQuestion
9+
10+
11+
class AggregatedQuestionsPayload(ClientValue):
12+
AggregatedQuestions: ClientValueCollection[AggregatedQuestion] = field(
13+
default_factory=lambda: ClientValueCollection(AggregatedQuestion)
14+
)
15+
AggregatedRawQuestionIds: GuidCollection = field(default_factory=GuidCollection)
16+
17+
@property
18+
def entity_type_name(self) -> str:
19+
return "Microsoft.SharePoint.DynamicContent.AggregatedQuestionsPayload"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from __future__ import annotations
2+
3+
from dataclasses import field
4+
5+
from office365.runtime.client_value import ClientValue
6+
from office365.runtime.client_value_collection import ClientValueCollection
7+
from office365.sharepoint.dynamiccontent.aggregated_question import AggregatedQuestion
8+
9+
10+
class AggregatedQuestionsResult(ClientValue):
11+
AggregatedQuestions: ClientValueCollection[AggregatedQuestion] = field(
12+
default_factory=lambda: ClientValueCollection(AggregatedQuestion)
13+
)
14+
15+
@property
16+
def entity_type_name(self) -> str:
17+
return "Microsoft.SharePoint.DynamicContent.AggregatedQuestionsResult"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from __future__ import annotations
2+
3+
from dataclasses import field
4+
5+
from office365.runtime.client_value import ClientValue
6+
from office365.runtime.types.collections import GuidCollection
7+
8+
9+
class DeleteAggregatedQuestionsPayload(ClientValue):
10+
QuestionIds: GuidCollection = field(default_factory=GuidCollection)
11+
12+
@property
13+
def entity_type_name(self) -> str:
14+
return "Microsoft.SharePoint.DynamicContent.DeleteAggregatedQuestionsPayload"

0 commit comments

Comments
 (0)