smartsheet-python-sdk 3.6.0__tar.gz → 3.7.1__tar.gz

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.
Files changed (245) hide show
  1. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/CHANGELOG.md +12 -0
  2. {smartsheet_python_sdk-3.6.0/smartsheet_python_sdk.egg-info → smartsheet_python_sdk-3.7.1}/PKG-INFO +1 -1
  3. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/attachments.py +30 -29
  4. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/cells.py +8 -5
  5. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/contacts.py +7 -4
  6. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/discussions.py +29 -26
  7. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/events.py +5 -2
  8. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/favorites.py +10 -6
  9. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/folders.py +37 -28
  10. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/groups.py +18 -14
  11. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/home.py +12 -11
  12. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/images.py +5 -3
  13. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/asset_shares_paginated_result.py +4 -5
  14. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/bulk_item_result.py +8 -4
  15. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/event_result.py +6 -3
  16. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/index_result.py +6 -3
  17. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/result.py +6 -3
  18. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/token_paginated_result.py +2 -2
  19. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/passthrough.py +10 -9
  20. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/reports.py +27 -24
  21. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/search.py +7 -4
  22. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/server.py +5 -2
  23. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/sharing.py +13 -10
  24. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/sheets.py +135 -134
  25. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/sights.py +28 -26
  26. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/templates.py +7 -4
  27. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/token.py +8 -6
  28. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/users.py +42 -39
  29. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/version.py +3 -3
  30. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/webhooks.py +14 -12
  31. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/workspaces.py +49 -42
  32. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1/smartsheet_python_sdk.egg-info}/PKG-INFO +1 -1
  33. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.gitchangelog.rc +0 -0
  34. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.gitchangelog.tpl +0 -0
  35. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  36. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  37. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/pull_request_template.md +0 -0
  38. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/workflows/publish-distribution.yaml +0 -0
  39. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/workflows/publish-documentation.yaml +0 -0
  40. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.github/workflows/test-build.yaml +0 -0
  41. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.gitignore +0 -0
  42. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.markdownlint.json +0 -0
  43. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/.roo/roomotes.yml +0 -0
  44. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/ADVANCED.md +0 -0
  45. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/CONTRIBUTING.md +0 -0
  46. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/ISSUE-FIRST.md +0 -0
  47. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/LICENSE.md +0 -0
  48. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/Makefile +0 -0
  49. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/NOTICE +0 -0
  50. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/README.md +0 -0
  51. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/Makefile +0 -0
  52. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/conf.py +0 -0
  53. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/index.rst +0 -0
  54. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/smartsheet_api.rst +0 -0
  55. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/smartsheet_enums.rst +0 -0
  56. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/smartsheet_exceptions.rst +0 -0
  57. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/smartsheet_models.rst +0 -0
  58. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/docs-source/smartsheet_types.rst +0 -0
  59. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/pyproject.toml +0 -0
  60. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/setup.cfg +0 -0
  61. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/__init__.py +0 -0
  62. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/exceptions.py +0 -0
  63. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/__init__.py +0 -0
  64. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/access_token.py +0 -0
  65. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/account.py +0 -0
  66. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/alternate_email.py +0 -0
  67. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/asset_share.py +0 -0
  68. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/attachment.py +0 -0
  69. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/auto_number_format.py +0 -0
  70. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/automation_action.py +0 -0
  71. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/automation_rule.py +0 -0
  72. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/boolean_object_value.py +0 -0
  73. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/bulk_item_failure.py +0 -0
  74. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cell.py +0 -0
  75. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cell_data_item.py +0 -0
  76. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cell_history.py +0 -0
  77. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cell_link.py +0 -0
  78. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cell_link_widget_content.py +0 -0
  79. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/chart_widget_content.py +0 -0
  80. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/column.py +0 -0
  81. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/comment.py +0 -0
  82. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/contact.py +0 -0
  83. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/contact_object_value.py +0 -0
  84. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/container_destination.py +0 -0
  85. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/copy_or_move_row_destination.py +0 -0
  86. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/copy_or_move_row_directive.py +0 -0
  87. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/copy_or_move_row_result.py +0 -0
  88. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/criteria.py +0 -0
  89. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/cross_sheet_reference.py +0 -0
  90. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/currency.py +0 -0
  91. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/date_object_value.py +0 -0
  92. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/datetime_object_value.py +0 -0
  93. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/discussion.py +0 -0
  94. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/downloaded_file.py +0 -0
  95. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/duration.py +0 -0
  96. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/email.py +0 -0
  97. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/__init__.py +0 -0
  98. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/access_level.py +0 -0
  99. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/asset_type.py +0 -0
  100. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/attachment_parent_type.py +0 -0
  101. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/attachment_sub_type.py +0 -0
  102. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/attachment_type.py +0 -0
  103. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/automation_action_frequency.py +0 -0
  104. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/automation_action_type.py +0 -0
  105. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/automation_rule_disabled_reason.py +0 -0
  106. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/cell_link_status.py +0 -0
  107. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/column_type.py +0 -0
  108. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/criteria_target.py +0 -0
  109. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/cross_sheet_reference_status.py +0 -0
  110. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/currency_code.py +0 -0
  111. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/day_descriptors.py +0 -0
  112. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/day_ordinal.py +0 -0
  113. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/event_action.py +0 -0
  114. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/event_object_type.py +0 -0
  115. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/event_source.py +0 -0
  116. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/global_template.py +0 -0
  117. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/operator.py +0 -0
  118. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/paper_type.py +0 -0
  119. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/predecessor_type.py +0 -0
  120. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/publish_accessible_by.py +0 -0
  121. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/schedule_type.py +0 -0
  122. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/seat_type.py +0 -0
  123. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/share_scope.py +0 -0
  124. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/share_type.py +0 -0
  125. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/sheet_email_format.py +0 -0
  126. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/sheet_filter_operator.py +0 -0
  127. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/sheet_filter_type.py +0 -0
  128. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/sort_direction.py +0 -0
  129. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/symbol.py +0 -0
  130. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/system_column_type.py +0 -0
  131. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/update_request_status.py +0 -0
  132. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/user_status.py +0 -0
  133. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/enums/widget_type.py +0 -0
  134. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/error.py +0 -0
  135. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/error_result.py +0 -0
  136. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/event.py +0 -0
  137. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/explicit_null.py +0 -0
  138. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/favorite.py +0 -0
  139. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/folder.py +0 -0
  140. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/font_family.py +0 -0
  141. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/format_details.py +0 -0
  142. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/format_tables.py +0 -0
  143. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/group.py +0 -0
  144. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/group_member.py +0 -0
  145. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/home.py +0 -0
  146. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/hyperlink.py +0 -0
  147. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/image.py +0 -0
  148. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/image_url.py +0 -0
  149. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/image_url_map.py +0 -0
  150. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/image_widget_content.py +0 -0
  151. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/json_object.py +0 -0
  152. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/multi_contact_object_value.py +0 -0
  153. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/multi_picklist_object_value.py +0 -0
  154. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/multi_row_email.py +0 -0
  155. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/number_object_value.py +0 -0
  156. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/o_auth_error.py +0 -0
  157. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/object_value.py +0 -0
  158. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/paginated_children_result.py +0 -0
  159. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/predecessor.py +0 -0
  160. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/predecessor_list.py +0 -0
  161. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/primitive_object_value.py +0 -0
  162. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/profile_image.py +0 -0
  163. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/project_settings.py +0 -0
  164. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/recipient.py +0 -0
  165. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report.py +0 -0
  166. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report_cell.py +0 -0
  167. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report_column.py +0 -0
  168. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report_publish.py +0 -0
  169. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report_row.py +0 -0
  170. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/report_widget_content.py +0 -0
  171. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/row.py +0 -0
  172. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/row_email.py +0 -0
  173. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/row_mapping.py +0 -0
  174. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/schedule.py +0 -0
  175. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/scope.py +0 -0
  176. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/search_result.py +0 -0
  177. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/search_result_item.py +0 -0
  178. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/selection_range.py +0 -0
  179. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sent_update_request.py +0 -0
  180. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/server_info.py +0 -0
  181. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/share.py +0 -0
  182. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet.py +0 -0
  183. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_email.py +0 -0
  184. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_filter.py +0 -0
  185. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_filter_details.py +0 -0
  186. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_publish.py +0 -0
  187. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_summary.py +0 -0
  188. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_user_permissions.py +0 -0
  189. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sheet_user_settings.py +0 -0
  190. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/shortcut_data_item.py +0 -0
  191. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/shortcut_widget_content.py +0 -0
  192. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sight.py +0 -0
  193. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sight_publish.py +0 -0
  194. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sort_criterion.py +0 -0
  195. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/sort_specifier.py +0 -0
  196. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/source.py +0 -0
  197. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/string_object_value.py +0 -0
  198. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/summary_field.py +0 -0
  199. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/template.py +0 -0
  200. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/title_rich_text_widget_content.py +0 -0
  201. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/update_request.py +0 -0
  202. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/user.py +0 -0
  203. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/user_model.py +0 -0
  204. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/user_plan.py +0 -0
  205. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/user_profile.py +0 -0
  206. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/version.py +0 -0
  207. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/web_content_widget_content.py +0 -0
  208. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/webhook.py +0 -0
  209. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/webhook_secret.py +0 -0
  210. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/webhook_stats.py +0 -0
  211. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/webhook_subscope.py +0 -0
  212. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/widget.py +0 -0
  213. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/widget_content.py +0 -0
  214. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/widget_hyperlink.py +0 -0
  215. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/models/workspace.py +0 -0
  216. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/object_value.py +0 -0
  217. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/session.py +0 -0
  218. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/smartsheet.py +0 -0
  219. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/types.py +0 -0
  220. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet/util.py +0 -0
  221. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet_python_sdk.egg-info/SOURCES.txt +0 -0
  222. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet_python_sdk.egg-info/dependency_links.txt +0 -0
  223. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet_python_sdk.egg-info/requires.txt +0 -0
  224. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/smartsheet_python_sdk.egg-info/top_level.txt +0 -0
  225. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/__init__.py +0 -0
  226. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/__init__.py +0 -0
  227. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/mock_api_test_helper.py +0 -0
  228. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_automation_rules.py +0 -0
  229. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_columns.py +0 -0
  230. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_folders.py +0 -0
  231. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_rows.py +0 -0
  232. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_sharing.py +0 -0
  233. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_sheets.py +0 -0
  234. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_sights.py +0 -0
  235. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_api_workspaces.py +0 -0
  236. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_change_agent.py +0 -0
  237. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/test_mock_serialization.py +0 -0
  238. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/common_test_constants.py +0 -0
  239. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_deactivate_user.py +0 -0
  240. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_list_user_plans.py +0 -0
  241. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_list_users.py +0 -0
  242. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_reactivate_user.py +0 -0
  243. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_remove_user_from_plan.py +0 -0
  244. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/mock_api/users/test_user_upgrade_downgrade.py +0 -0
  245. {smartsheet_python_sdk-3.6.0 → smartsheet_python_sdk-3.7.1}/tests/test_util_serialize_dict.py +0 -0
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [x.x.x] - Unreleased
9
9
 
