smartsheet-python-sdk 3.5.2__tar.gz → 3.5.4__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.
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/CHANGELOG.md +16 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/PKG-INFO +28 -4
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/setup.py +1 -1
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/__init__.py +1 -0
- smartsheet_python_sdk-3.5.4/smartsheet/models/asset_share.py +138 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/asset_shares_paginated_result.py +2 -2
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/sharing.py +5 -5
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/version.py +2 -2
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/PKG-INFO +29 -5
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/SOURCES.txt +6 -1
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/top_level.txt +0 -1
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_sharing.py +67 -64
- smartsheet_python_sdk-3.5.4/tests/mock_api/users/common_test_constants.py +4 -0
- smartsheet_python_sdk-3.5.4/tests/mock_api/users/test_list_user_plans.py +110 -0
- smartsheet_python_sdk-3.5.4/tests/mock_api/users/test_list_users.py +147 -0
- smartsheet_python_sdk-3.5.4/tests/mock_api/users/test_user_upgrade_downgrade.py +147 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.gitchangelog.rc +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.gitchangelog.tpl +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/pull_request_template.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/workflows/publish-distribution.yaml +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/workflows/publish-documentation.yaml +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.github/workflows/test-build.yaml +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.gitignore +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/.markdownlint.json +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/ADVANCED.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/CONTRIBUTING.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/LICENSE.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/Makefile +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/NOTICE +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/README.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/docs-source/Makefile +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/docs-source/conf.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/docs-source/index.rst +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/pylintrc +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/setup.cfg +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/__init__.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/attachments.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/cells.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/contacts.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/discussions.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/events.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/exceptions.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/favorites.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/folders.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/groups.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/home.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/images.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/access_token.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/account.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/alternate_email.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/attachment.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/auto_number_format.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/automation_action.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/automation_rule.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/boolean_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/bulk_item_failure.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/bulk_item_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cell.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cell_data_item.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cell_history.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cell_link.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cell_link_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/chart_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/column.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/comment.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/contact.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/contact_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/container_destination.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/copy_or_move_row_destination.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/copy_or_move_row_directive.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/copy_or_move_row_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/criteria.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/cross_sheet_reference.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/currency.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/date_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/datetime_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/discussion.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/downloaded_file.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/duration.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/email.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/__init__.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/access_level.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/asset_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/attachment_parent_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/attachment_sub_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/attachment_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/automation_action_frequency.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/automation_action_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/automation_rule_disabled_reason.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/cell_link_status.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/column_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/criteria_target.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/cross_sheet_reference_status.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/currency_code.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/day_descriptors.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/day_ordinal.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/event_action.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/event_obejct_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/event_source.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/global_template.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/operator.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/paper_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/predecessor_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/publish_accessible_by.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/schedule_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/seat_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/share_scope.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/share_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/sheet_email_format.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/sheet_filter_operator.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/sheet_filter_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/sort_direction.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/symbol.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/system_column_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/update_request_status.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/user_status.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/enums/widget_type.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/error.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/error_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/event.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/event_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/explicit_null.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/favorite.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/folder.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/font_family.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/format_details.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/format_tables.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/group.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/group_member.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/home.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/hyperlink.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/image.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/image_url.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/image_url_map.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/image_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/index_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/json_object.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/multi_contact_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/multi_picklist_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/multi_row_email.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/number_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/o_auth_error.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/paginated_children_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/predecessor.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/predecessor_list.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/primitive_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/profile_image.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/project_settings.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/recipient.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report_cell.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report_column.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report_publish.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report_row.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/report_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/row.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/row_email.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/row_mapping.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/schedule.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/scope.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/search_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/search_result_item.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/selection_range.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sent_update_request.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/server_info.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/share.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_email.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_filter.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_filter_details.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_publish.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_summary.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_user_permissions.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sheet_user_settings.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/shortcut_data_item.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/shortcut_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sight.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sight_publish.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sort_criterion.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/sort_specifier.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/source.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/string_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/summary_field.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/template.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/title_rich_text_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/token_paginated_result.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/update_request.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/user.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/user_model.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/user_plan.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/user_profile.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/version.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/web_content_widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/webhook.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/webhook_secret.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/webhook_stats.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/webhook_subscope.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/widget.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/widget_content.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/widget_hyperlink.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/models/workspace.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/passthrough.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/reports.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/search.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/server.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/session.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/sheets.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/sights.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/smartsheet.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/templates.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/token.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/types.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/users.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/util.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/webhooks.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet/workspaces.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/dependency_links.txt +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/requires.txt +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/__init__.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/README.md +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/conftest.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/calling_all_curs.txt +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/curly.jpg +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/moe-curly.jpg +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/quote.txt +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/stooges_v1.jpg +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/fixtures/stooges_v2.jpg +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_attachments.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_columns.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_contacts.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_cross_sheet_references.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_discussions.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_events.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_favorites.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_folders.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_groups.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_home.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_model_attributes.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_multi_picklist.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_object_value.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_passthrough.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_regression.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_reports.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_rows.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_server_info.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_sharing.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_sheet_summary.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_sheets.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_templates.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_update_requests.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_users.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_webhooks.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_workspaces.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/integration/test_zsearch.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/__init__.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/mock_api_test_helper.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_automation_rules.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_columns.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_folders.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_rows.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_sheets.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_sights.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_workspaces.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_change_agent.py +0 -0
- {smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_serialization.py +0 -0
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.5.4] - 2025-10-31
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- [Issue-92](https://github.com/smartsheet/smartsheet-python-sdk/issues/92): Only include the `smartsheet` package in the build.
|
|
13
|
+
|
|
14
|
+
## [3.5.3] - 2025-10-31
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- The new sharing endpoints (/2.0/shares) return string for userId and groupId, adjust the SDK to that.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- `AssetShare` model to fully comply with the new sharing endpoints (/2.0/shares) DTO.
|
|
23
|
+
|
|
8
24
|
## [3.5.2] - 2025-10-29
|
|
9
25
|
|
|
10
26
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: smartsheet_python_sdk
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.4
|
|
4
4
|
Summary: Library that uses Python to connect to Smartsheet services (using API 2.0).
|
|
5
5
|
Home-page: http://smartsheet-platform.github.io/api-docs/
|
|
6
6
|
Author: Smartsheet
|
|
@@ -20,10 +20,34 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
|
-
Provides-Extra: test
|
|
24
|
-
Provides-Extra: develop
|
|
25
23
|
License-File: LICENSE.md
|
|
26
24
|
License-File: NOTICE
|
|
25
|
+
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: requests-toolbelt
|
|
27
|
+
Requires-Dist: six>=1.9
|
|
28
|
+
Requires-Dist: certifi
|
|
29
|
+
Requires-Dist: python-dateutil
|
|
30
|
+
Provides-Extra: test
|
|
31
|
+
Requires-Dist: coverage; extra == "test"
|
|
32
|
+
Requires-Dist: coveralls; extra == "test"
|
|
33
|
+
Requires-Dist: pytest; extra == "test"
|
|
34
|
+
Provides-Extra: develop
|
|
35
|
+
Requires-Dist: coverage; extra == "develop"
|
|
36
|
+
Requires-Dist: coveralls[yaml]; extra == "develop"
|
|
37
|
+
Requires-Dist: pytest; extra == "develop"
|
|
38
|
+
Requires-Dist: pytest-instafail; extra == "develop"
|
|
39
|
+
Dynamic: author
|
|
40
|
+
Dynamic: author-email
|
|
41
|
+
Dynamic: classifier
|
|
42
|
+
Dynamic: description
|
|
43
|
+
Dynamic: description-content-type
|
|
44
|
+
Dynamic: home-page
|
|
45
|
+
Dynamic: keywords
|
|
46
|
+
Dynamic: license
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
Dynamic: provides-extra
|
|
49
|
+
Dynamic: requires-dist
|
|
50
|
+
Dynamic: summary
|
|
27
51
|
|
|
28
52
|
# Smartsheet Python SDK
|
|
29
53
|
|
|
@@ -65,7 +65,7 @@ setup(
|
|
|
65
65
|
},
|
|
66
66
|
setup_requires=['setuptools_scm==7.0.1'],
|
|
67
67
|
install_requires=REQUIRES,
|
|
68
|
-
packages=find_packages(),
|
|
68
|
+
packages=find_packages(include=['smartsheet', 'smartsheet.*']),
|
|
69
69
|
include_package_data=True,
|
|
70
70
|
long_description=open('README.md').read(),
|
|
71
71
|
long_description_content_type='text/markdown',
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101
|
|
2
|
+
# Smartsheet Python SDK.
|
|
3
|
+
#
|
|
4
|
+
# Copyright 2018 Smartsheet.com, Inc.
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License"): you may
|
|
7
|
+
# not use this file except in compliance with the License. You may obtain
|
|
8
|
+
# a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15
|
+
# License for the specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
from __future__ import absolute_import
|
|
19
|
+
|
|
20
|
+
from ..types import EnumeratedValue, String, json
|
|
21
|
+
from ..util import deserialize, serialize
|
|
22
|
+
from .enums import AccessLevel, ShareScope, ShareType
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AssetShare:
|
|
26
|
+
|
|
27
|
+
"""Smartsheet AssetShare data model."""
|
|
28
|
+
|
|
29
|
+
def __init__(self, props=None, base_obj=None):
|
|
30
|
+
"""Initialize the AssetShare model."""
|
|
31
|
+
self._base = None
|
|
32
|
+
if base_obj is not None:
|
|
33
|
+
self._base = base_obj
|
|
34
|
+
|
|
35
|
+
self._access_level = EnumeratedValue(AccessLevel)
|
|
36
|
+
self._email = String()
|
|
37
|
+
self._group_id = String()
|
|
38
|
+
self._id_ = String()
|
|
39
|
+
self._name = String()
|
|
40
|
+
self._scope = EnumeratedValue(ShareScope)
|
|
41
|
+
self._type_ = EnumeratedValue(ShareType)
|
|
42
|
+
self._user_id = String()
|
|
43
|
+
|
|
44
|
+
if props:
|
|
45
|
+
deserialize(self, props)
|
|
46
|
+
|
|
47
|
+
# requests package Response object
|
|
48
|
+
self.request_response = None
|
|
49
|
+
self.__initialized = True
|
|
50
|
+
|
|
51
|
+
def __getattr__(self, key):
|
|
52
|
+
if key == "id":
|
|
53
|
+
return self.id_
|
|
54
|
+
elif key == "type":
|
|
55
|
+
return self.type_
|
|
56
|
+
else:
|
|
57
|
+
raise AttributeError(key)
|
|
58
|
+
|
|
59
|
+
def __setattr__(self, key, value):
|
|
60
|
+
if key == "id":
|
|
61
|
+
self.id_ = value
|
|
62
|
+
elif key == "type":
|
|
63
|
+
self.type_ = value
|
|
64
|
+
else:
|
|
65
|
+
super().__setattr__(key, value)
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
def access_level(self):
|
|
69
|
+
return self._access_level
|
|
70
|
+
|
|
71
|
+
@access_level.setter
|
|
72
|
+
def access_level(self, value):
|
|
73
|
+
self._access_level.set(value)
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def email(self):
|
|
77
|
+
return self._email.value
|
|
78
|
+
|
|
79
|
+
@email.setter
|
|
80
|
+
def email(self, value):
|
|
81
|
+
self._email.value = value
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def group_id(self):
|
|
85
|
+
return self._group_id.value
|
|
86
|
+
|
|
87
|
+
@group_id.setter
|
|
88
|
+
def group_id(self, value):
|
|
89
|
+
self._group_id.value = value
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def id_(self):
|
|
93
|
+
return self._id_.value
|
|
94
|
+
|
|
95
|
+
@id_.setter
|
|
96
|
+
def id_(self, value):
|
|
97
|
+
self._id_.value = value
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def name(self):
|
|
101
|
+
return self._name.value
|
|
102
|
+
|
|
103
|
+
@name.setter
|
|
104
|
+
def name(self, value):
|
|
105
|
+
self._name.value = value
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def scope(self):
|
|
109
|
+
return self._scope
|
|
110
|
+
|
|
111
|
+
@scope.setter
|
|
112
|
+
def scope(self, value):
|
|
113
|
+
self._scope.set(value)
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def type_(self):
|
|
117
|
+
return self._type_
|
|
118
|
+
|
|
119
|
+
@type_.setter
|
|
120
|
+
def type_(self, value):
|
|
121
|
+
self._type_.set(value)
|
|
122
|
+
|
|
123
|
+
@property
|
|
124
|
+
def user_id(self):
|
|
125
|
+
return self._user_id.value
|
|
126
|
+
|
|
127
|
+
@user_id.setter
|
|
128
|
+
def user_id(self, value):
|
|
129
|
+
self._user_id.value = value
|
|
130
|
+
|
|
131
|
+
def to_dict(self):
|
|
132
|
+
return serialize(self)
|
|
133
|
+
|
|
134
|
+
def to_json(self):
|
|
135
|
+
return json.dumps(self.to_dict())
|
|
136
|
+
|
|
137
|
+
def __str__(self):
|
|
138
|
+
return self.to_json()
|
|
@@ -20,7 +20,7 @@ from __future__ import absolute_import
|
|
|
20
20
|
from typing import TypeVar, List
|
|
21
21
|
from ..types import String, json, TypedList, importlib
|
|
22
22
|
from ..util import deserialize, serialize
|
|
23
|
-
from . import
|
|
23
|
+
from .asset_share import AssetShare
|
|
24
24
|
|
|
25
25
|
T = TypeVar('T')
|
|
26
26
|
|
|
@@ -52,7 +52,7 @@ class AssetSharesPaginatedResult:
|
|
|
52
52
|
self.__initialized = True
|
|
53
53
|
|
|
54
54
|
@property
|
|
55
|
-
def items(self) -> List[
|
|
55
|
+
def items(self) -> List[AssetShare]:
|
|
56
56
|
return self._items
|
|
57
57
|
|
|
58
58
|
@items.setter
|
|
@@ -54,7 +54,7 @@ class Sharing:
|
|
|
54
54
|
_op['query_params']['lastKey'] = last_key
|
|
55
55
|
_op['query_params']['sharingInclude'] = sharing_include.name if sharing_include else None
|
|
56
56
|
|
|
57
|
-
expected = ['AssetSharesPaginatedResult', '
|
|
57
|
+
expected = ['AssetSharesPaginatedResult', 'AssetShare']
|
|
58
58
|
|
|
59
59
|
prepped_request = self._base.prepare_request(_op)
|
|
60
60
|
response = self._base.request(prepped_request, expected, _op)
|
|
@@ -70,7 +70,7 @@ class Sharing:
|
|
|
70
70
|
share_id (str): Share ID
|
|
71
71
|
|
|
72
72
|
Returns:
|
|
73
|
-
|
|
73
|
+
AssetShare
|
|
74
74
|
"""
|
|
75
75
|
_op = fresh_operation('get_asset_share')
|
|
76
76
|
_op['method'] = 'GET'
|
|
@@ -78,7 +78,7 @@ class Sharing:
|
|
|
78
78
|
_op['query_params']['assetType'] = asset_type
|
|
79
79
|
_op['query_params']['assetId'] = asset_id
|
|
80
80
|
|
|
81
|
-
expected = '
|
|
81
|
+
expected = 'AssetShare'
|
|
82
82
|
prepped_request = self._base.prepare_request(_op)
|
|
83
83
|
response = self._base.request(prepped_request, expected, _op)
|
|
84
84
|
|
|
@@ -106,7 +106,7 @@ class Sharing:
|
|
|
106
106
|
_op['query_params']['sendEmail'] = send_email
|
|
107
107
|
_op['json'] = share_obj
|
|
108
108
|
|
|
109
|
-
expected = ['Result', '
|
|
109
|
+
expected = ['Result', 'AssetShare']
|
|
110
110
|
|
|
111
111
|
prepped_request = self._base.prepare_request(_op)
|
|
112
112
|
response = self._base.request(prepped_request, expected, _op)
|
|
@@ -132,7 +132,7 @@ class Sharing:
|
|
|
132
132
|
_op['query_params']['assetId'] = asset_id
|
|
133
133
|
_op['json'] = share_obj
|
|
134
134
|
|
|
135
|
-
expected = '
|
|
135
|
+
expected = 'AssetShare'
|
|
136
136
|
|
|
137
137
|
prepped_request = self._base.prepare_request(_op)
|
|
138
138
|
response = self._base.request(prepped_request, expected, _op)
|
{smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/smartsheet_python_sdk.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 3.5.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: smartsheet_python_sdk
|
|
3
|
+
Version: 3.5.4
|
|
4
4
|
Summary: Library that uses Python to connect to Smartsheet services (using API 2.0).
|
|
5
5
|
Home-page: http://smartsheet-platform.github.io/api-docs/
|
|
6
6
|
Author: Smartsheet
|
|
@@ -20,10 +20,34 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
20
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
21
|
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
|
-
Provides-Extra: test
|
|
24
|
-
Provides-Extra: develop
|
|
25
23
|
License-File: LICENSE.md
|
|
26
24
|
License-File: NOTICE
|
|
25
|
+
Requires-Dist: requests
|
|
26
|
+
Requires-Dist: requests-toolbelt
|
|
27
|
+
Requires-Dist: six>=1.9
|
|
28
|
+
Requires-Dist: certifi
|
|
29
|
+
Requires-Dist: python-dateutil
|
|
30
|
+
Provides-Extra: test
|
|
31
|
+
Requires-Dist: coverage; extra == "test"
|
|
32
|
+
Requires-Dist: coveralls; extra == "test"
|
|
33
|
+
Requires-Dist: pytest; extra == "test"
|
|
34
|
+
Provides-Extra: develop
|
|
35
|
+
Requires-Dist: coverage; extra == "develop"
|
|
36
|
+
Requires-Dist: coveralls[yaml]; extra == "develop"
|
|
37
|
+
Requires-Dist: pytest; extra == "develop"
|
|
38
|
+
Requires-Dist: pytest-instafail; extra == "develop"
|
|
39
|
+
Dynamic: author
|
|
40
|
+
Dynamic: author-email
|
|
41
|
+
Dynamic: classifier
|
|
42
|
+
Dynamic: description
|
|
43
|
+
Dynamic: description-content-type
|
|
44
|
+
Dynamic: home-page
|
|
45
|
+
Dynamic: keywords
|
|
46
|
+
Dynamic: license
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
Dynamic: provides-extra
|
|
49
|
+
Dynamic: requires-dist
|
|
50
|
+
Dynamic: summary
|
|
27
51
|
|
|
28
52
|
# Smartsheet Python SDK
|
|
29
53
|
|
|
@@ -55,6 +55,7 @@ smartsheet/models/__init__.py
|
|
|
55
55
|
smartsheet/models/access_token.py
|
|
56
56
|
smartsheet/models/account.py
|
|
57
57
|
smartsheet/models/alternate_email.py
|
|
58
|
+
smartsheet/models/asset_share.py
|
|
58
59
|
smartsheet/models/asset_shares_paginated_result.py
|
|
59
60
|
smartsheet/models/attachment.py
|
|
60
61
|
smartsheet/models/auto_number_format.py
|
|
@@ -261,4 +262,8 @@ tests/mock_api/test_mock_api_sheets.py
|
|
|
261
262
|
tests/mock_api/test_mock_api_sights.py
|
|
262
263
|
tests/mock_api/test_mock_api_workspaces.py
|
|
263
264
|
tests/mock_api/test_mock_change_agent.py
|
|
264
|
-
tests/mock_api/test_mock_serialization.py
|
|
265
|
+
tests/mock_api/test_mock_serialization.py
|
|
266
|
+
tests/mock_api/users/common_test_constants.py
|
|
267
|
+
tests/mock_api/users/test_list_user_plans.py
|
|
268
|
+
tests/mock_api/users/test_list_users.py
|
|
269
|
+
tests/mock_api/users/test_user_upgrade_downgrade.py
|
{smartsheet_python_sdk-3.5.2 → smartsheet_python_sdk-3.5.4}/tests/mock_api/test_mock_api_sharing.py
RENAMED
|
@@ -4,7 +4,7 @@ from urllib.parse import urlparse, parse_qs
|
|
|
4
4
|
|
|
5
5
|
import pytest
|
|
6
6
|
from smartsheet.models.enums import AssetType, AccessLevel, ShareScope, ShareType
|
|
7
|
-
from smartsheet.models import
|
|
7
|
+
from smartsheet.models import AssetShare, AssetSharesPaginatedResult, Error
|
|
8
8
|
from tests.mock_api.mock_api_test_helper import (
|
|
9
9
|
get_mock_api_client,
|
|
10
10
|
get_wiremock_request,
|
|
@@ -16,8 +16,8 @@ TEST_ASSET_ID = "AAAMCmYGFOeE"
|
|
|
16
16
|
TEST_SHARE_ID = "AAABbbbCccDdd"
|
|
17
17
|
TEST_ASSET_TYPE = AssetType.SHEET
|
|
18
18
|
TEST_EMAIL = "test.email@smartsheet.com"
|
|
19
|
-
TEST_USER_ID = 9876543210
|
|
20
|
-
TEST_GROUP_ID = 1234567890
|
|
19
|
+
TEST_USER_ID = "9876543210"
|
|
20
|
+
TEST_GROUP_ID = "1234567890"
|
|
21
21
|
TEST_NAME = "Example Name"
|
|
22
22
|
TEST_SHARE_TYPE = ShareType.USER
|
|
23
23
|
TEST_ACCESS_LEVEL = AccessLevel.ADMIN
|
|
@@ -25,11 +25,14 @@ TEST_SCOPE = ShareScope.ITEM
|
|
|
25
25
|
TEST_MAX_ITEMS = 100
|
|
26
26
|
TEST_LAST_KEY = "test_last_key"
|
|
27
27
|
TEST_LAST_KEY_RESPONSE = "abcDefGhIjKlMnOpQrStUvWxYz"
|
|
28
|
+
TEST_SUCCESS_MESSAGE = "SUCCESS"
|
|
29
|
+
TEST_SUCCESS_RESULT_CODE = 0
|
|
30
|
+
TEST_SEND_EMAIL = False
|
|
28
31
|
|
|
29
32
|
|
|
30
33
|
def assert_share_properties(share, include_name=True):
|
|
31
34
|
"""Helper function to assert common share properties."""
|
|
32
|
-
assert isinstance(share,
|
|
35
|
+
assert isinstance(share, AssetShare)
|
|
33
36
|
assert share.id == TEST_ASSET_ID
|
|
34
37
|
assert share.email == TEST_EMAIL
|
|
35
38
|
assert share.user_id == TEST_USER_ID
|
|
@@ -43,10 +46,10 @@ def assert_share_properties(share, include_name=True):
|
|
|
43
46
|
assert share.scope == TEST_SCOPE
|
|
44
47
|
|
|
45
48
|
|
|
46
|
-
@pytest.fixture
|
|
47
|
-
def
|
|
48
|
-
"""Pytest fixture to create a test
|
|
49
|
-
return
|
|
49
|
+
@pytest.fixture(name="test_share")
|
|
50
|
+
def test_share_fixture():
|
|
51
|
+
"""Pytest fixture to create a test AssetShare object."""
|
|
52
|
+
return AssetShare({"email": TEST_EMAIL, "access_level": TEST_ACCESS_LEVEL})
|
|
50
53
|
|
|
51
54
|
|
|
52
55
|
def test_list_asset_shares_generated_url_is_correct():
|
|
@@ -56,22 +59,22 @@ def test_list_asset_shares_generated_url_is_correct():
|
|
|
56
59
|
)
|
|
57
60
|
|
|
58
61
|
client.Sharing.list_asset_shares(
|
|
59
|
-
asset_type=
|
|
60
|
-
asset_id=
|
|
61
|
-
max_items=
|
|
62
|
-
last_key=
|
|
63
|
-
sharing_include=
|
|
62
|
+
asset_type=TEST_ASSET_TYPE,
|
|
63
|
+
asset_id=TEST_ASSET_ID,
|
|
64
|
+
max_items=TEST_MAX_ITEMS,
|
|
65
|
+
last_key=TEST_LAST_KEY,
|
|
66
|
+
sharing_include=TEST_SCOPE,
|
|
64
67
|
)
|
|
65
68
|
|
|
66
69
|
wiremock_request = get_wiremock_request(request_id)
|
|
67
70
|
url = urlparse(wiremock_request["absoluteUrl"])
|
|
68
71
|
query = parse_qs(url.query)
|
|
69
72
|
assert query == {
|
|
70
|
-
"assetType": [
|
|
71
|
-
"assetId": [
|
|
72
|
-
"maxItems": [
|
|
73
|
-
"lastKey": [
|
|
74
|
-
"sharingInclude": [
|
|
73
|
+
"assetType": [TEST_ASSET_TYPE.value],
|
|
74
|
+
"assetId": [TEST_ASSET_ID],
|
|
75
|
+
"maxItems": [str(TEST_MAX_ITEMS)],
|
|
76
|
+
"lastKey": [TEST_LAST_KEY],
|
|
77
|
+
"sharingInclude": [TEST_SCOPE.name],
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
|
|
@@ -82,25 +85,25 @@ def test_list_asset_shares_all_response_properties():
|
|
|
82
85
|
)
|
|
83
86
|
|
|
84
87
|
response = client.Sharing.list_asset_shares(
|
|
85
|
-
asset_type=
|
|
88
|
+
asset_type=TEST_ASSET_TYPE, asset_id=TEST_ASSET_ID
|
|
86
89
|
)
|
|
87
90
|
|
|
88
91
|
assert isinstance(response, AssetSharesPaginatedResult)
|
|
89
92
|
|
|
90
|
-
assert response.last_key ==
|
|
93
|
+
assert response.last_key == TEST_LAST_KEY_RESPONSE
|
|
91
94
|
assert len(response.items) == 1
|
|
92
95
|
|
|
93
96
|
share = response.items[0]
|
|
94
|
-
assert isinstance(share,
|
|
97
|
+
assert isinstance(share, AssetShare)
|
|
95
98
|
|
|
96
|
-
assert share.id ==
|
|
97
|
-
assert share.email ==
|
|
98
|
-
assert share.user_id ==
|
|
99
|
-
assert share.group_id ==
|
|
100
|
-
assert share.name ==
|
|
101
|
-
assert share.type ==
|
|
102
|
-
assert share.access_level ==
|
|
103
|
-
assert share.scope ==
|
|
99
|
+
assert share.id == TEST_ASSET_ID
|
|
100
|
+
assert share.email == TEST_EMAIL
|
|
101
|
+
assert share.user_id == TEST_USER_ID
|
|
102
|
+
assert share.group_id == TEST_GROUP_ID
|
|
103
|
+
assert share.name == TEST_NAME
|
|
104
|
+
assert share.type == TEST_SHARE_TYPE
|
|
105
|
+
assert share.access_level == TEST_ACCESS_LEVEL
|
|
106
|
+
assert share.scope == TEST_SCOPE
|
|
104
107
|
|
|
105
108
|
|
|
106
109
|
def test_list_asset_shares_required_response_properties():
|
|
@@ -110,7 +113,7 @@ def test_list_asset_shares_required_response_properties():
|
|
|
110
113
|
)
|
|
111
114
|
|
|
112
115
|
response = client.Sharing.list_asset_shares(
|
|
113
|
-
asset_type=
|
|
116
|
+
asset_type=TEST_ASSET_TYPE, asset_id=TEST_ASSET_ID
|
|
114
117
|
)
|
|
115
118
|
|
|
116
119
|
assert isinstance(response, AssetSharesPaginatedResult)
|
|
@@ -119,16 +122,16 @@ def test_list_asset_shares_required_response_properties():
|
|
|
119
122
|
assert len(response.items) == 1
|
|
120
123
|
|
|
121
124
|
share = response.items[0]
|
|
122
|
-
assert isinstance(share,
|
|
125
|
+
assert isinstance(share, AssetShare)
|
|
123
126
|
|
|
124
|
-
assert share.id ==
|
|
125
|
-
assert share.email ==
|
|
126
|
-
assert share.user_id ==
|
|
127
|
-
assert share.group_id ==
|
|
127
|
+
assert share.id == TEST_ASSET_ID
|
|
128
|
+
assert share.email == TEST_EMAIL
|
|
129
|
+
assert share.user_id == TEST_USER_ID
|
|
130
|
+
assert share.group_id == TEST_GROUP_ID
|
|
128
131
|
assert share.name is None
|
|
129
|
-
assert share.type ==
|
|
130
|
-
assert share.access_level ==
|
|
131
|
-
assert share.scope ==
|
|
132
|
+
assert share.type == TEST_SHARE_TYPE
|
|
133
|
+
assert share.access_level == TEST_ACCESS_LEVEL
|
|
134
|
+
assert share.scope == TEST_SCOPE
|
|
132
135
|
|
|
133
136
|
def test_list_asset_shares_error_4xx():
|
|
134
137
|
request_id = uuid.uuid4().hex
|
|
@@ -137,11 +140,11 @@ def test_list_asset_shares_error_4xx():
|
|
|
137
140
|
)
|
|
138
141
|
|
|
139
142
|
response = client.Sharing.list_asset_shares(
|
|
140
|
-
asset_type=
|
|
141
|
-
asset_id=
|
|
142
|
-
max_items=
|
|
143
|
-
last_key=
|
|
144
|
-
sharing_include=
|
|
143
|
+
asset_type=TEST_ASSET_TYPE,
|
|
144
|
+
asset_id=TEST_ASSET_ID,
|
|
145
|
+
max_items=TEST_MAX_ITEMS,
|
|
146
|
+
last_key=TEST_LAST_KEY,
|
|
147
|
+
sharing_include=TEST_SCOPE,
|
|
145
148
|
)
|
|
146
149
|
|
|
147
150
|
assert isinstance(response, Error)
|
|
@@ -153,11 +156,11 @@ def test_list_asset_shares_error_5xx():
|
|
|
153
156
|
)
|
|
154
157
|
|
|
155
158
|
response = client.Sharing.list_asset_shares(
|
|
156
|
-
asset_type=
|
|
157
|
-
asset_id=
|
|
158
|
-
max_items=
|
|
159
|
-
last_key=
|
|
160
|
-
sharing_include=
|
|
159
|
+
asset_type=TEST_ASSET_TYPE,
|
|
160
|
+
asset_id=TEST_ASSET_ID,
|
|
161
|
+
max_items=TEST_MAX_ITEMS,
|
|
162
|
+
last_key=TEST_LAST_KEY,
|
|
163
|
+
sharing_include=TEST_SCOPE,
|
|
161
164
|
)
|
|
162
165
|
|
|
163
166
|
assert isinstance(response, Error)
|
|
@@ -177,7 +180,7 @@ def test_get_asset_share_generated_url_is_correct():
|
|
|
177
180
|
assert url.path == f'/2.0/shares/{TEST_SHARE_ID}'
|
|
178
181
|
query = parse_qs(url.query)
|
|
179
182
|
assert query == {
|
|
180
|
-
"assetType": [
|
|
183
|
+
"assetType": [TEST_ASSET_TYPE.value],
|
|
181
184
|
"assetId": [TEST_ASSET_ID],
|
|
182
185
|
}
|
|
183
186
|
|
|
@@ -248,9 +251,9 @@ def test_share_asset_generated_url_is_correct(test_share):
|
|
|
248
251
|
assert url.path == '/2.0/shares'
|
|
249
252
|
query = parse_qs(url.query)
|
|
250
253
|
assert query == {
|
|
251
|
-
"assetType": [
|
|
254
|
+
"assetType": [TEST_ASSET_TYPE.value],
|
|
252
255
|
"assetId": [TEST_ASSET_ID],
|
|
253
|
-
"sendEmail": [
|
|
256
|
+
"sendEmail": [str(TEST_SEND_EMAIL)]
|
|
254
257
|
}
|
|
255
258
|
|
|
256
259
|
def test_share_asset_all_response_properties(test_share):
|
|
@@ -275,7 +278,7 @@ def test_share_asset_all_response_properties(test_share):
|
|
|
275
278
|
|
|
276
279
|
wiremock_request = get_wiremock_request(request_id)
|
|
277
280
|
body = json.loads(wiremock_request["body"])
|
|
278
|
-
assert body == {"accessLevel":
|
|
281
|
+
assert body == {"accessLevel": TEST_ACCESS_LEVEL.name, "email": TEST_EMAIL}
|
|
279
282
|
|
|
280
283
|
|
|
281
284
|
def test_share_multiple_assets_all_response_properties(test_share):
|
|
@@ -302,7 +305,7 @@ def test_share_multiple_assets_all_response_properties(test_share):
|
|
|
302
305
|
|
|
303
306
|
wiremock_request = get_wiremock_request(request_id)
|
|
304
307
|
body = json.loads(wiremock_request["body"])
|
|
305
|
-
assert body == [{"accessLevel":
|
|
308
|
+
assert body == [{"accessLevel": TEST_ACCESS_LEVEL.name, "email": TEST_EMAIL}]
|
|
306
309
|
|
|
307
310
|
|
|
308
311
|
|
|
@@ -362,7 +365,7 @@ def test_update_asset_share_generated_url_is_correct():
|
|
|
362
365
|
"/sharing/update-asset-share/all-response-body-properties", request_id
|
|
363
366
|
)
|
|
364
367
|
|
|
365
|
-
share =
|
|
368
|
+
share = AssetShare({"access_level": TEST_ACCESS_LEVEL})
|
|
366
369
|
|
|
367
370
|
client.Sharing.update_asset_share(
|
|
368
371
|
share_obj=share,
|
|
@@ -376,7 +379,7 @@ def test_update_asset_share_generated_url_is_correct():
|
|
|
376
379
|
assert url.path == f'/2.0/shares/{TEST_SHARE_ID}'
|
|
377
380
|
query = parse_qs(url.query)
|
|
378
381
|
assert query == {
|
|
379
|
-
"assetType": [
|
|
382
|
+
"assetType": [TEST_ASSET_TYPE.value],
|
|
380
383
|
"assetId": [TEST_ASSET_ID],
|
|
381
384
|
}
|
|
382
385
|
|
|
@@ -386,7 +389,7 @@ def test_update_asset_share_all_response_properties():
|
|
|
386
389
|
"/sharing/update-asset-share/all-response-body-properties", request_id
|
|
387
390
|
)
|
|
388
391
|
|
|
389
|
-
share =
|
|
392
|
+
share = AssetShare({"access_level": TEST_ACCESS_LEVEL})
|
|
390
393
|
|
|
391
394
|
response = client.Sharing.update_asset_share(
|
|
392
395
|
share_obj=share,
|
|
@@ -395,7 +398,7 @@ def test_update_asset_share_all_response_properties():
|
|
|
395
398
|
share_id=TEST_SHARE_ID,
|
|
396
399
|
)
|
|
397
400
|
|
|
398
|
-
# Update returns the
|
|
401
|
+
# Update returns the AssetShare object directly, not wrapped in result
|
|
399
402
|
assert_share_properties(response, include_name=True)
|
|
400
403
|
|
|
401
404
|
|
|
@@ -405,7 +408,7 @@ def test_update_asset_share_required_response_properties():
|
|
|
405
408
|
"/sharing/update-asset-share/required-response-body-properties", request_id
|
|
406
409
|
)
|
|
407
410
|
|
|
408
|
-
share =
|
|
411
|
+
share = AssetShare({"access_level": TEST_ACCESS_LEVEL})
|
|
409
412
|
|
|
410
413
|
response = client.Sharing.update_asset_share(
|
|
411
414
|
share_obj=share,
|
|
@@ -414,7 +417,7 @@ def test_update_asset_share_required_response_properties():
|
|
|
414
417
|
share_id=TEST_SHARE_ID,
|
|
415
418
|
)
|
|
416
419
|
|
|
417
|
-
# Update returns the
|
|
420
|
+
# Update returns the AssetShare object directly, not wrapped in result
|
|
418
421
|
assert_share_properties(response, include_name=False)
|
|
419
422
|
|
|
420
423
|
def test_update_asset_share_error_4xx():
|
|
@@ -423,7 +426,7 @@ def test_update_asset_share_error_4xx():
|
|
|
423
426
|
"/errors/400-response", request_id
|
|
424
427
|
)
|
|
425
428
|
|
|
426
|
-
share =
|
|
429
|
+
share = AssetShare({"access_level": TEST_ACCESS_LEVEL})
|
|
427
430
|
|
|
428
431
|
response = client.Sharing.update_asset_share(
|
|
429
432
|
share_obj=share,
|
|
@@ -440,7 +443,7 @@ def test_update_asset_share_error_5xx():
|
|
|
440
443
|
"/errors/500-response", request_id
|
|
441
444
|
)
|
|
442
445
|
|
|
443
|
-
share =
|
|
446
|
+
share = AssetShare({"access_level": TEST_ACCESS_LEVEL})
|
|
444
447
|
|
|
445
448
|
response = client.Sharing.update_asset_share(
|
|
446
449
|
share_obj=share,
|
|
@@ -466,7 +469,7 @@ def test_delete_asset_share_generated_url_is_correct():
|
|
|
466
469
|
assert url.path == f'/2.0/shares/{TEST_SHARE_ID}'
|
|
467
470
|
query = parse_qs(url.query)
|
|
468
471
|
assert query == {
|
|
469
|
-
"assetType": [
|
|
472
|
+
"assetType": [TEST_ASSET_TYPE.value],
|
|
470
473
|
"assetId": [TEST_ASSET_ID],
|
|
471
474
|
}
|
|
472
475
|
|
|
@@ -480,8 +483,8 @@ def test_delete_asset_share_all_response_properties():
|
|
|
480
483
|
asset_type=TEST_ASSET_TYPE, asset_id=TEST_ASSET_ID, share_id=TEST_SHARE_ID
|
|
481
484
|
)
|
|
482
485
|
|
|
483
|
-
assert response.message ==
|
|
484
|
-
assert response.result_code ==
|
|
486
|
+
assert response.message == TEST_SUCCESS_MESSAGE
|
|
487
|
+
assert response.result_code == TEST_SUCCESS_RESULT_CODE
|
|
485
488
|
|
|
486
489
|
def test_delete_asset_share_error_4xx():
|
|
487
490
|
request_id = uuid.uuid4().hex
|