smartsheet-python-sdk 3.9.0__tar.gz → 4.0.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 (274) hide show
  1. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/.gitignore +11 -0
  2. {smartsheet_python_sdk-3.9.0/smartsheet_python_sdk.egg-info → smartsheet_python_sdk-4.0.1}/PKG-INFO +24 -26
  3. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/pyproject.toml +14 -6
  4. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/folders.py +1 -61
  5. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/__init__.py +0 -1
  6. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/create_report_result.py +1 -1
  7. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/event.py +9 -0
  8. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_destination.py +1 -1
  9. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_scope_inclusion.py +1 -1
  10. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet.py +0 -34
  11. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/reports.py +0 -134
  12. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/sheets.py +1 -155
  13. smartsheet_python_sdk-4.0.1/smartsheet/sights.py +236 -0
  14. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/smartsheet.py +0 -2
  15. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/types.py +5 -1
  16. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/util.py +5 -1
  17. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/version.py +3 -3
  18. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/webhooks.py +12 -9
  19. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/workspaces.py +11 -251
  20. smartsheet_python_sdk-3.9.0/.gitchangelog.rc +0 -290
  21. smartsheet_python_sdk-3.9.0/.gitchangelog.tpl +0 -17
  22. smartsheet_python_sdk-3.9.0/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
  23. smartsheet_python_sdk-3.9.0/.github/ISSUE_TEMPLATE/feature_request.md +0 -23
  24. smartsheet_python_sdk-3.9.0/.github/pull_request_template.md +0 -44
  25. smartsheet_python_sdk-3.9.0/.github/workflows/publish-distribution.yaml +0 -32
  26. smartsheet_python_sdk-3.9.0/.github/workflows/publish-documentation.yaml +0 -46
  27. smartsheet_python_sdk-3.9.0/.github/workflows/test-build.yaml +0 -119
  28. smartsheet_python_sdk-3.9.0/.markdownlint.json +0 -6
  29. smartsheet_python_sdk-3.9.0/.roo/roomotes.yml +0 -25
  30. smartsheet_python_sdk-3.9.0/ADVANCED.md +0 -263
  31. smartsheet_python_sdk-3.9.0/CHANGELOG.md +0 -520
  32. smartsheet_python_sdk-3.9.0/CONTRIBUTING.md +0 -94
  33. smartsheet_python_sdk-3.9.0/ISSUE-FIRST.md +0 -306
  34. smartsheet_python_sdk-3.9.0/Makefile +0 -57
  35. smartsheet_python_sdk-3.9.0/PKG-INFO +0 -124
  36. smartsheet_python_sdk-3.9.0/docs-source/Makefile +0 -153
  37. smartsheet_python_sdk-3.9.0/docs-source/conf.py +0 -39
  38. smartsheet_python_sdk-3.9.0/docs-source/index.rst +0 -141
  39. smartsheet_python_sdk-3.9.0/docs-source/smartsheet_api.rst +0 -186
  40. smartsheet_python_sdk-3.9.0/docs-source/smartsheet_enums.rst +0 -322
  41. smartsheet_python_sdk-3.9.0/docs-source/smartsheet_exceptions.rst +0 -7
  42. smartsheet_python_sdk-3.9.0/docs-source/smartsheet_models.rst +0 -1042
  43. smartsheet_python_sdk-3.9.0/docs-source/smartsheet_types.rst +0 -7
  44. smartsheet_python_sdk-3.9.0/setup.cfg +0 -4
  45. smartsheet_python_sdk-3.9.0/smartsheet/models/share.py +0 -183
  46. smartsheet_python_sdk-3.9.0/smartsheet/sights.py +0 -425
  47. smartsheet_python_sdk-3.9.0/smartsheet/templates.py +0 -90
  48. smartsheet_python_sdk-3.9.0/smartsheet_python_sdk.egg-info/SOURCES.txt +0 -271
  49. smartsheet_python_sdk-3.9.0/smartsheet_python_sdk.egg-info/dependency_links.txt +0 -1
  50. smartsheet_python_sdk-3.9.0/smartsheet_python_sdk.egg-info/requires.txt +0 -30
  51. smartsheet_python_sdk-3.9.0/smartsheet_python_sdk.egg-info/top_level.txt +0 -1
  52. smartsheet_python_sdk-3.9.0/tests/__init__.py +0 -0
  53. smartsheet_python_sdk-3.9.0/tests/mock_api/__init__.py +0 -0
  54. smartsheet_python_sdk-3.9.0/tests/mock_api/favorites/__init__.py +0 -1
  55. smartsheet_python_sdk-3.9.0/tests/mock_api/favorites/common_test_constants.py +0 -7
  56. smartsheet_python_sdk-3.9.0/tests/mock_api/favorites/test_is_favorite.py +0 -93
  57. smartsheet_python_sdk-3.9.0/tests/mock_api/mock_api_test_helper.py +0 -73
  58. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/common_test_constants.py +0 -5
  59. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/test_add_report_columns.py +0 -319
  60. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/test_add_report_scope.py +0 -133
  61. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/test_create_report.py +0 -334
  62. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/test_remove_report_scope.py +0 -133
  63. smartsheet_python_sdk-3.9.0/tests/mock_api/reports/test_update_report_definition.py +0 -408
  64. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_automation_rules.py +0 -39
  65. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_columns.py +0 -48
  66. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_folders.py +0 -184
  67. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_reports.py +0 -55
  68. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_rows.py +0 -715
  69. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_sharing.py +0 -532
  70. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_sheets.py +0 -42
  71. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_sights.py +0 -58
  72. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_api_workspaces.py +0 -241
  73. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_change_agent.py +0 -26
  74. smartsheet_python_sdk-3.9.0/tests/mock_api/test_mock_serialization.py +0 -559
  75. smartsheet_python_sdk-3.9.0/tests/mock_api/users/common_test_constants.py +0 -4
  76. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_deactivate_user.py +0 -64
  77. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_list_user_plans.py +0 -127
  78. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_list_users.py +0 -191
  79. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_reactivate_user.py +0 -64
  80. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_remove_user_from_plan.py +0 -68
  81. smartsheet_python_sdk-3.9.0/tests/mock_api/users/test_user_upgrade_downgrade.py +0 -187
  82. smartsheet_python_sdk-3.9.0/tests/test_enumerated_value_set.py +0 -366
  83. smartsheet_python_sdk-3.9.0/tests/test_util_serialize_dict.py +0 -362
  84. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/LICENSE.md +0 -0
  85. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/NOTICE +0 -0
  86. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/README.md +0 -0
  87. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/__init__.py +0 -0
  88. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/attachments.py +0 -0
  89. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/cells.py +0 -0
  90. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/contacts.py +0 -0
  91. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/discussions.py +0 -0
  92. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/events.py +0 -0
  93. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/exceptions.py +0 -0
  94. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/favorites.py +0 -0
  95. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/groups.py +0 -0
  96. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/home.py +0 -0
  97. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/images.py +0 -0
  98. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/access_token.py +0 -0
  99. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/account.py +0 -0
  100. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/alternate_email.py +0 -0
  101. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/asset_share.py +0 -0
  102. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/asset_shares_paginated_result.py +0 -0
  103. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/attachment.py +0 -0
  104. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/auto_number_format.py +0 -0
  105. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/automation_action.py +0 -0
  106. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/automation_rule.py +0 -0
  107. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/boolean_object_value.py +0 -0
  108. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/bulk_item_failure.py +0 -0
  109. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/bulk_item_result.py +0 -0
  110. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cell.py +0 -0
  111. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cell_data_item.py +0 -0
  112. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cell_history.py +0 -0
  113. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cell_link.py +0 -0
  114. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cell_link_widget_content.py +0 -0
  115. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/chart_widget_content.py +0 -0
  116. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/column.py +0 -0
  117. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/comment.py +0 -0
  118. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/contact.py +0 -0
  119. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/contact_object_value.py +0 -0
  120. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/container_destination.py +0 -0
  121. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/copy_or_move_row_destination.py +0 -0
  122. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/copy_or_move_row_directive.py +0 -0
  123. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/copy_or_move_row_result.py +0 -0
  124. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/create_report_request.py +0 -0
  125. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/criteria.py +0 -0
  126. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/cross_sheet_reference.py +0 -0
  127. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/currency.py +0 -0
  128. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/date_object_value.py +0 -0
  129. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/datetime_object_value.py +0 -0
  130. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/discussion.py +0 -0
  131. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/downloaded_file.py +0 -0
  132. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/duration.py +0 -0
  133. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/email.py +0 -0
  134. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/__init__.py +0 -0
  135. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/access_level.py +0 -0
  136. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/asset_type.py +0 -0
  137. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/attachment_parent_type.py +0 -0
  138. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/attachment_sub_type.py +0 -0
  139. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/attachment_type.py +0 -0
  140. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/automation_action_frequency.py +0 -0
  141. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/automation_action_type.py +0 -0
  142. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/automation_rule_disabled_reason.py +0 -0
  143. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/cell_link_status.py +0 -0
  144. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/column_type.py +0 -0
  145. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/criteria_target.py +0 -0
  146. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/cross_sheet_reference_status.py +0 -0
  147. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/currency_code.py +0 -0
  148. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/day_descriptors.py +0 -0
  149. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/day_ordinal.py +0 -0
  150. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/event_action.py +0 -0
  151. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/event_object_type.py +0 -0
  152. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/event_source.py +0 -0
  153. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/favorite_type.py +0 -0
  154. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/global_template.py +0 -0
  155. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/operator.py +0 -0
  156. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/paper_type.py +0 -0
  157. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/predecessor_type.py +0 -0
  158. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/publish_accessible_by.py +0 -0
  159. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/report_aggregation_type.py +0 -0
  160. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/report_asset_type.py +0 -0
  161. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/report_boolean_operator.py +0 -0
  162. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/report_destination_type.py +0 -0
  163. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/report_filter_operator.py +0 -0
  164. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/schedule_type.py +0 -0
  165. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/seat_type.py +0 -0
  166. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/share_scope.py +0 -0
  167. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/share_type.py +0 -0
  168. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/sheet_email_format.py +0 -0
  169. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/sheet_filter_operator.py +0 -0
  170. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/sheet_filter_type.py +0 -0
  171. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/sort_direction.py +0 -0
  172. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/symbol.py +0 -0
  173. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/system_column_type.py +0 -0
  174. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/update_request_status.py +0 -0
  175. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/user_status.py +0 -0
  176. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/enums/widget_type.py +0 -0
  177. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/error.py +0 -0
  178. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/error_result.py +0 -0
  179. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/event_result.py +0 -0
  180. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/explicit_null.py +0 -0
  181. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/favorite.py +0 -0
  182. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/folder.py +0 -0
  183. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/font_family.py +0 -0
  184. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/format_details.py +0 -0
  185. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/format_tables.py +0 -0
  186. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/group.py +0 -0
  187. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/group_member.py +0 -0
  188. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/home.py +0 -0
  189. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/hyperlink.py +0 -0
  190. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/image.py +0 -0
  191. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/image_url.py +0 -0
  192. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/image_url_map.py +0 -0
  193. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/image_widget_content.py +0 -0
  194. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/index_result.py +0 -0
  195. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/json_object.py +0 -0
  196. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/multi_contact_object_value.py +0 -0
  197. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/multi_picklist_object_value.py +0 -0
  198. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/multi_row_email.py +0 -0
  199. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/number_object_value.py +0 -0
  200. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/o_auth_error.py +0 -0
  201. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/object_value.py +0 -0
  202. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/paginated_children_result.py +0 -0
  203. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/predecessor.py +0 -0
  204. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/predecessor_list.py +0 -0
  205. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/primitive_object_value.py +0 -0
  206. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/profile_image.py +0 -0
  207. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/project_settings.py +0 -0
  208. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/recipient.py +0 -0
  209. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report.py +0 -0
  210. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_cell.py +0 -0
  211. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_column.py +0 -0
  212. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_column_identifier.py +0 -0
  213. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_definition.py +0 -0
  214. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_filter_criterion.py +0 -0
  215. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_filter_expression.py +0 -0
  216. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_grouping_criterion.py +0 -0
  217. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_publish.py +0 -0
  218. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_row.py +0 -0
  219. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_sorting_criterion.py +0 -0
  220. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_summarizing_criterion.py +0 -0
  221. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/report_widget_content.py +0 -0
  222. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/result.py +0 -0
  223. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/row.py +0 -0
  224. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/row_email.py +0 -0
  225. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/row_mapping.py +0 -0
  226. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/schedule.py +0 -0
  227. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/scope.py +0 -0
  228. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/search_result.py +0 -0
  229. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/search_result_item.py +0 -0
  230. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/selection_range.py +0 -0
  231. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sent_update_request.py +0 -0
  232. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/server_info.py +0 -0
  233. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_email.py +0 -0
  234. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_filter.py +0 -0
  235. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_filter_details.py +0 -0
  236. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_publish.py +0 -0
  237. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_summary.py +0 -0
  238. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_user_permissions.py +0 -0
  239. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sheet_user_settings.py +0 -0
  240. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/shortcut_data_item.py +0 -0
  241. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/shortcut_widget_content.py +0 -0
  242. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sight.py +0 -0
  243. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sight_publish.py +0 -0
  244. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sort_criterion.py +0 -0
  245. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/sort_specifier.py +0 -0
  246. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/source.py +0 -0
  247. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/string_object_value.py +0 -0
  248. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/summary_field.py +0 -0
  249. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/template.py +0 -0
  250. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/title_rich_text_widget_content.py +0 -0
  251. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/token_paginated_result.py +0 -0
  252. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/update_request.py +0 -0
  253. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/user.py +0 -0
  254. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/user_model.py +0 -0
  255. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/user_plan.py +0 -0
  256. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/user_profile.py +0 -0
  257. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/version.py +0 -0
  258. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/web_content_widget_content.py +0 -0
  259. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/webhook.py +0 -0
  260. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/webhook_secret.py +0 -0
  261. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/webhook_stats.py +0 -0
  262. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/webhook_subscope.py +0 -0
  263. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/widget.py +0 -0
  264. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/widget_content.py +0 -0
  265. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/widget_hyperlink.py +0 -0
  266. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/models/workspace.py +0 -0
  267. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/object_value.py +0 -0
  268. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/passthrough.py +0 -0
  269. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/search.py +0 -0
  270. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/server.py +0 -0
  271. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/session.py +0 -0
  272. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/sharing.py +0 -0
  273. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/token.py +0 -0
  274. {smartsheet_python_sdk-3.9.0 → smartsheet_python_sdk-4.0.1}/smartsheet/users.py +0 -0