10
+ ## [3.7.1] - 2025-12-12
11
+
12
+ ### Fixed
13
+
14
+ - Update correct method types, which may return either list or a singleton object
15
+
16
+ ## [3.7.0] - 2025-12-11
17
+
18
+ ### Added
19
+
20
+ - Typing to all SDK service methods
21
+
10
22
  ## [3.6.0] - 2025-12-04
11
23
 
12
24
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: smartsheet-python-sdk
3
- Version: 3.6.0
3
+ Version: 3.7.1
4
4
  Summary: Library that uses Python to connect to Smartsheet services (using API 2.0).
5
5
  License-Expression: Apache-2.0
6
6
  Classifier: Development Status :: 5 - Production/Stable
@@ -19,11 +19,12 @@ from __future__ import absolute_import
19
19
 
20
20
  import logging
21
21
  import os.path
22
+ from typing import Union
22
23
 
23
24
  import requests
24
25
 
25
26
  from .util import fresh_operation
26
- from .models import DownloadedFile, Error, ErrorResult
27
+ from .models import Attachment, DownloadedFile, Error, ErrorResult, IndexResult, Result
27
28
 
28
29
 
29
30
  class Attachments:
@@ -35,7 +36,7 @@ class Attachments:
35
36
  self._base = smartsheet_obj
