frameio 0.0.23__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of frameio might be problematic. Click here for more details.
- frameio/__init__.py +1115 -0
- frameio/account_permissions/__init__.py +4 -0
- frameio/account_permissions/client.py +182 -0
- frameio/account_permissions/raw_client.py +301 -0
- frameio/accounts/__init__.py +4 -0
- frameio/accounts/client.py +151 -0
- frameio/accounts/raw_client.py +281 -0
- frameio/client.py +439 -0
- frameio/comments/__init__.py +34 -0
- frameio/comments/client.py +596 -0
- frameio/comments/raw_client.py +1252 -0
- frameio/comments/types/__init__.py +38 -0
- frameio/comments/types/create_comment_params_data.py +25 -0
- frameio/comments/types/update_comment_params_data.py +25 -0
- frameio/core/__init__.py +110 -0
- frameio/core/api_error.py +23 -0
- frameio/core/client_wrapper.py +87 -0
- frameio/core/datetime_utils.py +28 -0
- frameio/core/file.py +67 -0
- frameio/core/force_multipart.py +18 -0
- frameio/core/http_client.py +543 -0
- frameio/core/http_response.py +55 -0
- frameio/core/jsonable_encoder.py +100 -0
- frameio/core/pagination.py +82 -0
- frameio/core/pydantic_utilities.py +258 -0
- frameio/core/query_encoder.py +58 -0
- frameio/core/remove_none_from_dict.py +11 -0
- frameio/core/request_options.py +35 -0
- frameio/core/serialization.py +276 -0
- frameio/environment.py +7 -0
- frameio/errors/__init__.py +53 -0
- frameio/errors/bad_request_error.py +11 -0
- frameio/errors/forbidden_error.py +11 -0
- frameio/errors/not_found_error.py +11 -0
- frameio/errors/too_many_requests_error.py +11 -0
- frameio/errors/unauthorized_error.py +11 -0
- frameio/errors/unprocessable_entity_error.py +10 -0
- frameio/files/__init__.py +55 -0
- frameio/files/client.py +1136 -0
- frameio/files/raw_client.py +2492 -0
- frameio/files/types/__init__.py +53 -0
- frameio/files/types/file_copy_params_data.py +15 -0
- frameio/files/types/file_create_local_upload_params_data.py +20 -0
- frameio/files/types/file_create_params_data.py +31 -0
- frameio/files/types/file_create_remote_upload_params_data.py +20 -0
- frameio/files/types/file_move_params_data.py +15 -0
- frameio/files/types/file_update_params_data.py +15 -0
- frameio/folders/__init__.py +39 -0
- frameio/folders/client.py +988 -0
- frameio/folders/raw_client.py +2058 -0
- frameio/folders/types/__init__.py +42 -0
- frameio/folders/types/folder_copy_params_data.py +15 -0
- frameio/folders/types/folder_create_params_data.py +15 -0
- frameio/folders/types/folder_move_params_data.py +15 -0
- frameio/folders/types/folder_update_params_data.py +15 -0
- frameio/metadata/__init__.py +37 -0
- frameio/metadata/client.py +291 -0
- frameio/metadata/raw_client.py +509 -0
- frameio/metadata/types/__init__.py +38 -0
- frameio/metadata/types/bulk_update_metadata_params_data.py +23 -0
- frameio/metadata/types/bulk_update_metadata_params_data_values_item.py +13 -0
- frameio/metadata_fields/__init__.py +103 -0
- frameio/metadata_fields/client.py +536 -0
- frameio/metadata_fields/raw_client.py +996 -0
- frameio/metadata_fields/types/__init__.py +105 -0
- frameio/metadata_fields/types/create_field_definition_params_data.py +108 -0
- frameio/metadata_fields/types/update_field_definition_params_data.py +114 -0
- frameio/project_permissions/__init__.py +4 -0
- frameio/project_permissions/client.py +415 -0
- frameio/project_permissions/raw_client.py +789 -0
- frameio/projects/__init__.py +4 -0
- frameio/projects/client.py +582 -0
- frameio/projects/raw_client.py +1250 -0
- frameio/py.typed +0 -0
- frameio/shares/__init__.py +64 -0
- frameio/shares/client.py +1192 -0
- frameio/shares/raw_client.py +2446 -0
- frameio/shares/types/__init__.py +61 -0
- frameio/shares/types/add_asset_params_data.py +15 -0
- frameio/shares/types/add_reviewers_to_share_params_data.py +18 -0
- frameio/shares/types/add_reviewers_to_share_params_data_reviewers.py +27 -0
- frameio/shares/types/create_share_params_data.py +25 -0
- frameio/shares/types/remove_reviewer_params_data.py +13 -0
- frameio/shares/types/remove_reviewer_params_data_reviewers.py +27 -0
- frameio/shares/types/update_share_params_data.py +33 -0
- frameio/shares/types/update_share_params_data_access.py +5 -0
- frameio/types/__init__.py +959 -0
- frameio/types/account.py +65 -0
- frameio/types/account_roles_item.py +5 -0
- frameio/types/account_user_role.py +23 -0
- frameio/types/account_user_role_role.py +5 -0
- frameio/types/account_user_roles_response.py +27 -0
- frameio/types/accounts_response.py +23 -0
- frameio/types/add_asset_response.py +13 -0
- frameio/types/add_asset_response_data.py +15 -0
- frameio/types/asset_common.py +48 -0
- frameio/types/asset_common_type.py +5 -0
- frameio/types/asset_common_with_includes.py +56 -0
- frameio/types/asset_include.py +5 -0
- frameio/types/asset_share_params.py +38 -0
- frameio/types/asset_share_params_access.py +5 -0
- frameio/types/asset_with_includes.py +72 -0
- frameio/types/assets_with_includes_response.py +23 -0
- frameio/types/bad_request.py +13 -0
- frameio/types/bad_request_errors_item.py +15 -0
- frameio/types/bad_request_errors_item_source.py +12 -0
- frameio/types/boolean_value.py +12 -0
- frameio/types/children_type.py +3 -0
- frameio/types/comment.py +52 -0
- frameio/types/comment_include.py +5 -0
- frameio/types/comment_response.py +13 -0
- frameio/types/comment_with_includes.py +17 -0
- frameio/types/comment_with_includes_response.py +13 -0
- frameio/types/comments_with_includes_response.py +23 -0
- frameio/types/date_definition.py +43 -0
- frameio/types/date_definition_field_configuration.py +21 -0
- frameio/types/date_definition_field_configuration_display_format.py +7 -0
- frameio/types/date_definition_field_configuration_time_format.py +5 -0
- frameio/types/date_definition_params.py +17 -0
- frameio/types/date_definition_params_field_configuration.py +23 -0
- frameio/types/date_definition_params_field_configuration_display_format.py +7 -0
- frameio/types/date_definition_params_field_configuration_time_format.py +7 -0
- frameio/types/date_definition_with_includes.py +13 -0
- frameio/types/date_value.py +12 -0
- frameio/types/email.py +3 -0
- frameio/types/field_definition.py +163 -0
- frameio/types/field_definition_include.py +5 -0
- frameio/types/field_definition_response.py +13 -0
- frameio/types/field_definition_with_includes.py +174 -0
- frameio/types/field_definitions_with_includes_response.py +27 -0
- frameio/types/field_value_common.py +29 -0
- frameio/types/file.py +60 -0
- frameio/types/file_copy_response.py +13 -0
- frameio/types/file_remote_upload_response.py +17 -0
- frameio/types/file_response.py +13 -0
- frameio/types/file_status.py +5 -0
- frameio/types/file_upload_status.py +41 -0
- frameio/types/file_upload_status_response.py +13 -0
- frameio/types/file_with_includes.py +25 -0
- frameio/types/file_with_includes_response.py +13 -0
- frameio/types/file_with_includes_status.py +5 -0
- frameio/types/file_with_media_links_include.py +19 -0
- frameio/types/file_with_upload_urls.py +16 -0
- frameio/types/file_with_upload_urls_response.py +13 -0
- frameio/types/folder.py +15 -0
- frameio/types/folder_copy_response.py +13 -0
- frameio/types/folder_response.py +13 -0
- frameio/types/folder_with_includes.py +61 -0
- frameio/types/folder_with_includes_response.py +13 -0
- frameio/types/folders_with_includes_response.py +23 -0
- frameio/types/forbidden.py +13 -0
- frameio/types/forbidden_errors_item.py +15 -0
- frameio/types/forbidden_errors_item_source.py +12 -0
- frameio/types/include.py +5 -0
- frameio/types/include_total_count.py +3 -0
- frameio/types/integer_value.py +12 -0
- frameio/types/json_error_response.py +13 -0
- frameio/types/json_error_response_errors_item.py +15 -0
- frameio/types/json_error_response_errors_item_source.py +12 -0
- frameio/types/links.py +22 -0
- frameio/types/long_text_definition.py +43 -0
- frameio/types/long_text_definition_field_configuration.py +10 -0
- frameio/types/long_text_definition_params.py +15 -0
- frameio/types/long_text_definition_with_includes.py +13 -0
- frameio/types/media_link_common.py +17 -0
- frameio/types/media_links_collection.py +23 -0
- frameio/types/metadata_field.py +145 -0
- frameio/types/metadata_response.py +13 -0
- frameio/types/metadata_with_definition.py +21 -0
- frameio/types/multi_select_value.py +14 -0
- frameio/types/multi_user_value.py +20 -0
- frameio/types/multi_user_value_member_options_type.py +5 -0
- frameio/types/no_content.py +3 -0
- frameio/types/not_found.py +13 -0
- frameio/types/not_found_errors_item.py +15 -0
- frameio/types/not_found_errors_item_source.py +12 -0
- frameio/types/number_definition.py +43 -0
- frameio/types/number_definition_field_configuration.py +21 -0
- frameio/types/number_definition_field_configuration_number_format.py +7 -0
- frameio/types/number_definition_params.py +17 -0
- frameio/types/number_definition_params_field_configuration.py +23 -0
- frameio/types/number_definition_params_field_configuration_number_format.py +7 -0
- frameio/types/number_definition_with_includes.py +13 -0
- frameio/types/number_value.py +12 -0
- frameio/types/original_media_link.py +16 -0
- frameio/types/profile.py +34 -0
- frameio/types/profile_response.py +17 -0
- frameio/types/project.py +55 -0
- frameio/types/project_include.py +5 -0
- frameio/types/project_params.py +17 -0
- frameio/types/project_params_data.py +15 -0
- frameio/types/project_response.py +17 -0
- frameio/types/project_with_includes.py +18 -0
- frameio/types/project_with_includes_response.py +17 -0
- frameio/types/projects_with_includes_response.py +27 -0
- frameio/types/rating_definition.py +43 -0
- frameio/types/rating_definition_field_configuration.py +22 -0
- frameio/types/rating_definition_field_configuration_style.py +5 -0
- frameio/types/rating_definition_params.py +17 -0
- frameio/types/rating_definition_params_field_configuration.py +22 -0
- frameio/types/rating_definition_params_field_configuration_style.py +5 -0
- frameio/types/rating_definition_with_includes.py +13 -0
- frameio/types/remove_asset_response.py +13 -0
- frameio/types/remove_asset_response_data.py +15 -0
- frameio/types/rendition_media_link.py +19 -0
- frameio/types/request_after_opaque_cursor.py +5 -0
- frameio/types/request_page_size.py +3 -0
- frameio/types/select_definition.py +43 -0
- frameio/types/select_definition_field_configuration.py +18 -0
- frameio/types/select_definition_field_configuration_options_item.py +22 -0
- frameio/types/select_definition_params.py +17 -0
- frameio/types/select_definition_params_field_configuration.py +20 -0
- frameio/types/select_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/select_definition_with_includes.py +13 -0
- frameio/types/select_multi_definition.py +43 -0
- frameio/types/select_multi_definition_field_configuration.py +18 -0
- frameio/types/select_multi_definition_field_configuration_options_item.py +22 -0
- frameio/types/select_multi_definition_params.py +17 -0
- frameio/types/select_multi_definition_params_field_configuration.py +20 -0
- frameio/types/select_multi_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/select_multi_definition_with_includes.py +13 -0
- frameio/types/select_option.py +20 -0
- frameio/types/select_value.py +14 -0
- frameio/types/share.py +66 -0
- frameio/types/share_access.py +5 -0
- frameio/types/share_response.py +13 -0
- frameio/types/share_reviewers_response.py +27 -0
- frameio/types/shares_response.py +27 -0
- frameio/types/single_user_value.py +20 -0
- frameio/types/single_user_value_member_options_type.py +5 -0
- frameio/types/text_definition.py +43 -0
- frameio/types/text_definition_field_configuration.py +10 -0
- frameio/types/text_definition_params.py +15 -0
- frameio/types/text_definition_with_includes.py +13 -0
- frameio/types/text_value.py +12 -0
- frameio/types/toggle_definition.py +43 -0
- frameio/types/toggle_definition_field_configuration.py +15 -0
- frameio/types/toggle_definition_params.py +17 -0
- frameio/types/toggle_definition_params_field_configuration.py +15 -0
- frameio/types/toggle_definition_with_includes.py +13 -0
- frameio/types/too_many_requests.py +13 -0
- frameio/types/too_many_requests_errors_item.py +15 -0
- frameio/types/too_many_requests_errors_item_source.py +12 -0
- frameio/types/unauthorized.py +13 -0
- frameio/types/unauthorized_errors_item.py +15 -0
- frameio/types/unauthorized_errors_item_source.py +12 -0
- frameio/types/unprocessable_entity.py +13 -0
- frameio/types/unprocessable_entity_errors_item.py +15 -0
- frameio/types/unprocessable_entity_errors_item_source.py +12 -0
- frameio/types/update_date_definition_params.py +17 -0
- frameio/types/update_date_definition_params_field_configuration.py +25 -0
- frameio/types/update_date_definition_params_field_configuration_display_format.py +7 -0
- frameio/types/update_date_definition_params_field_configuration_time_format.py +7 -0
- frameio/types/update_long_text_definition_params.py +15 -0
- frameio/types/update_number_definition_params.py +17 -0
- frameio/types/update_number_definition_params_field_configuration.py +25 -0
- frameio/types/update_number_definition_params_field_configuration_number_format.py +7 -0
- frameio/types/update_rating_definition_params.py +17 -0
- frameio/types/update_rating_definition_params_field_configuration.py +24 -0
- frameio/types/update_rating_definition_params_field_configuration_style.py +7 -0
- frameio/types/update_select_definition_params.py +17 -0
- frameio/types/update_select_definition_params_field_configuration.py +20 -0
- frameio/types/update_select_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/update_select_multi_definition_params.py +19 -0
- frameio/types/update_select_multi_definition_params_field_configuration.py +20 -0
- frameio/types/update_select_multi_definition_params_field_configuration_options_item.py +20 -0
- frameio/types/update_text_definition_params.py +15 -0
- frameio/types/update_toggle_definition_params.py +17 -0
- frameio/types/update_toggle_definition_params_field_configuration.py +15 -0
- frameio/types/update_user_multi_definition_params.py +17 -0
- frameio/types/update_user_multi_definition_params_field_configuration.py +25 -0
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/update_user_multi_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/update_user_multi_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/update_user_roles_params.py +17 -0
- frameio/types/update_user_roles_params_data.py +13 -0
- frameio/types/update_user_roles_params_data_role.py +7 -0
- frameio/types/update_user_roles_response.py +13 -0
- frameio/types/update_user_roles_response_data.py +13 -0
- frameio/types/update_user_roles_response_data_role.py +7 -0
- frameio/types/update_user_single_definition_params.py +17 -0
- frameio/types/update_user_single_definition_params_field_configuration.py +25 -0
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/update_user_single_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/update_user_single_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/upload_url.py +20 -0
- frameio/types/user.py +44 -0
- frameio/types/user_multi_definition.py +43 -0
- frameio/types/user_multi_definition_field_configuration.py +23 -0
- frameio/types/user_multi_definition_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_multi_definition_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_multi_definition_field_configuration_member_options_type.py +7 -0
- frameio/types/user_multi_definition_params.py +17 -0
- frameio/types/user_multi_definition_params_field_configuration.py +23 -0
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_multi_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_multi_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/user_multi_definition_with_includes.py +13 -0
- frameio/types/user_role.py +19 -0
- frameio/types/user_role_role.py +7 -0
- frameio/types/user_roles_response.py +27 -0
- frameio/types/user_single_definition.py +43 -0
- frameio/types/user_single_definition_field_configuration.py +23 -0
- frameio/types/user_single_definition_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_single_definition_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_single_definition_field_configuration_member_options_type.py +7 -0
- frameio/types/user_single_definition_params.py +17 -0
- frameio/types/user_single_definition_params_field_configuration.py +23 -0
- frameio/types/user_single_definition_params_field_configuration_custom_members_item.py +20 -0
- frameio/types/user_single_definition_params_field_configuration_custom_members_item_type.py +7 -0
- frameio/types/user_single_definition_params_field_configuration_member_options_type.py +7 -0
- frameio/types/user_single_definition_with_includes.py +13 -0
- frameio/types/user_value.py +18 -0
- frameio/types/user_value_type.py +5 -0
- frameio/types/uuid_.py +3 -0
- frameio/types/version_stack.py +50 -0
- frameio/types/version_stack_copy_response.py +13 -0
- frameio/types/version_stack_response.py +13 -0
- frameio/types/version_stack_with_includes.py +58 -0
- frameio/types/version_stack_with_includes_response.py +13 -0
- frameio/types/version_stacks_with_includes_response.py +19 -0
- frameio/types/webhook.py +36 -0
- frameio/types/webhook_create_response.py +17 -0
- frameio/types/webhook_create_response_data.py +15 -0
- frameio/types/webhook_events.py +5 -0
- frameio/types/webhook_response.py +13 -0
- frameio/types/webhook_with_includes.py +13 -0
- frameio/types/webhook_with_includes_response.py +13 -0
- frameio/types/webhooks_with_includes_response.py +23 -0
- frameio/types/workspace.py +40 -0
- frameio/types/workspace_include.py +5 -0
- frameio/types/workspace_params.py +17 -0
- frameio/types/workspace_params_data.py +15 -0
- frameio/types/workspace_response.py +17 -0
- frameio/types/workspace_with_includes.py +13 -0
- frameio/types/workspace_with_includes_response.py +17 -0
- frameio/types/workspaces_with_includes_response.py +27 -0
- frameio/users/__init__.py +4 -0
- frameio/users/client.py +100 -0
- frameio/users/raw_client.py +234 -0
- frameio/version.py +3 -0
- frameio/version_stacks/__init__.py +38 -0
- frameio/version_stacks/client.py +699 -0
- frameio/version_stacks/raw_client.py +1359 -0
- frameio/version_stacks/types/__init__.py +40 -0
- frameio/version_stacks/types/version_stack_copy_params_data.py +15 -0
- frameio/version_stacks/types/version_stack_create_params_data.py +19 -0
- frameio/version_stacks/types/version_stack_move_params_data.py +15 -0
- frameio/webhooks/__init__.py +34 -0
- frameio/webhooks/client.py +782 -0
- frameio/webhooks/raw_client.py +1312 -0
- frameio/webhooks/types/__init__.py +38 -0
- frameio/webhooks/types/webhook_create_params_data.py +18 -0
- frameio/webhooks/types/webhook_update_params_data.py +23 -0
- frameio/workspace_permissions/__init__.py +4 -0
- frameio/workspace_permissions/client.py +419 -0
- frameio/workspace_permissions/raw_client.py +789 -0
- frameio/workspaces/__init__.py +4 -0
- frameio/workspaces/client.py +552 -0
- frameio/workspaces/raw_client.py +1226 -0
- frameio-0.0.23.dist-info/METADATA +255 -0
- frameio-0.0.23.dist-info/RECORD +363 -0
- frameio-0.0.23.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ..core.request_options import RequestOptions
|
|
7
|
+
from ..types.include_total_count import IncludeTotalCount
|
|
8
|
+
from ..types.request_after_opaque_cursor import RequestAfterOpaqueCursor
|
|
9
|
+
from ..types.request_page_size import RequestPageSize
|
|
10
|
+
from ..types.update_user_roles_params_data import UpdateUserRolesParamsData
|
|
11
|
+
from ..types.update_user_roles_response import UpdateUserRolesResponse
|
|
12
|
+
from ..types.user_roles_response import UserRolesResponse
|
|
13
|
+
from ..types.uuid_ import Uuid
|
|
14
|
+
from .raw_client import AsyncRawProjectPermissionsClient, RawProjectPermissionsClient
|
|
15
|
+
|
|
16
|
+
# this is used as the default value for optional parameters
|
|
17
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ProjectPermissionsClient:
|
|
21
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
22
|
+
self._raw_client = RawProjectPermissionsClient(client_wrapper=client_wrapper)
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def with_raw_response(self) -> RawProjectPermissionsClient:
|
|
26
|
+
"""
|
|
27
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
28
|
+
|
|
29
|
+
Returns
|
|
30
|
+
-------
|
|
31
|
+
RawProjectPermissionsClient
|
|
32
|
+
"""
|
|
33
|
+
return self._raw_client
|
|
34
|
+
|
|
35
|
+
def index(
|
|
36
|
+
self,
|
|
37
|
+
account_id: Uuid,
|
|
38
|
+
project_id: Uuid,
|
|
39
|
+
*,
|
|
40
|
+
include_deactivated: typing.Optional[bool] = None,
|
|
41
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
42
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
43
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
44
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
45
|
+
) -> UserRolesResponse:
|
|
46
|
+
"""
|
|
47
|
+
List user roles for a given project. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account
|
|
48
|
+
|
|
49
|
+
Parameters
|
|
50
|
+
----------
|
|
51
|
+
account_id : Uuid
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
project_id : Uuid
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
include_deactivated : typing.Optional[bool]
|
|
58
|
+
Supports including deactivated users in the response. Default is false.
|
|
59
|
+
|
|
60
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
61
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
62
|
+
<br/>
|
|
63
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
64
|
+
|
|
65
|
+
page_size : typing.Optional[RequestPageSize]
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
request_options : typing.Optional[RequestOptions]
|
|
72
|
+
Request-specific configuration.
|
|
73
|
+
|
|
74
|
+
Returns
|
|
75
|
+
-------
|
|
76
|
+
UserRolesResponse
|
|
77
|
+
OK
|
|
78
|
+
|
|
79
|
+
Examples
|
|
80
|
+
--------
|
|
81
|
+
from frameio import Frameio
|
|
82
|
+
|
|
83
|
+
client = Frameio(
|
|
84
|
+
token="YOUR_TOKEN",
|
|
85
|
+
)
|
|
86
|
+
client.project_permissions.index(
|
|
87
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
88
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
89
|
+
include_deactivated=True,
|
|
90
|
+
after="<opaque_cursor>",
|
|
91
|
+
page_size=10,
|
|
92
|
+
include_total_count=False,
|
|
93
|
+
)
|
|
94
|
+
"""
|
|
95
|
+
_response = self._raw_client.index(
|
|
96
|
+
account_id,
|
|
97
|
+
project_id,
|
|
98
|
+
include_deactivated=include_deactivated,
|
|
99
|
+
after=after,
|
|
100
|
+
page_size=page_size,
|
|
101
|
+
include_total_count=include_total_count,
|
|
102
|
+
request_options=request_options,
|
|
103
|
+
)
|
|
104
|
+
return _response.data
|
|
105
|
+
|
|
106
|
+
def delete(
|
|
107
|
+
self,
|
|
108
|
+
account_id: Uuid,
|
|
109
|
+
project_id: Uuid,
|
|
110
|
+
user_id: Uuid,
|
|
111
|
+
*,
|
|
112
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
113
|
+
) -> None:
|
|
114
|
+
"""
|
|
115
|
+
Remove a user from a given project. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account
|
|
116
|
+
|
|
117
|
+
Parameters
|
|
118
|
+
----------
|
|
119
|
+
account_id : Uuid
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
project_id : Uuid
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
user_id : Uuid
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
request_options : typing.Optional[RequestOptions]
|
|
129
|
+
Request-specific configuration.
|
|
130
|
+
|
|
131
|
+
Returns
|
|
132
|
+
-------
|
|
133
|
+
None
|
|
134
|
+
|
|
135
|
+
Examples
|
|
136
|
+
--------
|
|
137
|
+
from frameio import Frameio
|
|
138
|
+
|
|
139
|
+
client = Frameio(
|
|
140
|
+
token="YOUR_TOKEN",
|
|
141
|
+
)
|
|
142
|
+
client.project_permissions.delete(
|
|
143
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
144
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
145
|
+
user_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
146
|
+
)
|
|
147
|
+
"""
|
|
148
|
+
_response = self._raw_client.delete(account_id, project_id, user_id, request_options=request_options)
|
|
149
|
+
return _response.data
|
|
150
|
+
|
|
151
|
+
def project_user_roles_update(
|
|
152
|
+
self,
|
|
153
|
+
account_id: Uuid,
|
|
154
|
+
project_id: Uuid,
|
|
155
|
+
user_id: Uuid,
|
|
156
|
+
*,
|
|
157
|
+
data: UpdateUserRolesParamsData,
|
|
158
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
159
|
+
) -> UpdateUserRolesResponse:
|
|
160
|
+
"""
|
|
161
|
+
Update user roles for the given project if the user is already added to the project. If the user is
|
|
162
|
+
not added to the project, the user will be added with the given role. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account
|
|
163
|
+
|
|
164
|
+
Parameters
|
|
165
|
+
----------
|
|
166
|
+
account_id : Uuid
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
project_id : Uuid
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
user_id : Uuid
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
data : UpdateUserRolesParamsData
|
|
176
|
+
|
|
177
|
+
request_options : typing.Optional[RequestOptions]
|
|
178
|
+
Request-specific configuration.
|
|
179
|
+
|
|
180
|
+
Returns
|
|
181
|
+
-------
|
|
182
|
+
UpdateUserRolesResponse
|
|
183
|
+
OK
|
|
184
|
+
|
|
185
|
+
Examples
|
|
186
|
+
--------
|
|
187
|
+
from frameio import Frameio, UpdateUserRolesParamsData
|
|
188
|
+
|
|
189
|
+
client = Frameio(
|
|
190
|
+
token="YOUR_TOKEN",
|
|
191
|
+
)
|
|
192
|
+
client.project_permissions.project_user_roles_update(
|
|
193
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
194
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
195
|
+
user_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
196
|
+
data=UpdateUserRolesParamsData(
|
|
197
|
+
role="editor",
|
|
198
|
+
),
|
|
199
|
+
)
|
|
200
|
+
"""
|
|
201
|
+
_response = self._raw_client.project_user_roles_update(
|
|
202
|
+
account_id, project_id, user_id, data=data, request_options=request_options
|
|
203
|
+
)
|
|
204
|
+
return _response.data
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class AsyncProjectPermissionsClient:
|
|
208
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
209
|
+
self._raw_client = AsyncRawProjectPermissionsClient(client_wrapper=client_wrapper)
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def with_raw_response(self) -> AsyncRawProjectPermissionsClient:
|
|
213
|
+
"""
|
|
214
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
215
|
+
|
|
216
|
+
Returns
|
|
217
|
+
-------
|
|
218
|
+
AsyncRawProjectPermissionsClient
|
|
219
|
+
"""
|
|
220
|
+
return self._raw_client
|
|
221
|
+
|
|
222
|
+
async def index(
|
|
223
|
+
self,
|
|
224
|
+
account_id: Uuid,
|
|
225
|
+
project_id: Uuid,
|
|
226
|
+
*,
|
|
227
|
+
include_deactivated: typing.Optional[bool] = None,
|
|
228
|
+
after: typing.Optional[RequestAfterOpaqueCursor] = None,
|
|
229
|
+
page_size: typing.Optional[RequestPageSize] = None,
|
|
230
|
+
include_total_count: typing.Optional[IncludeTotalCount] = None,
|
|
231
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
232
|
+
) -> UserRolesResponse:
|
|
233
|
+
"""
|
|
234
|
+
List user roles for a given project. <br><br>Rate Limits: 100 calls per 1.00 minute(s) per account
|
|
235
|
+
|
|
236
|
+
Parameters
|
|
237
|
+
----------
|
|
238
|
+
account_id : Uuid
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
project_id : Uuid
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
include_deactivated : typing.Optional[bool]
|
|
245
|
+
Supports including deactivated users in the response. Default is false.
|
|
246
|
+
|
|
247
|
+
after : typing.Optional[RequestAfterOpaqueCursor]
|
|
248
|
+
Opaque Cursor query param for requests returning paginated results.
|
|
249
|
+
<br/>
|
|
250
|
+
NOTE: this value is auto-generated and included as part of links from a previous response. It is not intended to be human readable.
|
|
251
|
+
|
|
252
|
+
page_size : typing.Optional[RequestPageSize]
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
include_total_count : typing.Optional[IncludeTotalCount]
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
request_options : typing.Optional[RequestOptions]
|
|
259
|
+
Request-specific configuration.
|
|
260
|
+
|
|
261
|
+
Returns
|
|
262
|
+
-------
|
|
263
|
+
UserRolesResponse
|
|
264
|
+
OK
|
|
265
|
+
|
|
266
|
+
Examples
|
|
267
|
+
--------
|
|
268
|
+
import asyncio
|
|
269
|
+
|
|
270
|
+
from frameio import AsyncFrameio
|
|
271
|
+
|
|
272
|
+
client = AsyncFrameio(
|
|
273
|
+
token="YOUR_TOKEN",
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
async def main() -> None:
|
|
278
|
+
await client.project_permissions.index(
|
|
279
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
280
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
281
|
+
include_deactivated=True,
|
|
282
|
+
after="<opaque_cursor>",
|
|
283
|
+
page_size=10,
|
|
284
|
+
include_total_count=False,
|
|
285
|
+
)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
asyncio.run(main())
|
|
289
|
+
"""
|
|
290
|
+
_response = await self._raw_client.index(
|
|
291
|
+
account_id,
|
|
292
|
+
project_id,
|
|
293
|
+
include_deactivated=include_deactivated,
|
|
294
|
+
after=after,
|
|
295
|
+
page_size=page_size,
|
|
296
|
+
include_total_count=include_total_count,
|
|
297
|
+
request_options=request_options,
|
|
298
|
+
)
|
|
299
|
+
return _response.data
|
|
300
|
+
|
|
301
|
+
async def delete(
|
|
302
|
+
self,
|
|
303
|
+
account_id: Uuid,
|
|
304
|
+
project_id: Uuid,
|
|
305
|
+
user_id: Uuid,
|
|
306
|
+
*,
|
|
307
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
308
|
+
) -> None:
|
|
309
|
+
"""
|
|
310
|
+
Remove a user from a given project. <br><br>Rate Limits: 60 calls per 1.00 minute(s) per account
|
|
311
|
+
|
|
312
|
+
Parameters
|
|
313
|
+
----------
|
|
314
|
+
account_id : Uuid
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
project_id : Uuid
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
user_id : Uuid
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
request_options : typing.Optional[RequestOptions]
|
|
324
|
+
Request-specific configuration.
|
|
325
|
+
|
|
326
|
+
Returns
|
|
327
|
+
-------
|
|
328
|
+
None
|
|
329
|
+
|
|
330
|
+
Examples
|
|
331
|
+
--------
|
|
332
|
+
import asyncio
|
|
333
|
+
|
|
334
|
+
from frameio import AsyncFrameio
|
|
335
|
+
|
|
336
|
+
client = AsyncFrameio(
|
|
337
|
+
token="YOUR_TOKEN",
|
|
338
|
+
)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
async def main() -> None:
|
|
342
|
+
await client.project_permissions.delete(
|
|
343
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
344
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
345
|
+
user_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
asyncio.run(main())
|
|
350
|
+
"""
|
|
351
|
+
_response = await self._raw_client.delete(account_id, project_id, user_id, request_options=request_options)
|
|
352
|
+
return _response.data
|
|
353
|
+
|
|
354
|
+
async def project_user_roles_update(
|
|
355
|
+
self,
|
|
356
|
+
account_id: Uuid,
|
|
357
|
+
project_id: Uuid,
|
|
358
|
+
user_id: Uuid,
|
|
359
|
+
*,
|
|
360
|
+
data: UpdateUserRolesParamsData,
|
|
361
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
362
|
+
) -> UpdateUserRolesResponse:
|
|
363
|
+
"""
|
|
364
|
+
Update user roles for the given project if the user is already added to the project. If the user is
|
|
365
|
+
not added to the project, the user will be added with the given role. <br><br>Rate Limits: 10 calls per 1.00 minute(s) per account
|
|
366
|
+
|
|
367
|
+
Parameters
|
|
368
|
+
----------
|
|
369
|
+
account_id : Uuid
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
project_id : Uuid
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
user_id : Uuid
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
data : UpdateUserRolesParamsData
|
|
379
|
+
|
|
380
|
+
request_options : typing.Optional[RequestOptions]
|
|
381
|
+
Request-specific configuration.
|
|
382
|
+
|
|
383
|
+
Returns
|
|
384
|
+
-------
|
|
385
|
+
UpdateUserRolesResponse
|
|
386
|
+
OK
|
|
387
|
+
|
|
388
|
+
Examples
|
|
389
|
+
--------
|
|
390
|
+
import asyncio
|
|
391
|
+
|
|
392
|
+
from frameio import AsyncFrameio, UpdateUserRolesParamsData
|
|
393
|
+
|
|
394
|
+
client = AsyncFrameio(
|
|
395
|
+
token="YOUR_TOKEN",
|
|
396
|
+
)
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
async def main() -> None:
|
|
400
|
+
await client.project_permissions.project_user_roles_update(
|
|
401
|
+
account_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
402
|
+
project_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
403
|
+
user_id="b2702c44-c6da-4bb6-8bbd-be6e547ccf1b",
|
|
404
|
+
data=UpdateUserRolesParamsData(
|
|
405
|
+
role="editor",
|
|
406
|
+
),
|
|
407
|
+
)
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
asyncio.run(main())
|
|
411
|
+
"""
|
|
412
|
+
_response = await self._raw_client.project_user_roles_update(
|
|
413
|
+
account_id, project_id, user_id, data=data, request_options=request_options
|
|
414
|
+
)
|
|
415
|
+
return _response.data
|