@@ -33,3 +33,14 @@ smartsheet/version.py
33
33
 
34
34
  # ignore ugly batch files
35
35
  *.bat
36
+
37
+ # ignore uv virtual environment
38
+ .venv
39
+ # Sphinx auto-generated files
40
+ docs-source/modules.rst
41
+ docs-source/smartsheet*.rst
42
+ # Claude Code settings
43
+ .claude/settings.local.json
44
+ # Superpowers documentation
45
+ docs/superpowers
46
+ .DS_Store
@@ -1,8 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: smartsheet-python-sdk
3
- Version: 3.9.0
3
+ Version: 4.0.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
+ License-File: LICENSE.md
7
+ License-File: NOTICE
6
8
  Classifier: Development Status :: 5 - Production/Stable
7
9
  Classifier: Intended Audience :: Developers
8
10
  Classifier: Natural Language :: English
@@ -17,39 +19,35 @@ Classifier: Programming Language :: Python :: 3.12
17
19
  Classifier: Programming Language :: Python :: 3.13
18
20
  Classifier: Programming Language :: Python :: 3.14
19
21
  Classifier: Programming Language :: Python :: 3.15
20
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
22
  Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
24
  Requires-Python: >=3.7
23
- Description-Content-Type: text/markdown
24
- License-File: LICENSE.md
25
- License-File: NOTICE
25
+ Requires-Dist: certifi
26
+ Requires-Dist: python-dateutil
26
27
  Requires-Dist: requests