36
37
  self._log = logging.getLogger(__name__)
37
38
 
38
- def attach_file_to_comment(self, sheet_id, comment_id, _file):
39
+ def attach_file_to_comment(self, sheet_id, comment_id, _file) -> Union[Result[Attachment], Error]:
39
40
  """Add a file to a Comment.
40
41
 
41
42
  Args:
@@ -44,7 +45,7 @@ class Attachments:
44
45
  _file (file): String or file stream object.
45
46
 
46
47
  Returns:
47
- Result
48
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
48
49
  """
49
50
  if not all(val is not None for val in ["sheet_id", "comment_id", "_file"]):
50
51
  raise ValueError(
@@ -66,7 +67,7 @@ class Attachments:
66
67
 
67
68
  return response
68
69
 
69
- def attach_file_to_row(self, sheet_id, row_id, _file):
70
+ def attach_file_to_row(self, sheet_id, row_id, _file) -> Union[Result[Attachment], Error]:
70
71
  """Add a file to the row.
71
72
 
72
73
  Args:
@@ -75,7 +76,7 @@ class Attachments:
75
76
  _file (file): String or file stream object.
76
77
 
77
78
  Returns:
78
- Result
79
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
79
80
  """
80
81
  if not all(val is not None for val in ["sheet_id", "row_id", "_file"]):
81
82
  raise ValueError(
@@ -97,7 +98,7 @@ class Attachments:
97
98
 
98
99
  return response
99
100
 
100
- def attach_file_to_sheet(self, sheet_id, _file):
101
+ def attach_file_to_sheet(self, sheet_id, _file) -> Union[Result[Attachment], Error]:
101
102
  """Attach a file to the specified Sheet.
102
103
 
103
104
  Args:
@@ -105,7 +106,7 @@ class Attachments:
105
106
  _file (file): String or file stream object.
106
107
 
107
108
  Returns:
108
- Result
109
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
109
110
  """
110
111
  _op = fresh_operation("attach_file_to_sheet")
111
112
  _op["method"] = "POST"
@@ -120,7 +121,7 @@ class Attachments:
120
121
 
121
122
  return response
122
123
 
123
- def attach_new_version(self, sheet_id, attachment_id, _file):
124
+ def attach_new_version(self, sheet_id, attachment_id, _file) -> Union[Result[Attachment], Error]:
124
125
  """Upload a new version of a file to a Sheet or Row.
125
126
 
126
127
  Args:
@@ -129,7 +130,7 @@ class Attachments:
129
130
  _file (file): String or file stream object.
130
131
 
131
132
  Returns:
132
- Result
133
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
133
134
  """
134
135
  if not all(val is not None for val in ["sheet_id", "attachment_id", "_file"]):
135
136
  raise ValueError(
@@ -155,7 +156,7 @@ class Attachments:
155
156
 
156
157
  return response
157
158
 
158
- def attach_url_to_comment(self, sheet_id, comment_id, attachment_obj):
159
+ def attach_url_to_comment(self, sheet_id, comment_id, attachment_obj) -> Union[Result[Attachment], Error]:
159
160
  """Add a URL to a Comment.
160
161
 
161
162
  Attachment object for this request should be limited to the
@@ -185,7 +186,7 @@ class Attachments:
185
186
  attachment_obj (Attachment): Attachment object.
186
187
 
187
188
  Returns:
188
- Result
189
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
189
190
  """
190
191
  if not all(
191
192
  val is not None for val in ["sheet_id", "comment_id", "attachment_obj"]
@@ -208,7 +209,7 @@ class Attachments:
208
209
 
209
210
  return response
210
211
 
211
- def attach_url_to_row(self, sheet_id, row_id, attachment_obj):
212
+ def attach_url_to_row(self, sheet_id, row_id, attachment_obj) -> Union[Result[Attachment], Error]:
212
213
  """Add a URL to a Row.
213
214
 
214
215
  Attachment object for this request should be limited to the
@@ -238,7 +239,7 @@ class Attachments:
238
239
  attachment_obj (Attachment): Attachment object.
239
240
 
240
241
  Returns:
241
- Result
242
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
242
243
  """
243
244
  if not all(val is not None for val in ["sheet_id", "row_id", "attachment_obj"]):
244
245
  raise ValueError(
@@ -259,7 +260,7 @@ class Attachments:
259
260
 
260
261
  return response
261
262
 
262
- def attach_url_to_sheet(self, sheet_id, attachment_obj):
263
+ def attach_url_to_sheet(self, sheet_id, attachment_obj) -> Union[Result[Attachment], Error]:
263
264
  """Add a URL to a Sheet.
264
265
 
265
266
  Attachment object for this request should be limited to the
@@ -288,7 +289,7 @@ class Attachments:
288
289
  attachment_obj (Attachment): Attachment object.
289
290
 
290
291
  Returns:
291
- Result
292
+ Union[Result[Attachment], Error]: The result of the operation, or an Error object if the request fails.
292
293
  """
293
294
  _op = fresh_operation("attach_url_to_sheet")
294
295
  _op["method"] = "POST"
@@ -302,7 +303,7 @@ class Attachments:
302
303
 
303
304
  return response
304
305
 
305
- def delete_attachment(self, sheet_id, attachment_id):
306
+ def delete_attachment(self, sheet_id, attachment_id) -> Union[Result[None], Error]:
306
307
  """Delete the specified Attachment.
307
308
 
308
309
  Args:
@@ -310,7 +311,7 @@ class Attachments:
310
311
  attachment_id (int): Attachment ID
311
312
 
312
313
  Returns:
313
- Result
314
+ Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
314
315
  """
315
316
  _op = fresh_operation("delete_attachment")
316
317
  _op["method"] = "DELETE"
@@ -322,7 +323,7 @@ class Attachments:
322
323
 
323
324
  return response
324
325
 
325
- def delete_attachment_versions(self, sheet_id, attachment_id):
326
+ def delete_attachment_versions(self, sheet_id, attachment_id) -> Union[Result[None], Error]:
326
327
  """Delete all versions of the specified Attachment.
327
328
 
328
329
  Delete all versions of the attachment corresponding to the
@@ -333,7 +334,7 @@ class Attachments:
333
334
  attachment_id (int): Attachment ID
334
335
 
335
336
  Returns:
336
- Result
337
+ Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
337
338
  """
338
339
  _op = fresh_operation("delete_attachment_versions")
339
340
  _op["method"] = "DELETE"
@@ -351,7 +352,7 @@ class Attachments:
351
352
 
352
353
  return response
353
354
 
354
- def get_attachment(self, sheet_id, attachment_id):
355
+ def get_attachment(self, sheet_id, attachment_id) -> Union[Attachment, Error]:
355
356
  """Fetch the specified Attachment.
356
357
 
357
358
  Args:
@@ -359,7 +360,7 @@ class Attachments:
359
360
  attachment_id (int): Attachment ID
360
361
 
361
362
  Returns:
362
- Attachment
363
+ Union[Attachment, Error]: The result of the operation, or an Error object if the request fails.
363
364
  """
364
365
  _op = fresh_operation("get_attachment")
365
366
  _op["method"] = "GET"
@@ -373,7 +374,7 @@ class Attachments:
373
374
 
374
375
  def list_all_attachments(
375
376
  self, sheet_id, page_size=None, page=None, include_all=None
376
- ):
377
+ ) -> Union[IndexResult[Attachment], Error]:
377
378
  """Get a list of Attachments for a Sheet.
378
379
 
379
380
  Get a list of all Attachments for the specified Sheet,
@@ -388,7 +389,7 @@ class Attachments:
388
389
  (i.e. do not paginate).
389
390
 
390
391
  Returns:
391
- IndexResult
392
+ Union[IndexResult[Attachment], Error]: The result of the operation, or an Error object if the request fails.
392
393
  """
393
394
  _op = fresh_operation("list_all_attachments")
394
395
  _op["method"] = "GET"
@@ -406,7 +407,7 @@ class Attachments:
406
407
 
407
408
  def list_attachment_versions(
408
409
  self, sheet_id, attachment_id, page_size=None, page=None, include_all=None
409
- ):
410
+ ) -> Union[IndexResult[Attachment], Error]:
410
411
  """Get a list of versions for an Attachment.
411
412
 
412
413
  Get a list of all versions of the given Attachment ID, in
@@ -422,7 +423,7 @@ class Attachments:
422
423
  (i.e. do not paginate).
423
424
 
424
425
  Returns:
425
- IndexResult
426
+ Union[IndexResult[Attachment], Error]: The result of the operation, or an Error object if the request fails.
426
427
  """
427
428
  _op = fresh_operation("list_attachment_versions")
428
429
  _op["method"] = "GET"
@@ -446,7 +447,7 @@ class Attachments:
446
447
 
447
448
  def list_discussion_attachments(
448
449
  self, sheet_id, discussion_id, page_size=None, page=None, include_all=None
449
- ):
450
+ ) -> Union[IndexResult[Attachment], Error]:
450
451
  """Get a list of Attachments for the Sheet Discussion.
451
452
 
452
453
  Get a list of all Attachments for the specified Sheet
@@ -462,7 +463,7 @@ class Attachments:
462
463
  (i.e. do not paginate).
463
464
 
464
465
  Returns:
465
- IndexResult
466
+ Union[IndexResult[Attachment], Error]: The result of the operation, or an Error object if the request fails.
466
467
  """
467
468
  _op = fresh_operation("list_discussion_attachments")
468
469
  _op["method"] = "GET"
@@ -486,7 +487,7 @@ class Attachments:
486
487
 
487
488
  def list_row_attachments(
488
489
  self, sheet_id, row_id, page_size=None, page=None, include_all=None
489
- ):
490
+ ) -> Union[IndexResult[Attachment], Error]:
490
491
  """Get a list of all Attachments for the specified Sheet Row.
491
492
 
492
493
  Args:
@@ -499,7 +500,7 @@ class Attachments:
499
500
  (i.e. do not paginate).
500
501
 
501
502
  Returns:
502
- IndexResult
503
+ Union[IndexResult[Attachment], Error]: The result of the operation, or an Error object if the request fails.
503
504
  """
504
505
  _op = fresh_operation("list_row_attachments")
505
506
  _op["method"] = "GET"
@@ -17,9 +17,12 @@
17
17
 
18
18
  from __future__ import absolute_import
19
19
 
20
+ from typing import Union
21
+
20
22
  import logging
21
23
 
22
24
  from .util import fresh_operation
25
+ from .models import CellHistory, IndexResult, Result, Row, Error
23
26
 
24
27
 
25
28
  class Cells:
@@ -41,7 +44,7 @@ class Cells:
41
44
  page=None,
42
45
  include_all=None,
43
46
  level=None,
44
- ):
47
+ ) -> Union[IndexResult[CellHistory], Error]:
45
48
  """Get the Cell modification history.
46
49
 
47
50
  Args:
@@ -58,7 +61,7 @@ class Cells:
58
61
  level (int): compatibility level
59
62
 
60
63
  Returns:
61
- IndexResult
64
+ Union[IndexResult[CellHistory], Error]: The result of the operation, or an Error object if the request fails.
62
65
  """
