File tree 3 files changed +16
-10
lines changed
3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,12 @@ def _upload_file_by_path():
76
76
@property
77
77
def file_name (self ):
78
78
# type: () -> Optional[str]
79
- """
80
- Specifies the file name of the list item attachment.
81
- """
79
+ """Specifies the file name of the list item attachment."""
82
80
return self .properties .get ("FileName" , None )
83
81
84
82
@property
85
83
def file_name_as_path (self ):
86
- """
87
- The file name of the attachment as a SP.ResourcePath.
88
- """
84
+ """The file name of the attachment as a SP.ResourcePath."""
89
85
return self .properties .get ("FileNameAsPath" , SPResPath ())
90
86
91
87
@property
@@ -96,9 +92,7 @@ def server_relative_url(self):
96
92
97
93
@property
98
94
def server_relative_path (self ):
99
- """
100
- The server-relative-path of the attachment.
101
- """
95
+ """The server-relative-path of the attachment."""
102
96
return self .properties .get ("ServerRelativePath" , SPResPath ())
103
97
104
98
@property
Original file line number Diff line number Diff line change @@ -111,6 +111,12 @@ def id(self):
111
111
"""
112
112
return self .properties .get ("Id" , ContentTypeId ())
113
113
114
+ @property
115
+ def scope (self ):
116
+ # type: () -> Optional[str]
117
+ """Specifies a server-relative path to the content type scope of the content type."""
118
+ return self .properties .get ("Scope" , None )
119
+
114
120
@property
115
121
def sealed (self ):
116
122
# type: () -> Optional[bool]
@@ -142,6 +148,12 @@ def new_form_client_side_component_properties(self):
142
148
item forms"""
143
149
return self .properties .get ("NewFormClientSideComponentProperties" , None )
144
150
151
+ @property
152
+ def new_form_url (self ):
153
+ # type: () -> Optional[str]
154
+ """Specifies the URL of a custom new form to use for list items that have been assigned the content type."""
155
+ return self .properties .get ("NewFormUrl" , None )
156
+
145
157
@property
146
158
def description (self ):
147
159
# type: () -> Optional[str]
Original file line number Diff line number Diff line change 10
10
11
11
setup (
12
12
name = "Office365-REST-Python-Client" ,
13
- version = "2.5.6 " ,
13
+ version = "2.5.7 " ,
14
14
author = "Vadim Gremyachev" ,
15
15
16
16
maintainer = "Konrad Gądek, Domenico Di Nicola" ,
You can’t perform that action at this time.
0 commit comments