27
28
  Requires-Dist: requests-toolbelt
28
29
  Requires-Dist: six>=1.9
29
- Requires-Dist: certifi
30
- Requires-Dist: python-dateutil
31
- Provides-Extra: test
32
- Requires-Dist: coverage; extra == "test"
33
- Requires-Dist: coveralls; extra == "test"
34
- Requires-Dist: pytest; extra == "test"
35
- Requires-Dist: pytest-rerunfailures; extra == "test"
36
- Requires-Dist: requests-toolbelt; extra == "test"
37
30
  Provides-Extra: develop
38
- Requires-Dist: coverage; extra == "develop"
39
- Requires-Dist: coveralls[yaml]; extra == "develop"
40
- Requires-Dist: pytest; extra == "develop"
41
- Requires-Dist: pytest-instafail; extra == "develop"
42
- Requires-Dist: pylint; extra == "develop"
31
+ Requires-Dist: coverage; extra == 'develop'
32
+ Requires-Dist: coveralls[yaml]; extra == 'develop'
33
+ Requires-Dist: pylint; extra == 'develop'
34
+ Requires-Dist: pytest; extra == 'develop'
35
+ Requires-Dist: pytest-instafail; extra == 'develop'
43
36
  Provides-Extra: docs
44
- Requires-Dist: sphinx; extra == "docs"
45
- Requires-Dist: sphinx_rtd_theme; extra == "docs"
46
- Requires-Dist: setuptools_scm; extra == "docs"
37
+ Requires-Dist: setuptools-scm; extra == 'docs'
38
+ Requires-Dist: sphinx; extra == 'docs'
39
+ Requires-Dist: sphinx-rtd-theme; extra == 'docs'
47
40
  Provides-Extra: packaging