63
66
  if not all(val is not None for val in ["sheet_id", "row_id", "column_id"]):
64
67
  raise ValueError(
@@ -98,7 +101,7 @@ class Cells:
98
101
  file_type,
99
102
  override_validation=False,
100
103
  alt_text=None,
101
- ):
104
+ ) -> Union[Result[Row], Error]:
102
105
  """Uploads an image to the specified cell.
103
106
 
104
107
  Args:
@@ -111,7 +114,7 @@ class Cells:
111
114
  alt_text: alternate text for the image
112
115
 
113
116
  Returns:
114
- Result
117
+ Union[Result[Row], Error]: The result of the operation, or an Error object if the request fails.
115
118
  """
116
119
  if not all(
117
120
  val is not None
@@ -134,7 +137,7 @@ class Cells:
134
137
  file_type,
135
138
  override_validation,
136
139
  alt_text,
137
- ):
140
+ ) -> Union[Result[Row], Error]:
138
141
 
139
142
  _data = open(file, "rb").read()
140
143
  _op = fresh_operation("attach_file_to_cell")
@@ -17,9 +17,12 @@
17
17
 
18
18
  from __future__ import absolute_import
19
19
 
20
+ from typing import Union
21
+
20
22
  import logging
21
23
 
22
24
  from .util import fresh_operation
