smartsheet-python-sdk 3.5.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smartsheet/__init__.py +37 -0
- smartsheet/attachments.py +565 -0
- smartsheet/cells.py +164 -0
- smartsheet/contacts.py +78 -0
- smartsheet/discussions.py +411 -0
- smartsheet/events.py +79 -0
- smartsheet/exceptions.py +130 -0
- smartsheet/favorites.py +116 -0
- smartsheet/folders.py +438 -0
- smartsheet/groups.py +186 -0
- smartsheet/home.py +180 -0
- smartsheet/images.py +61 -0
- smartsheet/models/__init__.py +126 -0
- smartsheet/models/access_token.py +95 -0
- smartsheet/models/account.py +77 -0
- smartsheet/models/alternate_email.py +88 -0
- smartsheet/models/asset_share.py +165 -0
- smartsheet/models/asset_shares_paginated_result.py +84 -0
- smartsheet/models/attachment.py +181 -0
- smartsheet/models/auto_number_format.py +81 -0
- smartsheet/models/automation_action.py +162 -0
- smartsheet/models/automation_rule.py +164 -0
- smartsheet/models/boolean_object_value.py +38 -0
- smartsheet/models/bulk_item_failure.py +77 -0
- smartsheet/models/bulk_item_result.py +111 -0
- smartsheet/models/cell.py +193 -0
- smartsheet/models/cell_data_item.py +152 -0
- smartsheet/models/cell_history.py +67 -0
- smartsheet/models/cell_link.py +91 -0
- smartsheet/models/cell_link_widget_content.py +101 -0
- smartsheet/models/chart_widget_content.py +124 -0
- smartsheet/models/column.py +253 -0
- smartsheet/models/comment.py +126 -0
- smartsheet/models/contact.py +88 -0
- smartsheet/models/contact_object_value.py +59 -0
- smartsheet/models/container_destination.py +74 -0
- smartsheet/models/copy_or_move_row_destination.py +54 -0
- smartsheet/models/copy_or_move_row_directive.py +64 -0
- smartsheet/models/copy_or_move_row_result.py +67 -0
- smartsheet/models/criteria.py +82 -0
- smartsheet/models/cross_sheet_reference.py +134 -0
- smartsheet/models/currency.py +64 -0
- smartsheet/models/date_object_value.py +56 -0
- smartsheet/models/datetime_object_value.py +56 -0
- smartsheet/models/discussion.py +183 -0
- smartsheet/models/downloaded_file.py +106 -0
- smartsheet/models/duration.py +112 -0
- smartsheet/models/email.py +82 -0
- smartsheet/models/enums/__init__.py +56 -0
- smartsheet/models/enums/access_level.py +26 -0
- smartsheet/models/enums/asset_type.py +10 -0
- smartsheet/models/enums/attachment_parent_type.py +23 -0
- smartsheet/models/enums/attachment_sub_type.py +26 -0
- smartsheet/models/enums/attachment_type.py +29 -0
- smartsheet/models/enums/automation_action_frequency.py +24 -0
- smartsheet/models/enums/automation_action_type.py +23 -0
- smartsheet/models/enums/automation_rule_disabled_reason.py +27 -0
- smartsheet/models/enums/cell_link_status.py +28 -0
- smartsheet/models/enums/column_type.py +31 -0
- smartsheet/models/enums/criteria_target.py +21 -0
- smartsheet/models/enums/cross_sheet_reference_status.py +28 -0
- smartsheet/models/enums/currency_code.py +43 -0
- smartsheet/models/enums/day_descriptors.py +30 -0
- smartsheet/models/enums/day_ordinal.py +25 -0
- smartsheet/models/enums/event_action.py +76 -0
- smartsheet/models/enums/event_obejct_type.py +34 -0
- smartsheet/models/enums/event_source.py +27 -0
- smartsheet/models/enums/global_template.py +23 -0
- smartsheet/models/enums/operator.py +62 -0
- smartsheet/models/enums/paper_type.py +29 -0
- smartsheet/models/enums/predecessor_type.py +24 -0
- smartsheet/models/enums/publish_accessible_by.py +22 -0
- smartsheet/models/enums/schedule_type.py +25 -0
- smartsheet/models/enums/seat_type.py +17 -0
- smartsheet/models/enums/share_scope.py +22 -0
- smartsheet/models/enums/share_type.py +22 -0
- smartsheet/models/enums/sheet_email_format.py +23 -0
- smartsheet/models/enums/sheet_filter_operator.py +22 -0
- smartsheet/models/enums/sheet_filter_type.py +23 -0
- smartsheet/models/enums/sort_direction.py +22 -0
- smartsheet/models/enums/symbol.py +45 -0
- smartsheet/models/enums/system_column_type.py +25 -0
- smartsheet/models/enums/update_request_status.py +23 -0
- smartsheet/models/enums/user_status.py +23 -0
- smartsheet/models/enums/widget_type.py +32 -0
- smartsheet/models/error.py +74 -0
- smartsheet/models/error_result.py +117 -0
- smartsheet/models/event.py +153 -0
- smartsheet/models/event_result.py +86 -0
- smartsheet/models/explicit_null.py +24 -0
- smartsheet/models/favorite.py +81 -0
- smartsheet/models/folder.py +177 -0
- smartsheet/models/font_family.py +63 -0
- smartsheet/models/format_details.py +55 -0
- smartsheet/models/format_tables.py +191 -0
- smartsheet/models/group.py +134 -0
- smartsheet/models/group_member.py +104 -0
- smartsheet/models/home.py +110 -0
- smartsheet/models/hyperlink.py +81 -0
- smartsheet/models/image.py +101 -0
- smartsheet/models/image_url.py +91 -0
- smartsheet/models/image_url_map.py +68 -0
- smartsheet/models/image_widget_content.py +117 -0
- smartsheet/models/index_result.py +118 -0
- smartsheet/models/json_object.py +59 -0
- smartsheet/models/multi_contact_object_value.py +49 -0
- smartsheet/models/multi_picklist_object_value.py +48 -0
- smartsheet/models/multi_row_email.py +60 -0
- smartsheet/models/number_object_value.py +38 -0
- smartsheet/models/o_auth_error.py +86 -0
- smartsheet/models/object_value.py +130 -0
- smartsheet/models/paginated_children_result.py +80 -0
- smartsheet/models/predecessor.py +102 -0
- smartsheet/models/predecessor_list.py +49 -0
- smartsheet/models/primitive_object_value.py +59 -0
- smartsheet/models/profile_image.py +72 -0
- smartsheet/models/project_settings.py +89 -0
- smartsheet/models/recipient.py +63 -0
- smartsheet/models/report.py +90 -0
- smartsheet/models/report_cell.py +59 -0
- smartsheet/models/report_column.py +67 -0
- smartsheet/models/report_publish.py +95 -0
- smartsheet/models/report_row.py +68 -0
- smartsheet/models/report_widget_content.py +78 -0
- smartsheet/models/result.py +105 -0
- smartsheet/models/row.py +336 -0
- smartsheet/models/row_email.py +83 -0
- smartsheet/models/row_mapping.py +77 -0
- smartsheet/models/schedule.py +140 -0
- smartsheet/models/scope.py +70 -0
- smartsheet/models/search_result.py +67 -0
- smartsheet/models/search_result_item.py +150 -0
- smartsheet/models/selection_range.py +86 -0
- smartsheet/models/sent_update_request.py +172 -0
- smartsheet/models/server_info.py +67 -0
- smartsheet/models/share.py +183 -0
- smartsheet/models/sheet.py +462 -0
- smartsheet/models/sheet_email.py +81 -0
- smartsheet/models/sheet_filter.py +106 -0
- smartsheet/models/sheet_filter_details.py +76 -0
- smartsheet/models/sheet_publish.py +184 -0
- smartsheet/models/sheet_summary.py +59 -0
- smartsheet/models/sheet_user_permissions.py +58 -0
- smartsheet/models/sheet_user_settings.py +72 -0
- smartsheet/models/shortcut_data_item.py +102 -0
- smartsheet/models/shortcut_widget_content.py +61 -0
- smartsheet/models/sight.py +175 -0
- smartsheet/models/sight_publish.py +77 -0
- smartsheet/models/sort_criterion.py +64 -0
- smartsheet/models/sort_specifier.py +55 -0
- smartsheet/models/source.py +83 -0
- smartsheet/models/string_object_value.py +38 -0
- smartsheet/models/summary_field.py +256 -0
- smartsheet/models/template.py +171 -0
- smartsheet/models/title_rich_text_widget_content.py +68 -0
- smartsheet/models/token_paginated_result.py +79 -0
- smartsheet/models/update_request.py +110 -0
- smartsheet/models/user.py +58 -0
- smartsheet/models/user_model.py +280 -0
- smartsheet/models/user_plan.py +77 -0
- smartsheet/models/user_profile.py +89 -0
- smartsheet/models/version.py +57 -0
- smartsheet/models/web_content_widget_content.py +60 -0
- smartsheet/models/webhook.py +219 -0
- smartsheet/models/webhook_secret.py +58 -0
- smartsheet/models/webhook_stats.py +76 -0
- smartsheet/models/webhook_subscope.py +50 -0
- smartsheet/models/widget.py +211 -0
- smartsheet/models/widget_content.py +52 -0
- smartsheet/models/widget_hyperlink.py +74 -0
- smartsheet/models/workspace.py +185 -0
- smartsheet/object_value.py +72 -0
- smartsheet/passthrough.py +127 -0
- smartsheet/reports.py +382 -0
- smartsheet/search.py +100 -0
- smartsheet/server.py +48 -0
- smartsheet/session.py +70 -0
- smartsheet/sharing.py +163 -0
- smartsheet/sheets.py +2062 -0
- smartsheet/sights.py +370 -0
- smartsheet/smartsheet.py +684 -0
- smartsheet/templates.py +87 -0
- smartsheet/token.py +128 -0
- smartsheet/types.py +323 -0
- smartsheet/users.py +490 -0
- smartsheet/util.py +199 -0
- smartsheet/version.py +34 -0
- smartsheet/webhooks.py +161 -0
- smartsheet/workspaces.py +647 -0
- smartsheet_python_sdk-3.5.5.dist-info/METADATA +120 -0
- smartsheet_python_sdk-3.5.5.dist-info/RECORD +195 -0
- smartsheet_python_sdk-3.5.5.dist-info/WHEEL +5 -0
- smartsheet_python_sdk-3.5.5.dist-info/licenses/LICENSE.md +201 -0
- smartsheet_python_sdk-3.5.5.dist-info/licenses/NOTICE +10 -0
- smartsheet_python_sdk-3.5.5.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import (Boolean, EnumeratedValue, Number, String, TypedList,
|
|
21
|
+
TypedObject, json)
|
|
22
|
+
from ..util import deserialize, serialize
|
|
23
|
+
from .auto_number_format import AutoNumberFormat
|
|
24
|
+
from .contact import Contact
|
|
25
|
+
from .enums import ColumnType, Symbol, SystemColumnType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class Column:
|
|
29
|
+
|
|
30
|
+
"""Smartsheet Column data model."""
|
|
31
|
+
|
|
32
|
+
def __init__(self, props=None, base_obj=None):
|
|
33
|
+
"""Initialize the Column model."""
|
|
34
|
+
self._base = None
|
|
35
|
+
if base_obj is not None:
|
|
36
|
+
self._base = base_obj
|
|
37
|
+
|
|
38
|
+
self._auto_number_format = TypedObject(AutoNumberFormat)
|
|
39
|
+
self._contact_options = TypedList(Contact)
|
|
40
|
+
self._description = String()
|
|
41
|
+
self._format_ = String()
|
|
42
|
+
self._formula = String()
|
|
43
|
+
self._hidden = Boolean()
|
|
44
|
+
self._id_ = Number()
|
|
45
|
+
self._index = Number()
|
|
46
|
+
self._locked = Boolean()
|
|
47
|
+
self._locked_for_user = Boolean()
|
|
48
|
+
self._options = TypedList(str)
|
|
49
|
+
self._primary = Boolean()
|
|
50
|
+
self._symbol = EnumeratedValue(Symbol)
|
|
51
|
+
self._system_column_type = EnumeratedValue(SystemColumnType)
|
|
52
|
+
self._tags = TypedList(str)
|
|
53
|
+
self._title = String()
|
|
54
|
+
self._type_ = EnumeratedValue(ColumnType)
|
|
55
|
+
self._width = Number()
|
|
56
|
+
self._validation = Boolean()
|
|
57
|
+
self._version = Number()
|
|
58
|
+
|
|
59
|
+
if props:
|
|
60
|
+
deserialize(self, props)
|
|
61
|
+
|
|
62
|
+
# requests package Response object
|
|
63
|
+
self.request_response = None
|
|
64
|
+
self.__initialized = True
|
|
65
|
+
|
|
66
|
+
def __getattr__(self, key):
|
|
67
|
+
if key == "format":
|
|
68
|
+
return self.format_
|
|
69
|
+
elif key == "id":
|
|
70
|
+
return self.id_
|
|
71
|
+
elif key == "type":
|
|
72
|
+
return self.type_
|
|
73
|
+
else:
|
|
74
|
+
raise AttributeError(key)
|
|
75
|
+
|
|
76
|
+
def __setattr__(self, key, value):
|
|
77
|
+
if key == "format":
|
|
78
|
+
self.format_ = value
|
|
79
|
+
elif key == "id":
|
|
80
|
+
self.id_ = value
|
|
81
|
+
elif key == "type":
|
|
82
|
+
self.type_ = value
|
|
83
|
+
else:
|
|
84
|
+
super().__setattr__(key, value)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def auto_number_format(self):
|
|
88
|
+
return self._auto_number_format.value
|
|
89
|
+
|
|
90
|
+
@auto_number_format.setter
|
|
91
|
+
def auto_number_format(self, value):
|
|
92
|
+
self._auto_number_format.value = value
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def contact_options(self):
|
|
96
|
+
return self._contact_options
|
|
97
|
+
|
|
98
|
+
@contact_options.setter
|
|
99
|
+
def contact_options(self, value):
|
|
100
|
+
self._contact_options.load(value)
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def description(self):
|
|
104
|
+
return self._description.value
|
|
105
|
+
|
|
106
|
+
@description.setter
|
|
107
|
+
def description(self, value):
|
|
108
|
+
self._description.value = value
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def format_(self):
|
|
112
|
+
return self._format_.value
|
|
113
|
+
|
|
114
|
+
@format_.setter
|
|
115
|
+
def format_(self, value):
|
|
116
|
+
self._format_.value = value
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
def formula(self):
|
|
120
|
+
return self._formula.value
|
|
121
|
+
|
|
122
|
+
@formula.setter
|
|
123
|
+
def formula(self, value):
|
|
124
|
+
self._formula.value = value
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def hidden(self):
|
|
128
|
+
return self._hidden.value
|
|
129
|
+
|
|
130
|
+
@hidden.setter
|
|
131
|
+
def hidden(self, value):
|
|
132
|
+
self._hidden.value = value
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def id_(self):
|
|
136
|
+
return self._id_.value
|
|
137
|
+
|
|
138
|
+
@id_.setter
|
|
139
|
+
def id_(self, value):
|
|
140
|
+
self._id_.value = value
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
def index(self):
|
|
144
|
+
return self._index.value
|
|
145
|
+
|
|
146
|
+
@index.setter
|
|
147
|
+
def index(self, value):
|
|
148
|
+
self._index.value = value
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def locked(self):
|
|
152
|
+
return self._locked.value
|
|
153
|
+
|
|
154
|
+
@locked.setter
|
|
155
|
+
def locked(self, value):
|
|
156
|
+
self._locked.value = value
|
|
157
|
+
|
|
158
|
+
@property
|
|
159
|
+
def locked_for_user(self):
|
|
160
|
+
return self._locked_for_user.value
|
|
161
|
+
|
|
162
|
+
@locked_for_user.setter
|
|
163
|
+
def locked_for_user(self, value):
|
|
164
|
+
self._locked_for_user.value = value
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def options(self):
|
|
168
|
+
return self._options
|
|
169
|
+
|
|
170
|
+
@options.setter
|
|
171
|
+
def options(self, value):
|
|
172
|
+
self._options.load(value)
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def primary(self):
|
|
176
|
+
return self._primary.value
|
|
177
|
+
|
|
178
|
+
@primary.setter
|
|
179
|
+
def primary(self, value):
|
|
180
|
+
self._primary.value = value
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def symbol(self):
|
|
184
|
+
return self._symbol
|
|
185
|
+
|
|
186
|
+
@symbol.setter
|
|
187
|
+
def symbol(self, value):
|
|
188
|
+
self._symbol.set(value)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def system_column_type(self):
|
|
192
|
+
return self._system_column_type
|
|
193
|
+
|
|
194
|
+
@system_column_type.setter
|
|
195
|
+
def system_column_type(self, value):
|
|
196
|
+
self._system_column_type.set(value)
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def tags(self):
|
|
200
|
+
return self._tags
|
|
201
|
+
|
|
202
|
+
@tags.setter
|
|
203
|
+
def tags(self, value):
|
|
204
|
+
self._tags.load(value)
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def title(self):
|
|
208
|
+
return self._title.value
|
|
209
|
+
|
|
210
|
+
@title.setter
|
|
211
|
+
def title(self, value):
|
|
212
|
+
self._title.value = value
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
def type_(self):
|
|
216
|
+
return self._type_
|
|
217
|
+
|
|
218
|
+
@type_.setter
|
|
219
|
+
def type_(self, value):
|
|
220
|
+
self._type_.set(value)
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
def width(self):
|
|
224
|
+
return self._width.value
|
|
225
|
+
|
|
226
|
+
@width.setter
|
|
227
|
+
def width(self, value):
|
|
228
|
+
self._width.value = value
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def validation(self):
|
|
232
|
+
return self._validation.value
|
|
233
|
+
|
|
234
|
+
@validation.setter
|
|
235
|
+
def validation(self, value):
|
|
236
|
+
self._validation.value = value
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
def version(self):
|
|
240
|
+
return self._version.value
|
|
241
|
+
|
|
242
|
+
@version.setter
|
|
243
|
+
def version(self, value):
|
|
244
|
+
self._version.value = value
|
|
245
|
+
|
|
246
|
+
def to_dict(self):
|
|
247
|
+
return serialize(self)
|
|
248
|
+
|
|
249
|
+
def to_json(self):
|
|
250
|
+
return json.dumps(self.to_dict())
|
|
251
|
+
|
|
252
|
+
def __str__(self):
|
|
253
|
+
return self.to_json()
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import Number, String, Timestamp, TypedList, TypedObject, json
|
|
21
|
+
from ..util import deserialize, serialize
|
|
22
|
+
from .attachment import Attachment
|
|
23
|
+
from .user import User
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class Comment:
|
|
27
|
+
|
|
28
|
+
"""Smartsheet Comment data model."""
|
|
29
|
+
|
|
30
|
+
def __init__(self, props=None, base_obj=None):
|
|
31
|
+
"""Initialize the Comment model."""
|
|
32
|
+
self._base = None
|
|
33
|
+
if base_obj is not None:
|
|
34
|
+
self._base = base_obj
|
|
35
|
+
|
|
36
|
+
self._attachments = TypedList(Attachment)
|
|
37
|
+
self._created_at = Timestamp()
|
|
38
|
+
self._created_by = TypedObject(User)
|
|
39
|
+
self._discussion_id = Number()
|
|
40
|
+
self._id_ = Number()
|
|
41
|
+
self._modified_at = Timestamp()
|
|
42
|
+
self._text = String()
|
|
43
|
+
|
|
44
|
+
if props:
|
|
45
|
+
deserialize(self, props)
|
|
46
|
+
|
|
47
|
+
# requests package Response object
|
|
48
|
+
self.request_response = None
|
|
49
|
+
self.__initialized = True
|
|
50
|
+
|
|
51
|
+
def __getattr__(self, key):
|
|
52
|
+
if key == "id":
|
|
53
|
+
return self.id_
|
|
54
|
+
else:
|
|
55
|
+
raise AttributeError(key)
|
|
56
|
+
|
|
57
|
+
def __setattr__(self, key, value):
|
|
58
|
+
if key == "id":
|
|
59
|
+
self.id_ = value
|
|
60
|
+
else:
|
|
61
|
+
super().__setattr__(key, value)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def attachments(self):
|
|
65
|
+
return self._attachments
|
|
66
|
+
|
|
67
|
+
@attachments.setter
|
|
68
|
+
def attachments(self, value):
|
|
69
|
+
self._attachments.load(value)
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def created_at(self):
|
|
73
|
+
return self._created_at.value
|
|
74
|
+
|
|
75
|
+
@created_at.setter
|
|
76
|
+
def created_at(self, value):
|
|
77
|
+
self._created_at.value = value
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def created_by(self):
|
|
81
|
+
return self._created_by.value
|
|
82
|
+
|
|
83
|
+
@created_by.setter
|
|
84
|
+
def created_by(self, value):
|
|
85
|
+
self._created_by.value = value
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def discussion_id(self):
|
|
89
|
+
return self._discussion_id.value
|
|
90
|
+
|
|
91
|
+
@discussion_id.setter
|
|
92
|
+
def discussion_id(self, value):
|
|
93
|
+
self._discussion_id.value = value
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def id_(self):
|
|
97
|
+
return self._id_.value
|
|
98
|
+
|
|
99
|
+
@id_.setter
|
|
100
|
+
def id_(self, value):
|
|
101
|
+
self._id_.value = value
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def modified_at(self):
|
|
105
|
+
return self._modified_at.value
|
|
106
|
+
|
|
107
|
+
@modified_at.setter
|
|
108
|
+
def modified_at(self, value):
|
|
109
|
+
self._modified_at.value = value
|
|
110
|
+
|
|
111
|
+
@property
|
|
112
|
+
def text(self):
|
|
113
|
+
return self._text.value
|
|
114
|
+
|
|
115
|
+
@text.setter
|
|
116
|
+
def text(self, value):
|
|
117
|
+
self._text.value = value
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
return serialize(self)
|
|
121
|
+
|
|
122
|
+
def to_json(self):
|
|
123
|
+
return json.dumps(self.to_dict())
|
|
124
|
+
|
|
125
|
+
def __str__(self):
|
|
126
|
+
return self.to_json()
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import String, json
|
|
21
|
+
from ..util import deserialize, serialize
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Contact:
|
|
25
|
+
|
|
26
|
+
"""Smartsheet Contact data model."""
|
|
27
|
+
|
|
28
|
+
def __init__(self, props=None, base_obj=None):
|
|
29
|
+
"""Initialize the Contact model."""
|
|
30
|
+
self._base = None
|
|
31
|
+
if base_obj is not None:
|
|
32
|
+
self._base = base_obj
|
|
33
|
+
|
|
34
|
+
self._email = String()
|
|
35
|
+
self._id_ = String()
|
|
36
|
+
self._name = String()
|
|
37
|
+
|
|
38
|
+
if props:
|
|
39
|
+
deserialize(self, props)
|
|
40
|
+
|
|
41
|
+
# requests package Response object
|
|
42
|
+
self.request_response = None
|
|
43
|
+
self.__initialized = True
|
|
44
|
+
|
|
45
|
+
def __getattr__(self, key):
|
|
46
|
+
if key == "id":
|
|
47
|
+
return self.id_
|
|
48
|
+
else:
|
|
49
|
+
raise AttributeError(key)
|
|
50
|
+
|
|
51
|
+
def __setattr__(self, key, value):
|
|
52
|
+
if key == "id":
|
|
53
|
+
self.id_ = value
|
|
54
|
+
else:
|
|
55
|
+
super().__setattr__(key, value)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def email(self):
|
|
59
|
+
return self._email.value
|
|
60
|
+
|
|
61
|
+
@email.setter
|
|
62
|
+
def email(self, value):
|
|
63
|
+
self._email.value = value
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def id_(self):
|
|
67
|
+
return self._id_.value
|
|
68
|
+
|
|
69
|
+
@id_.setter
|
|
70
|
+
def id_(self, value):
|
|
71
|
+
self._id_.value = value
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def name(self):
|
|
75
|
+
return self._name.value
|
|
76
|
+
|
|
77
|
+
@name.setter
|
|
78
|
+
def name(self, value):
|
|
79
|
+
self._name.value = value
|
|
80
|
+
|
|
81
|
+
def to_dict(self):
|
|
82
|
+
return serialize(self)
|
|
83
|
+
|
|
84
|
+
def to_json(self):
|
|
85
|
+
return json.dumps(self.to_dict())
|
|
86
|
+
|
|
87
|
+
def __str__(self):
|
|
88
|
+
return self.to_json()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import Number, String
|
|
21
|
+
from ..util import deserialize
|
|
22
|
+
from .contact import Contact
|
|
23
|
+
from .object_value import CONTACT, ObjectValue
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class ContactObjectValue(ObjectValue, Contact):
|
|
27
|
+
"""Smartsheet ContactObjectValue data model."""
|
|
28
|
+
|
|
29
|
+
def __init__(self, props=None, base_obj=None):
|
|
30
|
+
"""Initialize the ContactObjectValue model."""
|
|
31
|
+
ObjectValue.__init__(self, CONTACT, base_obj)
|
|
32
|
+
Contact.__init__(self, None, base_obj)
|
|
33
|
+
self._base = None
|
|
34
|
+
if base_obj is not None:
|
|
35
|
+
self._base = base_obj
|
|
36
|
+
|
|
37
|
+
self._image_id = String()
|
|
38
|
+
self._ref_index = Number()
|
|
39
|
+
|
|
40
|
+
if props:
|
|
41
|
+
deserialize(self, props)
|
|
42
|
+
|
|
43
|
+
self.__initialized = True
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def image_id(self):
|
|
47
|
+
return self._image_id.value
|
|
48
|
+
|
|
49
|
+
@image_id.setter
|
|
50
|
+
def image_id(self, value):
|
|
51
|
+
self._image_id.value = value
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def ref_index(self):
|
|
55
|
+
return self._ref_index.value
|
|
56
|
+
|
|
57
|
+
@ref_index.setter
|
|
58
|
+
def ref_index(self, value):
|
|
59
|
+
self._ref_index.value = value
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import Number, String, json
|
|
21
|
+
from ..util import deserialize, serialize
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ContainerDestination:
|
|
25
|
+
|
|
26
|
+
"""Smartsheet ContainerDestination data model."""
|
|
27
|
+
|
|
28
|
+
def __init__(self, props=None, base_obj=None):
|
|
29
|
+
"""Initialize the ContainerDestination model."""
|
|
30
|
+
self._base = None
|
|
31
|
+
if base_obj is not None:
|
|
32
|
+
self._base = base_obj
|
|
33
|
+
|
|
34
|
+
self.allowed_values = {"destination_type": ["home", "workspace", "folder"]}
|
|
35
|
+
|
|
36
|
+
self._destination_id = Number()
|
|
37
|
+
self._destination_type = String(accept=self.allowed_values["destination_type"])
|
|
38
|
+
self._new_name = String()
|
|
39
|
+
|
|
40
|
+
if props:
|
|
41
|
+
deserialize(self, props)
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def destination_id(self):
|
|
45
|
+
return self._destination_id.value
|
|
46
|
+
|
|
47
|
+
@destination_id.setter
|
|
48
|
+
def destination_id(self, value):
|
|
49
|
+
self._destination_id.value = value
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def destination_type(self):
|
|
53
|
+
return self._destination_type.value
|
|
54
|
+
|
|
55
|
+
@destination_type.setter
|
|
56
|
+
def destination_type(self, value):
|
|
57
|
+
self._destination_type.value = value
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def new_name(self):
|
|
61
|
+
return self._new_name.value
|
|
62
|
+
|
|
63
|
+
@new_name.setter
|
|
64
|
+
def new_name(self, value):
|
|
65
|
+
self._new_name.value = value
|
|
66
|
+
|
|
67
|
+
def to_dict(self):
|
|
68
|
+
return serialize(self)
|
|
69
|
+
|
|
70
|
+
def to_json(self):
|
|
71
|
+
return json.dumps(self.to_dict())
|
|
72
|
+
|
|
73
|
+
def __str__(self):
|
|
74
|
+
return self.to_json()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import Number, json
|
|
21
|
+
from ..util import deserialize, serialize
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class CopyOrMoveRowDestination:
|
|
25
|
+
|
|
26
|
+
"""Smartsheet CopyOrMoveRowDestination data model."""
|
|
27
|
+
|
|
28
|
+
def __init__(self, props=None, base_obj=None):
|
|
29
|
+
"""Initialize the CopyOrMoveRowDestination model."""
|
|
30
|
+
self._base = None
|
|
31
|
+
if base_obj is not None:
|
|
32
|
+
self._base = base_obj
|
|
33
|
+
|
|
34
|
+
self._sheet_id = Number()
|
|
35
|
+
|
|
36
|
+
if props:
|
|
37
|
+
deserialize(self, props)
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def sheet_id(self):
|
|
41
|
+
return self._sheet_id.value
|
|
42
|
+
|
|
43
|
+
@sheet_id.setter
|
|
44
|
+
def sheet_id(self, value):
|
|
45
|
+
self._sheet_id.value = value
|
|
46
|
+
|
|
47
|
+
def to_dict(self):
|
|
48
|
+
return serialize(self)
|
|
49
|
+
|
|
50
|
+
def to_json(self):
|
|
51
|
+
return json.dumps(self.to_dict())
|
|
52
|
+
|
|
53
|
+
def __str__(self):
|
|
54
|
+
return self.to_json()
|