48
- Requires-Dist: wheel; extra == "packaging"
49
- Requires-Dist: twine; extra == "packaging"
50
- Requires-Dist: gitchangelog; extra == "packaging"
51
- Requires-Dist: mako; extra == "packaging"
52
- Dynamic: license-file
41
+ Requires-Dist: gitchangelog; extra == 'packaging'
42
+ Requires-Dist: mako; extra == 'packaging'
43
+ Requires-Dist: wheel; extra == 'packaging'
44
+ Provides-Extra: test
45
+ Requires-Dist: coverage; extra == 'test'
46
+ Requires-Dist: coveralls; extra == 'test'
47
+ Requires-Dist: pytest; extra == 'test'
48
+ Requires-Dist: pytest-rerunfailures; extra == 'test'
49
+ Requires-Dist: requests-toolbelt; extra == 'test'
50
+ Description-Content-Type: text/markdown
53
51
 
54
52
  # Smartsheet Python SDK
55
53
 
@@ -1,6 +1,18 @@
1
1
  [build-system]
2
- requires = ["setuptools>=61.0", "setuptools_scm>=7.0.1"]
3
- build-backend = "setuptools.build_meta"
2
+ requires = ["hatchling", "hatch-vcs"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [tool.hatch.version]
6
+ source = "vcs"
7
+
8
+ [tool.hatch.build.hooks.vcs]
9
+ version-file = "smartsheet/version.py"
10
+
11
+ [tool.hatch.build.targets.wheel]
12
+ packages = ["smartsheet"]
13
+
14
+ [tool.hatch.build.targets.sdist]
15
+ include = ["smartsheet"]
4
16
 
5
17
  [project]
6
18
  name = "smartsheet-python-sdk"
@@ -58,14 +70,10 @@ docs = [
58
70
  ]
59
71
  packaging = [
60
72
  "wheel",
61
- "twine",
62
73
  "gitchangelog",
63
74
  "mako"
64
75
  ]
65
76
 
66
- [tool.setuptools_scm]
67
- write_to = "smartsheet/version.py"
68
-
69
77
  [tool.pytest.ini_options]
70
78
  addopts = "-ra --color=yes --showlocals --verbose --ignore=docs --ignore=examples --tb=native"
71
79
  log_cli = true
@@ -23,8 +23,7 @@ import logging
23
23
  import os.path
24
24
 
25
25
  from .util import fresh_operation
26
- from .models import Error, Folder, IndexResult, PaginatedChildrenResult, Result, Sheet
27
- from .util import deprecated
26
+ from .models import Error, Folder, PaginatedChildrenResult, Result, Sheet
28
27
 
29
28
 
30
29
  class Folders:
@@ -176,65 +175,6 @@ class Folders:
176
175
 
177
176
  return response
178
177
 
179
- @deprecated
180
- def get_folder(self, folder_id, include=None) -> Union[Folder, Error]:
181
- """Get the specified Folder (and list its contents).
182
-
183
- Deprecated: 3.1.0
184
- Use `get_folder_metadata` and `get_folder_children` instead.
185
-
186
- Args:
187
- folder_id (int): Folder ID
188
- include (list[str]): A comma-separated list of
189
- optional elements to include in the response. Valid list
190
- values: ownerInfo, sheetVersion, source.
191
-
192
- Returns:
193
- Union[Folder, Error]: The result of the operation, or an Error object if the request fails.
194
- """
195
- _op = fresh_operation("get_folder")
196
- _op["method"] = "GET"
197
- _op["path"] = "/folders/" + str(folder_id)
198
- _op["query_params"]["include"] = include
199
-
200
- expected = "Folder"
201
- prepped_request = self._base.prepare_request(_op)
202
- response = self._base.request(prepped_request, expected, _op)
203
-
204
- return response
205
-
206
- @deprecated
207
- def list_folders(self, folder_id, page_size=None, page=None, include_all=None) -> Union[IndexResult[Folder], Error]:
208
- """Get a list of top-level child Folders within the specified Folder.
209
-
210
- Deprecated: 3.1.0
211
- Use `get_folder_children` with children_resource_types=['folders'] instead.
212
-
213
- Args:
214
- folder_id (int): Folder ID
215
- page_size (int): The maximum number of items to
216
- return per page.
217
- page (int): Which page to return.
218
- include_all (bool): If true, include all results
219
- (i.e. do not paginate).
220
-
221
- Returns:
222
- Union[IndexResult[Folder], Error]: The result of the operation, or an Error object if the request fails.
223
- """
224
- _op = fresh_operation("list_folders")
225
- _op["method"] = "GET"
226
- _op["path"] = "/folders/" + str(folder_id) + "/folders"
227
- _op["query_params"]["pageSize"] = page_size
228
- _op["query_params"]["page"] = page
229
- _op["query_params"]["includeAll"] = include_all
230
-
231
- expected = ["IndexResult", "Folder"]
232
-
233
- prepped_request = self._base.prepare_request(_op)
234
- response = self._base.request(prepped_request, expected, _op)
235
-
236
- return response
237
-
238
178
  def move_folder(self, folder_id, container_destination_obj) -> Union[Result[Folder], Error]:
239
179
  """Moves the specified Folder to another location.
240
180
 
@@ -104,7 +104,6 @@ from .search_result import SearchResult
104
104
  from .search_result_item import SearchResultItem
105
105
  from .sent_update_request import SentUpdateRequest
106
106
  from .server_info import ServerInfo
107
- from .share import Share
108
107
  from .sheet import Sheet
109
108
  from .sheet_email import SheetEmail
110
109
  from .sheet_filter import SheetFilter
@@ -65,7 +65,7 @@ class CreateReportResult:
65
65
 
66
66
  @property
67
67
  def access_level(self):
68
- return self._access_level.value
68
+ return self._access_level
69
69
 
70
70
  @access_level.setter
71
71
  def access_level(self, value) -> None:
@@ -38,6 +38,7 @@ class Event:
38
38
  self._event_id = String()
39
39
  self._event_timestamp = None
40
40
  self._object_id = None
41
+ self._object_id_str = String()
41
42
  self._object_type = EnumeratedValue(EventObjectType)
42
43
  self._request_user_id = Number()
43
44
  self._source = EnumeratedValue(EventSource)
@@ -111,6 +112,14 @@ class Event:
111
112
  def object_id(self, value):
112
113
  self._object_id = value
113
114
 
115
+ @property
116
+ def object_id_str(self):
117
+ return self._object_id_str.value
118
+
119
+ @object_id_str.setter
120
+ def object_id_str(self, value):
121
+ self._object_id_str.value = value
122
+
114
123
  @property
115
124
  def object_type(self):
116
125
  return self._object_type
@@ -48,7 +48,7 @@ class ReportDestination:
48
48
 
49
49
  @property
50
50
  def destination_type(self):
51
- return self._destination_type.value
51
+ return self._destination_type
52
52
 
53
53
  @destination_type.setter
54
54
  def destination_type(self, value):
@@ -48,7 +48,7 @@ class ReportScopeInclusion:
48
48
 
49
49
  @property
50
50
  def asset_type(self) -> ReportAssetType:
51
- return self._asset_type.value
51
+ return self._asset_type
52
52
 
53
53
  @asset_type.setter
54
54
  def asset_type(self, value):
@@ -385,40 +385,6 @@ class Sheet:
385
385
  def get_version(self):
386
386
  return self._base.Sheets.get_sheet_version(self.id)
387
387
 
388
- def list_shares(
389
- self,
390
- page_size=100,
391
- page=1,
392
- include_all=False,
393
- include_workspace_shares=False,
394
- access_api_level=0,
395
- ):
396
- return self._base.Sheets.list_shares(
397
- self.id,
398
- page_size,
399
- page,
400
- include_all,
401
- include_workspace_shares,
402
- access_api_level,
403
- )
404
-
405
- def share(self, share_obj, send_email=False):
406
- return self._base.Sheets.share_sheet(self.id, share_obj, send_email)
407
-
408
- def shares(self, page_size=100, page=1, include_all=False):
409
- return self._base.Sheets.list_shares(
410
- self.id, page_size=100, page=1, include_all=False
411
- )
412
-
413
- def update_share(self, share_id, share_obj):
414
- return self._base.Sheets.update_share(self.id, share_id, share_obj)
415
-
416
- def get_share(self, share_id):
417
- return self._base.Sheets.get_share(self.id, share_id)
418
-
419
- def delete_share(self, share_id):
420
- return self._base.Sheets.delete_share(self.id, share_id)
421
-
422
388
  def update_name(self, new_name):
423
389
  return self._base.Sheets.update_sheet(self.id, Sheet({"name": new_name}))
424
390
 
@@ -36,7 +36,6 @@ from .models import (
36
36
  ReportPublish,
37
37
  ReportScopeInclusion,
38
38
  Result,
39
- Share,
40
39
  )
41
40
 
42
41
 
@@ -79,26 +78,6 @@ class Reports:
79
78
 
80
79
  return response
81
80
 
82
- def delete_share(self, report_id, share_id) -> Union[Result[None], Error]:
83
- """Deletes the specified Share
84
-
85
- Args:
86
- report_id (int): Report ID
87
- share_id (str): Share ID
88
-
89
- Returns:
90
- Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
91
- """
92
- _op = fresh_operation("delete_share")
93
- _op["method"] = "DELETE"
94
- _op["path"] = "/reports/" + str(report_id) + "/shares/" + str(share_id)
95
-
96
- expected = ["Result", None]
97
- prepped_request = self._base.prepare_request(_op)
98
- response = self._base.request(prepped_request, expected, _op)
99
-
100
- return response
101
-
102
81
  def delete_report(self, report_id) -> Union[Result[None], Error]:
103
82
  """Deletes a report based on the specified ID
104
83
 
@@ -243,26 +222,6 @@ class Reports:
243
222
  response.save_to_file()
244
223
  return response
245
224
 
246
- def get_share(self, report_id, share_id) -> Union[Share, Error]:
247
- """Get the specified Share.
248
-
249
- Args:
250
- report_id (int): Report ID
251
- share_id (str): Share ID
252
-
253
- Returns:
254
- Union[Share, Error]: The result of the operation, or an Error object if the request fails.
255
- """
256
- _op = fresh_operation("get_share")
257
- _op["method"] = "GET"
258
- _op["path"] = "/reports/" + str(report_id) + "/shares/" + str(share_id)
259
-
260
- expected = "Share"
261
- prepped_request = self._base.prepare_request(_op)
262
- response = self._base.request(prepped_request, expected, _op)
263
-
264
- return response
265
-
266
225
  def list_reports(
267
226
  self, page_size=None, page=None, include_all=None, modified_since=None
268
227
  ) -> Union[IndexResult[Report], Error]:
@@ -298,45 +257,6 @@ class Reports:
298
257
 
299
258
  return response
300
259
 
301
- def list_shares(
302
- self,
303
- report_id,
304
- page_size=None,
305
- page=None,
306
- include_all=None,
307
- include_workspace_shares=False,
308
- ) -> Union[IndexResult[Share], Error]:
309
- """Get a list of all Users and Groups to whom the specified Report is
310
- shared, and their access level.
311
-
312
- Args:
313
- report_id (int): Report ID
314
- page_size (int): The maximum number of items to
315
- return per page.
316
- page (int): Which page to return.
317
- include_all (bool): If true, include all results
318
- (i.e. do not paginate).
319
- include_workspace_shares(bool): include Workspace shares
320
-
321
- Returns:
322
- Union[IndexResult[Share], Error]: The result of the operation, or an Error object if the request fails.
323
- """
324
- _op = fresh_operation("list_shares")
325
- _op["method"] = "GET"
326
- _op["path"] = "/reports/" + str(report_id) + "/shares"
327
- _op["query_params"]["pageSize"] = page_size
328
- _op["query_params"]["page"] = page
329
- _op["query_params"]["includeAll"] = include_all
330
- if include_workspace_shares:
331
- _op["query_params"]["include"] = "workspaceShares"
332
-
333
- expected = ["IndexResult", "Share"]
334
-
335
- prepped_request = self._base.prepare_request(_op)
336
- response = self._base.request(prepped_request, expected, _op)
337
-
338
- return response
339
-
340
260
  def send_report(self, report_id, sheet_email_obj) -> Union[Result[None], Error]:
341
261
  """Send the specified Report as a PDF attachment via email to the
342
262
  designated recipients.
@@ -359,60 +279,6 @@ class Reports:
359
279
 
360
280
  return response
361
281
 
362
- def share_report(self, report_id, share_obj, send_email=False) -> Union[Result[Share], Error]:
363
- """Shares a Report with the specified Users and Groups.
364
-
365
- Args:
366
- report_id (int): Report ID
367
- share_obj (Share): Share object.
368
- send_email (bool): Either true or false to
369
- indicate whether or not to notify the user by email. Default
370
- is false.
371
-
372
- Returns:
373
- Union[Result[Share], Error]: The result of the operation, or an Error object if the request fails.
374
- """
375
- _op = fresh_operation("share_report")
376
- _op["method"] = "POST"
377
- _op["path"] = "/reports/" + str(report_id) + "/shares"
378
- _op["query_params"]["sendEmail"] = send_email
379
- _op["json"] = share_obj
380
-
381
- expected = ["Result", "Share"]
382
-
383
- prepped_request = self._base.prepare_request(_op)
384
- response = self._base.request(prepped_request, expected, _op)
385
-
386
- return response
387
-
388
- def update_share(self, report_id, share_id, share_obj) -> Union[Result[Share], Error]:
389
- """Update the access level of a User or Group for the specified Report
390
-
391
- Args:
392
- report_id (int): Report ID
393
- share_id (str): Share ID
394
- share_obj (Share): Share object.
395
-
396
- Returns:
397
- Union[Result[Share], Error]: The result of the operation, or an Error object if the request fails.
398
- """
399
- if not all(val is not None for val in ["report_id", "share_id", "share_obj"]):
400
- raise ValueError(
401
- ("One or more required values are missing from call to " + __name__)
402
- )
403
-
404
- _op = fresh_operation("update_share")
405
- _op["method"] = "PUT"
406
- _op["path"] = "/reports/" + str(report_id) + "/shares/" + str(share_id)
407
- _op["json"] = share_obj
408
-
409
- expected = ["Result", "Share"]
410
-
411
- prepped_request = self._base.prepare_request(_op)
412
- response = self._base.request(prepped_request, expected, _op)
413
-
414
- return response
415
-
416
282
  def get_publish_status(self, report_id) -> Union[ReportPublish, Error]:
417
283
  """Get the Publish status of the Report.
418
284
 
@@ -26,7 +26,7 @@ import six
26
26
 
27
27
  from .util import fresh_operation
28
28
  from .models import AutomationRule, BulkItemResult, Column, CopyOrMoveRowResult, CrossSheetReference, DownloadedFile, \
29
- IndexResult, NumberObjectValue, Result, Row, SearchResult, SentUpdateRequest, Share, Sheet, SheetFilter, \
29
+ IndexResult, NumberObjectValue, Result, Row, SearchResult, SentUpdateRequest, Sheet, SheetFilter, \
30
30
  SheetPublish, SheetSummary, SummaryField, UpdateRequest, Version, Error
31
31
  from .types import TypedList
32
32
  from .util import deprecated
@@ -310,30 +310,6 @@ class Sheets:
310
310
 
311
311
  return response
312
312
 
313
- @deprecated
314
- def delete_share(self, sheet_id, share_id) -> Union[Result[None], Error]:
315
- """Delete the specified Share.
316
-
317
- Args:
318
- sheet_id (int): Sheet ID
319
- share_id (str): Share ID
320
-
321
- Returns:
322
- Union[Result[None], Error]: The result of the operation, or an Error object if the request fails.
323
-
324
- Deprecated:
325
- Use sharing.delete_share instead with assetType=AssetType.SHEET
326
- """
327
- _op = fresh_operation("delete_share")
328
- _op["method"] = "DELETE"
329
- _op["path"] = "/sheets/" + str(sheet_id) + "/shares/" + str(share_id)
330
-
331
- expected = ["Result", None]
332
- prepped_request = self._base.prepare_request(_op)
333
- response = self._base.request(prepped_request, expected, _op)
334
-
335
- return response
336
-
337
313
  def delete_sheet(self, sheet_id) -> Union[Result[None], Error]:
338
314
  """Delete the specified Sheet.
339
315
 
@@ -474,30 +450,6 @@ class Sheets:
474
450
 
475
451
  return response
476
452
 
477
- @deprecated
478
- def get_share(self, sheet_id, share_id) -> Union[Share, Error]:
479
- """Get the specified Share.
480
-
481
- Args:
482
- sheet_id (int): Sheet ID
483
- share_id (str): Share ID
484
-
485
- Returns:
486
- Union[Share, Error]: The result of the operation, or an Error object if the request fails.
487
-
488
- Deprecated:
489
- Use sharing.get_asset_share instead with assetType=AssetType.SHEET
490
- """
491
- _op = fresh_operation("get_share")
492
- _op["method"] = "GET"
493
- _op["path"] = "/sheets/" + str(sheet_id) + "/shares/" + str(share_id)
494
-
495
- expected = "Share"
496
- prepped_request = self._base.prepare_request(_op)
497
- response = self._base.request(prepped_request, expected, _op)
498
-
499
- return response
500
-
501
453
  def get_sheet(
502
454
  self,
503
455
  sheet_id,
@@ -708,47 +660,6 @@ class Sheets:
708
660
 
709
661
  return response
710
662
 
711
- def list_shares(
712
- self,
713
- sheet_id,
714
- page_size=None,
715
- page=None,
716
- include_all=None,
717
- include_workspace_shares=False,
718
- access_api_level=0,
719
- ) -> Union[IndexResult[Share], Error]:
720
- """Get the list of all Users and Groups to whom the specified Sheet is
721
- shared, and their access level.
722
-
723
- Args:
724
- sheet_id (int): Sheet ID
725
- page_size (int): The maximum number of items to
726
- return per page.
727
- page (int): Which page to return.
728
- include_all (bool): If true, include all results
729
- (i.e. do not paginate).
730
- include_workspace_shares(bool): Include Workspace shares
731
-
732
- Returns:
733
- Union[IndexResult[Share], Error]: The result of the operation, or an Error object if the request fails.
734
- """
735
- _op = fresh_operation("list_shares")
736
- _op["method"] = "GET"
737
- _op["path"] = "/sheets/" + str(sheet_id) + "/shares"
738
- _op["query_params"]["pageSize"] = page_size
739
- _op["query_params"]["page"] = page
740
- _op["query_params"]["includeAll"] = include_all
741
- _op["query_params"]["accessApiLevel"] = access_api_level
742
- if include_workspace_shares:
743
- _op["query_params"]["include"] = "workspaceShares"
744
-
745
- expected = ["IndexResult", "Share"]
746
-
747
- prepped_request = self._base.prepare_request(_op)
748
- response = self._base.request(prepped_request, expected, _op)
749
-
750
- return response
751
-
752
663
  def list_sheets(
753
664
  self,
754
665
  include=None,
@@ -999,39 +910,6 @@ class Sheets:
999
910
 
1000
911
  return response
1001
912
 
1002
- @deprecated
1003
- def share_sheet(self, sheet_id, share_obj, send_email=None) -> Union[Result[Share], Error]:
1004
- """Share the specified Sheet.
1005
-
1006
- Share the specified Sheet with the specified Users and
1007
- Groups.
1008
-
1009
- Args:
1010
- sheet_id (int): Sheet ID
1011
- share_obj (Share): Share object.
1012
- send_email (bool): Either true or false to
1013
- indicate whether or not to notify the user by email. Default
1014
- is false.
1015
-
1016
- Returns:
1017
- Union[Result[Share], Error]: The result of the operation, or an Error object if the request fails.
1018
-
1019
- Deprecated:
1020
- Use sharing.share_asset instead with assetType=AssetType.SHEET
1021
- """
1022
- _op = fresh_operation("share_sheet")
1023
- _op["method"] = "POST"
1024
- _op["path"] = "/sheets/" + str(sheet_id) + "/shares"
1025
- _op["json"] = share_obj
1026
- _op["query_params"]["sendEmail"] = send_email
1027
-
1028
- expected = ["Result", "Share"]
1029
-
1030
- prepped_request = self._base.prepare_request(_op)
1031
- response = self._base.request(prepped_request, expected, _op)
1032
-
1033
- return response
1034
-
1035
913
  def update_column(self, sheet_id, column_id, column_obj) -> Union[Result[Column], Error]:
1036
914
  """Update properties of the specified Column.
1037
915
 
@@ -1132,38 +1010,6 @@ class Sheets:
1132
1010
 
1133
1011
  return response
1134
1012
 
1135
- @deprecated
1136
- def update_share(self, sheet_id, share_id, share_obj) -> Union[Result[Share], Error]:
1137
- """Update the access level of a User or Group for the specified Sheet.
1138
-
1139
- Args:
1140
- sheet_id (int): Sheet ID
1141
- share_id (str): Share ID
1142
- share_obj (Share): Share object.
1143
-
1144
- Returns:
1145
- Union[Result[Share], Error]: The result of the operation, or an Error object if the request fails.
1146
-
1147
- Deprecated:
1148
- Use sharing.update_share instead with assetType=AssetType.SHEET
1149
- """
1150
- if not all(val is not None for val in ["sheet_id", "share_id", "share_obj"]):
1151
- raise ValueError(
1152
- ("One or more required values are missing from call to " + __name__)
1153
- )
1154
-
1155
- _op = fresh_operation("update_share")
1156
- _op["method"] = "PUT"
1157
- _op["path"] = "/sheets/" + str(sheet_id) + "/shares/" + str(share_id)
1158
- _op["json"] = share_obj
1159
-
1160
- expected = ["Result", "Share"]
1161
-
1162
- prepped_request = self._base.prepare_request(_op)
1163
- response = self._base.request(prepped_request, expected, _op)
1164
-
1165
- return response
1166
-
1167
1013
  def update_sheet(self, sheet_id, sheet_obj) -> Union[Result[Sheet], Error]:
1168
1014
  """Updates the specified Sheet.
1169
1015