25
+ from .models import Error, Contact, IndexResult
23
26
 
24
27
 
25
28
  class Contacts:
@@ -31,14 +34,14 @@ class Contacts:
31
34
  self._base = smartsheet_obj
32
35
  self._log = logging.getLogger(__name__)
33
36
 
34
- def get_contact(self, contact_id):
37
+ def get_contact(self, contact_id) -> Union[Contact, Error]:
35
38
  """Get the specified Contact.
36
39
 
37
40
  Args:
38
41
  contact_id (str): Contact ID
39
42
 
40
43
  Returns:
41
- Contact
44
+ Union[Contact, Error]: The result of the operation, or an Error object if the request fails.
42
45
  """
43
46
  _op = fresh_operation("get_contact")
44
47
  _op["method"] = "GET"
@@ -50,7 +53,7 @@ class Contacts:
50
53
 
51
54
  return response
52
55
 
53
- def list_contacts(self, page_size=None, page=None, include_all=None):
56
+ def list_contacts(self, page_size=None, page=None, include_all=None) -> Union[IndexResult[Contact], Error]:
54
57
  """Get a list of the user's Smartsheet Contacts.
55
58
 
56
59
  Args:
@@ -61,7 +64,7 @@ class Contacts:
61
64
  (i.e. do not paginate).
62
65
 
63
66
  Returns:
64
- IndexResult
67
+ Union[IndexResult[Contact], Error]: The result of the operation, or an Error object if the request fails.
65
68
  """
66
69
  _op = fresh_operation("list_contacts")
67
70
  _op["method"] = "GET"
@@ -17,11 +17,14 @@
17
17
 
18
18
  from __future__ import absolute_import
19
19
 
20
+ from typing import Union
21
+
20
22
  import logging
21
23
 
22
24
  import six
23
25
 
24
26
  from .util import fresh_operation
27
+ from .models import Error, Comment, Discussion, IndexResult, Result
25
28
 
26
29
 
27
30
  class Discussions:
@@ -33,7 +36,7 @@ class Discussions:
33
36
  self._base = smartsheet_obj
34
37
  self._log = logging.getLogger(__name__)
35
38
 
36
- def add_comment_to_discussion(self, sheet_id, discussion_id, comment_obj=None):
39
+ def add_comment_to_discussion(self, sheet_id, discussion_id, comment_obj=None) -> Union[Result[Comment], Error]:
37
40
  """Add a Comment to the specified Discussion
38
41
 
39
42
  Args:
@@ -42,7 +45,7 @@ class Discussions:
42
45
  comment_obj (Comment): Comment object.
43
46
 
44
47
  Returns:
45
- Result
48
+ Union[Result[Comment], Error]: The result of the operation, or an Error object if the request fails.
46
49
  """
47
50
  _op = fresh_operation("add_comment_to_discussion")
48
51
  _op["method"] = "POST"
@@ -65,7 +68,7 @@ class Discussions:
65
68
  # pylint: disable=invalid-name
66
69
  def add_comment_to_discussion_with_attachment(
67
70
  self, sheet_id, discussion_id, comment, _file=None
68
- ):
71
+ ) -> Union[Result[Comment], Error]:
69
72
  """Add a Comment with an Attachment to the specified Discussion
70
73
 
71
74
  Args:
@@ -75,7 +78,7 @@ class Discussions:
75
78
  _file (file): String or file stream object.
76
79
 
77
80
  Returns:
78
- Result
81
+ Union[Result[Comment], Error]: The result of the operation, or an Error object if the request fails.
79
82
  """
80
83
  if not all(val is not None for val in ["sheet_id", "discussion_id", "comment"]):
81
84
  raise ValueError(
@@ -105,7 +108,7 @@ class Discussions:
105
108
 
106
109
  # pylint: enable=invalid-name
107
110
 
108
- def create_discussion_on_row(self, sheet_id, row_id, discussion_obj=None):
111
+ def create_discussion_on_row(self, sheet_id, row_id, discussion_obj=None) -> Union[Result[Discussion], Error]:
109
112
  """Create a new Discussion on a Row.
110
113
 
111
114
 
@@ -116,7 +119,7 @@ class Discussions:
116
119
  discussion_obj (Discussion): Discussion object.
117
120
 
118
121
  Returns:
119
- Result
122
+ Union[Result[Discussion], Error]: The result of the operation, or an Error object if the request fails.
120
123
  """
121
124
  _op = fresh_operation("create_discussion_on_row")
122
125
  _op["method"] = "POST"
@@ -135,7 +138,7 @@ class Discussions:
135
138
  # pylint: disable=invalid-name
136
139
  def create_discussion_on_row_with_attachment(
137
140
  self, sheet_id, row_id, discussion, _file=None
138
- ):
141
+ ) -> Union[Result[Discussion], Error]:
139
142
  """Create a new Discussion on a Row with an attachment.
140
143
 
141
144
  Args:
@@ -145,7 +148,7 @@ class Discussions:
145
148
  _file (file): String or file stream object.
146
149
 
147
150
  Returns:
148
- Result
151
+ Union[Result[Discussion], Error]: The result of the operation, or an Error object if the request fails.
149
152
  """
150
153
  if not all(val is not None for val in ["sheet_id", "row_id", "discussion"]):
151
154
  raise ValueError(
@@ -171,7 +174,7 @@ class Discussions:
171
174
 
172
175
  # pylint: enable=invalid-name
173
176
 
174
- def create_discussion_on_sheet(self, sheet_id, discussion_obj=None):
177
+ def create_discussion_on_sheet(self, sheet_id, discussion_obj=None) -> Union[Result[Discussion], Error]:
175
178
  """Create a new Discussion on a Sheet.
176
179
 
177
180
  Args:
@@ -179,7 +182,7 @@ class Discussions:
179
182
  discussion_obj (Discussion): Discussion object.
180
183
 
181
184
  Returns:
182
- Result
185
+ Union[Result[Discussion], Error]: The result of the operation, or an Error object if the request fails.
183
186
  """
184
187
  _op = fresh_operation("create_discussion_on_sheet")
185
188
  _op["method"] = "POST"
@@ -196,7 +199,7 @@ class Discussions:
196
199
  # pylint: disable=invalid-name
197
200
  def create_discussion_on_sheet_with_attachment(
198
201
  self, sheet_id, discussion, _file=None
199
- ):
202
+ ) -> Union[Result[Discussion], Error]:
200
203
  """Create a new Discussion on a Sheet with an attachment.
201
204
 
202
205
  Args:
@@ -205,7 +208,7 @@ class Discussions:
205
208
  _file (file): String or file stream object.
206
209
 
207
210
  Returns:
208
- Result
211
+ Union[Result[Discussion], Error]: The result of the operation, or an Error object if the request fails.
209
212
  """
210
213
  _op = fresh_operation("create_discussion_on_sheet_with_attachment")
211
214
  _op["method"] = "POST"
@@ -224,7 +227,7 @@ class Discussions:
224
227
 
225
228
  # pylint: enable=invalid-name
226
229
 
227
- def delete_discussion(self, sheet_id, discussion_id):
230
+ def delete_discussion(self, sheet_id, discussion_id) -> Union[Result[None], Error]:
228
231
  """Delete the specified Discussion.
229
232
 
230
233
  Args:
@@ -232,7 +235,7 @@ class Discussions:
232
235
  discussion_id (int): Discussion ID
233
236
 
234
237
  Returns:
235
- Result
238
+ Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
236
239
  """
237
240
  _op = fresh_operation("delete_discussion")
238
241
  _op["method"] = "DELETE"
@@ -244,7 +247,7 @@ class Discussions:
244
247
 
245
248
  return response
246
249
 
247
- def delete_discussion_comment(self, sheet_id, comment_id):
250
+ def delete_discussion_comment(self, sheet_id, comment_id) -> Union[Result[None], Error]:
248
251
  """Delete the specified Sheet Comment.
249
252
 
250
253
  Delete the specified Comment from the specified Sheet.
@@ -254,7 +257,7 @@ class Discussions:
254
257
  comment_id (int): Comment ID
255
258
 
256
259
  Returns:
257
- Result
260
+ Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
258
261
  """
259
262
  _op = fresh_operation("delete_discussion_comment")
260
263
  _op["method"] = "DELETE"
@@ -268,7 +271,7 @@ class Discussions:
268
271
 
269
272
  def get_all_discussions(
270
273
  self, sheet_id, include=None, page_size=None, page=None, include_all=None
271
- ):
274
+ ) -> Union[IndexResult[Discussion], Error]:
272
275
  """Get a list of all Discussions on the specified Sheet.
273
276
 
274
277
  Get a list of all Discussions associated with the specified
@@ -286,7 +289,7 @@ class Discussions:
286
289
  (i.e. do not paginate).
287
290
 
288
291
  Returns:
289
- IndexResult
292
+ Union[IndexResult[Discussion], Error]: The result of the operation, or an Error object if the request fails.
290
293
  """
291
294
  _op = fresh_operation("get_all_discussions")
292
295
  _op["method"] = "GET"
@@ -303,7 +306,7 @@ class Discussions:
303
306
 
304
307
  return response
305
308
 
306
- def get_discussion(self, sheet_id, discussion_id):
309
+ def get_discussion(self, sheet_id, discussion_id) -> Union[Discussion, Error]:
307
310
  """Get the specified Discussion.
308
311
 
309
312
  Args:
@@ -311,7 +314,7 @@ class Discussions:
311
314
  discussion_id (int): Discussion ID
312
315
 
313
316
  Returns:
314
- Discussion
317
+ Union[Discussion, Error]: The result of the operation, or an Error object if the request fails.
315
318
  """
316
319
  _op = fresh_operation("get_discussion")
317
320
  _op["method"] = "GET"
@@ -323,7 +326,7 @@ class Discussions:
323
326
 
324
327
  return response
325
328
 
326
- def get_discussion_comment(self, sheet_id, comment_id):
329
+ def get_discussion_comment(self, sheet_id, comment_id) -> Union[Comment, Error]:
327
330
  """Get the specified Comment.
328
331
 
329
332
  Args:
@@ -331,7 +334,7 @@ class Discussions:
331
334
  comment_id (int): Comment ID
332
335
 
333
336
  Returns:
334
- Comment
337
+ Union[Comment, Error]: The result of the operation, or an Error object if the request fails.
335
338
  """
336
339
  _op = fresh_operation("get_discussion_comment")
337
340
  _op["method"] = "GET"
@@ -351,7 +354,7 @@ class Discussions:
351
354
  page_size=None,
352
355
  page=None,
353
356
  include_all=None,
354
- ):
357
+ ) -> Union[IndexResult[Discussion], Error]:
355
358
  """Get a list of all Discussions associated with the specified Row.
356
359
 
357
360
  Args:
@@ -368,7 +371,7 @@ class Discussions:
368
371
  (i.e. do not paginate).
369
372
 
370
373
  Returns:
371
- IndexResult
374
+ Union[IndexResult[Discussion], Error]: The result of the operation, or an Error object if the request fails.
372
375
  """
373
376
  _op = fresh_operation("get_row_discussions")
374
377
  _op["method"] = "GET"
@@ -387,7 +390,7 @@ class Discussions:
387
390
 
388
391
  return response
389
392
 
390
- def update_comment(self, sheet_id, comment_id, comment_obj):
393
+ def update_comment(self, sheet_id, comment_id, comment_obj) -> Union[Result[Comment], Error]:
391
394
  """Update the specified Comment.
392
395
 
393
396
  Args:
@@ -396,7 +399,7 @@ class Discussions:
396
399
  comment_obj (Comment): Comment object with the following attributes:
397
400
 
398
401
  Returns:
399
- Result
402
+ Union[Result[Comment], Error]: The result of the operation, or an Error object if the request fails.
400
403
  """
401
404
  _op = fresh_operation("update_comment")
402
405
  _op["method"] = "PUT"
@@ -17,10 +17,13 @@
17
17
 
18
18
  from __future__ import absolute_import
19
19
 
20
+ from typing import Union
21
+
20
22
  import logging
21
23
  from datetime import datetime
22
24
 
23
25
  from .util import fresh_operation
26
+ from .models import Error, Event, EventResult
24
27
 
25
28
 
26
29
  class Events:
@@ -31,7 +34,7 @@ class Events:
31
34
 
32
35
  def list_events(
33
36
  self, since=None, to=None, stream_position=None, max_count=None, numeric_dates=None # pylint: disable=invalid-name
34
- ):
37
+ ) -> Union[EventResult[Event], Error]:
35
38
  """Get the list of all Events.
36
39
 
37
40
  Args:
@@ -53,7 +56,7 @@ class Events:
53
56
  Default is false, which means ISO-8601 format
54
57
 
55
58
  Returns:
56
- EventResult containing Event array as data[]
59
+ Union[EventResult[Event], Error]: The result of the operation, or an Error object if the request fails.
57
60
  """
58
61
  _op = fresh_operation("list_events")
59
62
  _op["method"] = "GET"