From c2643e6b5d80150185bb3f4f116119414a224fe3 Mon Sep 17 00:00:00 2001 From: Ching Date: Tue, 30 Apr 2024 10:31:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20memos=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 313 ++++--- docs/ActivityServiceApi.md | 10 +- docs/Apiv1ActivityMemoCommentPayload.md | 10 + docs/Apiv1ActivityPayload.md | 10 + docs/Apiv1ActivityVersionUpdatePayload.md | 9 + docs/Apiv1FieldMapping.md | 11 + docs/Apiv1IdentityProvider.md | 13 + docs/Apiv1IdentityProviderConfig.md | 9 + docs/Apiv1IdentityProviderType.md | 8 + docs/Apiv1OAuth2Config.md | 15 + docs/Apiv1UserSetting.md | 12 + docs/Apiv1WorkspaceCustomProfile.md | 13 + docs/Apiv1WorkspaceGeneralSetting.md | 14 + docs/Apiv1WorkspaceMemoRelatedSetting.md | 10 + docs/Apiv1WorkspaceSetting.md | 12 + docs/Apiv1WorkspaceStorageSetting.md | 12 + docs/Apiv1WorkspaceStorageSettingS3Config.md | 13 + ...Apiv1WorkspaceStorageSettingStorageType.md | 8 + docs/AuthServiceApi.md | 62 +- docs/IdentityProviderServiceApi.md | 240 +++++ docs/InboxServiceApi.md | 36 +- docs/MarkdownServiceApi.md | 148 +++ docs/MemoServiceApi.md | 312 +++---- docs/MemoServiceSetMemoRelationsBody.md | 2 +- docs/MemoServiceSetMemoResourcesBody.md | 2 +- docs/MemoServiceUpsertMemoReactionBody.md | 9 + docs/ResourceServiceApi.md | 168 ++-- docs/SettingIsTheSettingToUpdate_.md | 4 +- docs/TableNodeRow.md | 9 + docs/TagServiceApi.md | 82 +- docs/TheIdentityProviderToUpdate_.md | 12 + docs/UserServiceApi.md | 151 +-- docs/V1Activity.md | 14 + docs/V1AutoLinkNode.md | 10 + docs/V1BatchUpsertTagRequest.md | 9 + docs/V1BlockquoteNode.md | 9 + docs/V1BoldItalicNode.md | 10 + docs/V1BoldNode.md | 10 + docs/V1CodeBlockNode.md | 10 + docs/V1CodeNode.md | 9 + docs/V1CreateMemoRequest.md | 10 + docs/V1CreateWebhookRequest.md | 10 + docs/V1EmbeddedContentNode.md | 10 + docs/V1EscapingCharacterNode.md | 9 + docs/V1ExportMemosRequest.md | 9 + docs/V1ExportMemosResponse.md | 9 + docs/V1GetTagSuggestionsResponse.md | 9 + docs/V1GetUserMemosStatsResponse.md | 9 + docs/V1HeadingNode.md | 10 + docs/V1HighlightNode.md | 9 + docs/V1HorizontalRuleNode.md | 9 + docs/V1ImageNode.md | 10 + docs/V1Inbox.md | 15 + docs/V1InboxNameBody.md | 14 + docs/V1InboxStatus.md | 8 + docs/V1InboxType.md | 8 + docs/V1ItalicNode.md | 10 + docs/V1LineBreakNode.md | 8 + docs/V1LinkMetadata.md | 11 + docs/V1LinkNode.md | 10 + docs/V1ListIdentityProvidersResponse.md | 9 + docs/V1ListInboxesResponse.md | 9 + docs/V1ListMemoCommentsResponse.md | 9 + docs/V1ListMemoReactionsResponse.md | 9 + docs/V1ListMemoRelationsResponse.md | 9 + docs/V1ListMemoResourcesResponse.md | 9 + docs/V1ListMemosResponse.md | 10 + docs/V1ListResourcesResponse.md | 9 + docs/V1ListTagsResponse.md | 9 + docs/V1ListUserAccessTokensResponse.md | 9 + docs/V1ListUsersResponse.md | 9 + docs/V1ListWebhooksResponse.md | 9 + docs/V1ListWorkspaceSettingsResponse.md | 9 + docs/V1MathBlockNode.md | 9 + docs/V1MathNode.md | 9 + docs/V1Memo.md | 23 + docs/V1MemoNameBody.md | 22 + docs/V1MemoRelation.md | 11 + docs/V1MemoRelationType.md | 8 + docs/V1Node.md | 38 + docs/V1NodeType.md | 8 + docs/V1OrderedListNode.md | 11 + docs/V1ParagraphNode.md | 9 + docs/V1ParseMarkdownRequest.md | 9 + docs/V1ParseMarkdownResponse.md | 9 + docs/V1Reaction.md | 12 + docs/V1ReactionType.md | 8 + docs/V1ReferencedContentNode.md | 10 + docs/V1RenameTagRequest.md | 11 + docs/V1Resource.md | 17 + docs/V1ResourceNameBody.md | 16 + docs/V1RestoreMarkdownRequest.md | 9 + docs/V1RestoreMarkdownResponse.md | 9 + docs/V1RowStatus.md | 8 + docs/V1SearchMemosResponse.md | 9 + docs/V1SearchResourcesResponse.md | 9 + docs/V1SearchUsersResponse.md | 9 + docs/V1SettingNameBody.md | 11 + docs/V1SpoilerNode.md | 9 + docs/V1StrikethroughNode.md | 9 + docs/V1SubscriptNode.md | 9 + docs/V1SuperscriptNode.md | 9 + docs/V1TableNode.md | 11 + docs/V1Tag.md | 10 + docs/V1TagNode.md | 9 + docs/V1TaskListNode.md | 12 + docs/V1TextNode.md | 9 + docs/V1UnorderedListNode.md | 11 + docs/V1UpsertTagRequest.md | 9 + docs/V1User.md | 20 + docs/V1UserAccessToken.md | 12 + docs/V1UserNameBody.md | 19 + docs/V1Visibility.md | 8 + docs/V1Webhook.md | 15 + docs/V1WorkspaceProfile.md | 11 + docs/WebhookServiceApi.md | 34 +- docs/WebhooksWebhookIdBody.md | 2 +- docs/WorkspaceServiceApi.md | 6 +- docs/WorkspaceSettingServiceApi.md | 55 +- memos/__init__.py | 193 ++-- memos/api/__init__.py | 2 + memos/api/activity_service_api.py | 14 +- memos/api/auth_service_api.py | 74 +- memos/api/identity_provider_service_api.py | 506 ++++++++++ memos/api/inbox_service_api.py | 68 +- memos/api/markdown_service_api.py | 316 +++++++ memos/api/memo_service_api.py | 774 ++++++++-------- memos/api/resource_service_api.py | 372 ++++---- memos/api/tag_service_api.py | 158 ++-- memos/api/user_service_api.py | 215 +++-- memos/api/webhook_service_api.py | 46 +- memos/api/workspace_service_api.py | 10 +- memos/api/workspace_setting_service_api.py | 103 ++- memos/api_client.py | 2 +- memos/configuration.py | 2 +- memos/models/__init__.py | 191 ++-- .../apiv1_activity_memo_comment_payload.py | 140 +++ memos/models/apiv1_activity_payload.py | 136 +++ .../apiv1_activity_version_update_payload.py | 112 +++ memos/models/apiv1_field_mapping.py | 162 ++++ memos/models/apiv1_identity_provider.py | 214 +++++ .../models/apiv1_identity_provider_config.py | 110 +++ memos/models/apiv1_identity_provider_type.py | 90 ++ memos/models/apiv1_o_auth2_config.py | 266 ++++++ memos/models/apiv1_user_setting.py | 194 ++++ .../models/apiv1_workspace_custom_profile.py | 214 +++++ .../models/apiv1_workspace_general_setting.py | 250 +++++ .../apiv1_workspace_memo_related_setting.py | 140 +++ memos/models/apiv1_workspace_setting.py | 188 ++++ .../models/apiv1_workspace_storage_setting.py | 190 ++++ ...iv1_workspace_storage_setting_s3_config.py | 214 +++++ ..._workspace_storage_setting_storage_type.py | 92 ++ memos/models/googlerpc_status.py | 2 +- .../memo_service_set_memo_relations_body.py | 8 +- .../memo_service_set_memo_resources_body.py | 8 +- .../memo_service_upsert_memo_reaction_body.py | 110 +++ memos/models/protobuf_any.py | 2 +- .../setting_is_the_setting_to_update_.py | 64 +- memos/models/table_node_row.py | 110 +++ .../the_identity_provider_to_update_.py | 188 ++++ memos/models/user_role.py | 2 +- ...r_service_create_user_access_token_body.py | 2 +- memos/models/v1_activity.py | 250 +++++ memos/models/v1_auto_link_node.py | 136 +++ memos/models/v1_batch_upsert_tag_request.py | 110 +++ memos/models/v1_blockquote_node.py | 110 +++ memos/models/v1_bold_italic_node.py | 136 +++ memos/models/v1_bold_node.py | 136 +++ memos/models/v1_code_block_node.py | 136 +++ memos/models/v1_code_node.py | 110 +++ memos/models/v1_create_memo_request.py | 136 +++ memos/models/v1_create_webhook_request.py | 136 +++ memos/models/v1_embedded_content_node.py | 136 +++ memos/models/v1_escaping_character_node.py | 110 +++ memos/models/v1_export_memos_request.py | 110 +++ memos/models/v1_export_memos_response.py | 110 +++ .../models/v1_get_tag_suggestions_response.py | 110 +++ .../v1_get_user_memos_stats_response.py | 112 +++ memos/models/v1_heading_node.py | 136 +++ memos/models/v1_highlight_node.py | 110 +++ memos/models/v1_horizontal_rule_node.py | 110 +++ memos/models/v1_image_node.py | 136 +++ memos/models/v1_inbox.py | 266 ++++++ memos/models/v1_inbox_name_body.py | 240 +++++ memos/models/v1_inbox_status.py | 91 ++ memos/models/v1_inbox_type.py | 91 ++ memos/models/v1_italic_node.py | 136 +++ memos/models/v1_line_break_node.py | 84 ++ memos/models/v1_link_metadata.py | 162 ++++ memos/models/v1_link_node.py | 136 +++ .../v1_list_identity_providers_response.py | 110 +++ memos/models/v1_list_inboxes_response.py | 110 +++ .../models/v1_list_memo_comments_response.py | 110 +++ .../models/v1_list_memo_reactions_response.py | 110 +++ .../models/v1_list_memo_relations_response.py | 110 +++ .../models/v1_list_memo_resources_response.py | 110 +++ memos/models/v1_list_memos_response.py | 138 +++ memos/models/v1_list_resources_response.py | 110 +++ memos/models/v1_list_tags_response.py | 110 +++ .../v1_list_user_access_tokens_response.py | 110 +++ memos/models/v1_list_users_response.py | 110 +++ memos/models/v1_list_webhooks_response.py | 110 +++ .../v1_list_workspace_settings_response.py | 110 +++ memos/models/v1_math_block_node.py | 110 +++ memos/models/v1_math_node.py | 110 +++ memos/models/v1_memo.py | 478 ++++++++++ memos/models/v1_memo_name_body.py | 450 +++++++++ memos/models/v1_memo_relation.py | 162 ++++ memos/models/v1_memo_relation_type.py | 91 ++ memos/models/v1_node.py | 864 ++++++++++++++++++ memos/models/v1_node_type.py | 118 +++ memos/models/v1_ordered_list_node.py | 162 ++++ memos/models/v1_paragraph_node.py | 110 +++ memos/models/v1_parse_markdown_request.py | 110 +++ memos/models/v1_parse_markdown_response.py | 110 +++ memos/models/v1_reaction.py | 188 ++++ memos/models/v1_reaction_type.py | 101 ++ memos/models/v1_referenced_content_node.py | 136 +++ memos/models/v1_rename_tag_request.py | 162 ++++ memos/models/v1_resource.py | 322 +++++++ memos/models/v1_resource_name_body.py | 294 ++++++ memos/models/v1_restore_markdown_request.py | 110 +++ memos/models/v1_restore_markdown_response.py | 110 +++ memos/models/v1_row_status.py | 91 ++ memos/models/v1_search_memos_response.py | 110 +++ memos/models/v1_search_resources_response.py | 110 +++ memos/models/v1_search_users_response.py | 110 +++ memos/models/v1_setting_name_body.py | 168 ++++ memos/models/v1_spoiler_node.py | 110 +++ memos/models/v1_strikethrough_node.py | 110 +++ memos/models/v1_subscript_node.py | 110 +++ memos/models/v1_superscript_node.py | 110 +++ memos/models/v1_table_node.py | 162 ++++ memos/models/v1_tag.py | 136 +++ memos/models/v1_tag_node.py | 110 +++ memos/models/v1_task_list_node.py | 188 ++++ memos/models/v1_text_node.py | 110 +++ memos/models/v1_unordered_list_node.py | 162 ++++ memos/models/v1_upsert_tag_request.py | 110 +++ memos/models/v1_user.py | 398 ++++++++ memos/models/v1_user_access_token.py | 188 ++++ memos/models/v1_user_name_body.py | 372 ++++++++ memos/models/v1_visibility.py | 92 ++ memos/models/v1_webhook.py | 266 ++++++ memos/models/v1_workspace_profile.py | 164 ++++ memos/models/webhooks_webhook_id_body.py | 8 +- memos/rest.py | 2 +- setup.py | 6 +- ...est_apiv1_activity_memo_comment_payload.py | 39 + test/test_apiv1_activity_payload.py | 39 + ...t_apiv1_activity_version_update_payload.py | 39 + test/test_apiv1_field_mapping.py | 39 + test/test_apiv1_identity_provider.py | 39 + test/test_apiv1_identity_provider_config.py | 39 + test/test_apiv1_identity_provider_type.py | 39 + test/test_apiv1_o_auth2_config.py | 39 + test/test_apiv1_user_setting.py | 39 + test/test_apiv1_workspace_custom_profile.py | 39 + test/test_apiv1_workspace_general_setting.py | 39 + ...st_apiv1_workspace_memo_related_setting.py | 39 + test/test_apiv1_workspace_setting.py | 39 + test/test_apiv1_workspace_storage_setting.py | 39 + ...iv1_workspace_storage_setting_s3_config.py | 39 + ..._workspace_storage_setting_storage_type.py | 39 + test/test_identity_provider_service_api.py | 68 ++ test/test_markdown_service_api.py | 54 ++ ..._memo_service_upsert_memo_reaction_body.py | 39 + test/test_table_node_row.py | 39 + test/test_the_identity_provider_to_update_.py | 39 + test/test_v1_activity.py | 39 + test/test_v1_auto_link_node.py | 39 + test/test_v1_batch_upsert_tag_request.py | 39 + test/test_v1_blockquote_node.py | 39 + test/test_v1_bold_italic_node.py | 39 + test/test_v1_bold_node.py | 39 + test/test_v1_code_block_node.py | 39 + test/test_v1_code_node.py | 39 + test/test_v1_create_memo_request.py | 39 + test/test_v1_create_webhook_request.py | 39 + test/test_v1_embedded_content_node.py | 39 + test/test_v1_escaping_character_node.py | 39 + test/test_v1_export_memos_request.py | 39 + test/test_v1_export_memos_response.py | 39 + test/test_v1_get_tag_suggestions_response.py | 39 + test/test_v1_get_user_memos_stats_response.py | 39 + test/test_v1_heading_node.py | 39 + test/test_v1_highlight_node.py | 39 + test/test_v1_horizontal_rule_node.py | 39 + test/test_v1_image_node.py | 39 + test/test_v1_inbox.py | 39 + test/test_v1_inbox_name_body.py | 39 + test/test_v1_inbox_status.py | 39 + test/test_v1_inbox_type.py | 39 + test/test_v1_italic_node.py | 39 + test/test_v1_line_break_node.py | 39 + test/test_v1_link_metadata.py | 39 + test/test_v1_link_node.py | 39 + ...est_v1_list_identity_providers_response.py | 39 + test/test_v1_list_inboxes_response.py | 39 + test/test_v1_list_memo_comments_response.py | 39 + test/test_v1_list_memo_reactions_response.py | 39 + test/test_v1_list_memo_relations_response.py | 39 + test/test_v1_list_memo_resources_response.py | 39 + test/test_v1_list_memos_response.py | 39 + test/test_v1_list_resources_response.py | 39 + test/test_v1_list_tags_response.py | 39 + ...est_v1_list_user_access_tokens_response.py | 39 + test/test_v1_list_users_response.py | 39 + test/test_v1_list_webhooks_response.py | 39 + ...est_v1_list_workspace_settings_response.py | 39 + test/test_v1_math_block_node.py | 39 + test/test_v1_math_node.py | 39 + test/test_v1_memo.py | 39 + test/test_v1_memo_name_body.py | 39 + test/test_v1_memo_relation.py | 39 + test/test_v1_memo_relation_type.py | 39 + test/test_v1_node.py | 39 + test/test_v1_node_type.py | 39 + test/test_v1_ordered_list_node.py | 39 + test/test_v1_paragraph_node.py | 39 + test/test_v1_parse_markdown_request.py | 39 + test/test_v1_parse_markdown_response.py | 39 + test/test_v1_reaction.py | 39 + test/test_v1_reaction_type.py | 39 + test/test_v1_referenced_content_node.py | 39 + test/test_v1_rename_tag_request.py | 39 + test/test_v1_resource.py | 39 + test/test_v1_resource_name_body.py | 39 + test/test_v1_restore_markdown_request.py | 39 + test/test_v1_restore_markdown_response.py | 39 + test/test_v1_row_status.py | 39 + test/test_v1_search_memos_response.py | 39 + test/test_v1_search_resources_response.py | 39 + test/test_v1_search_users_response.py | 39 + test/test_v1_setting_name_body.py | 39 + test/test_v1_spoiler_node.py | 39 + test/test_v1_strikethrough_node.py | 39 + test/test_v1_subscript_node.py | 39 + test/test_v1_superscript_node.py | 39 + test/test_v1_table_node.py | 39 + test/test_v1_tag.py | 39 + test/test_v1_tag_node.py | 39 + test/test_v1_task_list_node.py | 39 + test/test_v1_text_node.py | 39 + test/test_v1_unordered_list_node.py | 39 + test/test_v1_upsert_tag_request.py | 39 + test/test_v1_user.py | 39 + test/test_v1_user_access_token.py | 39 + test/test_v1_user_name_body.py | 39 + test/test_v1_visibility.py | 39 + test/test_v1_webhook.py | 39 + test/test_v1_workspace_profile.py | 39 + 352 files changed, 24520 insertions(+), 1603 deletions(-) create mode 100644 docs/Apiv1ActivityMemoCommentPayload.md create mode 100644 docs/Apiv1ActivityPayload.md create mode 100644 docs/Apiv1ActivityVersionUpdatePayload.md create mode 100644 docs/Apiv1FieldMapping.md create mode 100644 docs/Apiv1IdentityProvider.md create mode 100644 docs/Apiv1IdentityProviderConfig.md create mode 100644 docs/Apiv1IdentityProviderType.md create mode 100644 docs/Apiv1OAuth2Config.md create mode 100644 docs/Apiv1UserSetting.md create mode 100644 docs/Apiv1WorkspaceCustomProfile.md create mode 100644 docs/Apiv1WorkspaceGeneralSetting.md create mode 100644 docs/Apiv1WorkspaceMemoRelatedSetting.md create mode 100644 docs/Apiv1WorkspaceSetting.md create mode 100644 docs/Apiv1WorkspaceStorageSetting.md create mode 100644 docs/Apiv1WorkspaceStorageSettingS3Config.md create mode 100644 docs/Apiv1WorkspaceStorageSettingStorageType.md create mode 100644 docs/IdentityProviderServiceApi.md create mode 100644 docs/MarkdownServiceApi.md create mode 100644 docs/MemoServiceUpsertMemoReactionBody.md create mode 100644 docs/TableNodeRow.md create mode 100644 docs/TheIdentityProviderToUpdate_.md create mode 100644 docs/V1Activity.md create mode 100644 docs/V1AutoLinkNode.md create mode 100644 docs/V1BatchUpsertTagRequest.md create mode 100644 docs/V1BlockquoteNode.md create mode 100644 docs/V1BoldItalicNode.md create mode 100644 docs/V1BoldNode.md create mode 100644 docs/V1CodeBlockNode.md create mode 100644 docs/V1CodeNode.md create mode 100644 docs/V1CreateMemoRequest.md create mode 100644 docs/V1CreateWebhookRequest.md create mode 100644 docs/V1EmbeddedContentNode.md create mode 100644 docs/V1EscapingCharacterNode.md create mode 100644 docs/V1ExportMemosRequest.md create mode 100644 docs/V1ExportMemosResponse.md create mode 100644 docs/V1GetTagSuggestionsResponse.md create mode 100644 docs/V1GetUserMemosStatsResponse.md create mode 100644 docs/V1HeadingNode.md create mode 100644 docs/V1HighlightNode.md create mode 100644 docs/V1HorizontalRuleNode.md create mode 100644 docs/V1ImageNode.md create mode 100644 docs/V1Inbox.md create mode 100644 docs/V1InboxNameBody.md create mode 100644 docs/V1InboxStatus.md create mode 100644 docs/V1InboxType.md create mode 100644 docs/V1ItalicNode.md create mode 100644 docs/V1LineBreakNode.md create mode 100644 docs/V1LinkMetadata.md create mode 100644 docs/V1LinkNode.md create mode 100644 docs/V1ListIdentityProvidersResponse.md create mode 100644 docs/V1ListInboxesResponse.md create mode 100644 docs/V1ListMemoCommentsResponse.md create mode 100644 docs/V1ListMemoReactionsResponse.md create mode 100644 docs/V1ListMemoRelationsResponse.md create mode 100644 docs/V1ListMemoResourcesResponse.md create mode 100644 docs/V1ListMemosResponse.md create mode 100644 docs/V1ListResourcesResponse.md create mode 100644 docs/V1ListTagsResponse.md create mode 100644 docs/V1ListUserAccessTokensResponse.md create mode 100644 docs/V1ListUsersResponse.md create mode 100644 docs/V1ListWebhooksResponse.md create mode 100644 docs/V1ListWorkspaceSettingsResponse.md create mode 100644 docs/V1MathBlockNode.md create mode 100644 docs/V1MathNode.md create mode 100644 docs/V1Memo.md create mode 100644 docs/V1MemoNameBody.md create mode 100644 docs/V1MemoRelation.md create mode 100644 docs/V1MemoRelationType.md create mode 100644 docs/V1Node.md create mode 100644 docs/V1NodeType.md create mode 100644 docs/V1OrderedListNode.md create mode 100644 docs/V1ParagraphNode.md create mode 100644 docs/V1ParseMarkdownRequest.md create mode 100644 docs/V1ParseMarkdownResponse.md create mode 100644 docs/V1Reaction.md create mode 100644 docs/V1ReactionType.md create mode 100644 docs/V1ReferencedContentNode.md create mode 100644 docs/V1RenameTagRequest.md create mode 100644 docs/V1Resource.md create mode 100644 docs/V1ResourceNameBody.md create mode 100644 docs/V1RestoreMarkdownRequest.md create mode 100644 docs/V1RestoreMarkdownResponse.md create mode 100644 docs/V1RowStatus.md create mode 100644 docs/V1SearchMemosResponse.md create mode 100644 docs/V1SearchResourcesResponse.md create mode 100644 docs/V1SearchUsersResponse.md create mode 100644 docs/V1SettingNameBody.md create mode 100644 docs/V1SpoilerNode.md create mode 100644 docs/V1StrikethroughNode.md create mode 100644 docs/V1SubscriptNode.md create mode 100644 docs/V1SuperscriptNode.md create mode 100644 docs/V1TableNode.md create mode 100644 docs/V1Tag.md create mode 100644 docs/V1TagNode.md create mode 100644 docs/V1TaskListNode.md create mode 100644 docs/V1TextNode.md create mode 100644 docs/V1UnorderedListNode.md create mode 100644 docs/V1UpsertTagRequest.md create mode 100644 docs/V1User.md create mode 100644 docs/V1UserAccessToken.md create mode 100644 docs/V1UserNameBody.md create mode 100644 docs/V1Visibility.md create mode 100644 docs/V1Webhook.md create mode 100644 docs/V1WorkspaceProfile.md create mode 100644 memos/api/identity_provider_service_api.py create mode 100644 memos/api/markdown_service_api.py create mode 100644 memos/models/apiv1_activity_memo_comment_payload.py create mode 100644 memos/models/apiv1_activity_payload.py create mode 100644 memos/models/apiv1_activity_version_update_payload.py create mode 100644 memos/models/apiv1_field_mapping.py create mode 100644 memos/models/apiv1_identity_provider.py create mode 100644 memos/models/apiv1_identity_provider_config.py create mode 100644 memos/models/apiv1_identity_provider_type.py create mode 100644 memos/models/apiv1_o_auth2_config.py create mode 100644 memos/models/apiv1_user_setting.py create mode 100644 memos/models/apiv1_workspace_custom_profile.py create mode 100644 memos/models/apiv1_workspace_general_setting.py create mode 100644 memos/models/apiv1_workspace_memo_related_setting.py create mode 100644 memos/models/apiv1_workspace_setting.py create mode 100644 memos/models/apiv1_workspace_storage_setting.py create mode 100644 memos/models/apiv1_workspace_storage_setting_s3_config.py create mode 100644 memos/models/apiv1_workspace_storage_setting_storage_type.py create mode 100644 memos/models/memo_service_upsert_memo_reaction_body.py create mode 100644 memos/models/table_node_row.py create mode 100644 memos/models/the_identity_provider_to_update_.py create mode 100644 memos/models/v1_activity.py create mode 100644 memos/models/v1_auto_link_node.py create mode 100644 memos/models/v1_batch_upsert_tag_request.py create mode 100644 memos/models/v1_blockquote_node.py create mode 100644 memos/models/v1_bold_italic_node.py create mode 100644 memos/models/v1_bold_node.py create mode 100644 memos/models/v1_code_block_node.py create mode 100644 memos/models/v1_code_node.py create mode 100644 memos/models/v1_create_memo_request.py create mode 100644 memos/models/v1_create_webhook_request.py create mode 100644 memos/models/v1_embedded_content_node.py create mode 100644 memos/models/v1_escaping_character_node.py create mode 100644 memos/models/v1_export_memos_request.py create mode 100644 memos/models/v1_export_memos_response.py create mode 100644 memos/models/v1_get_tag_suggestions_response.py create mode 100644 memos/models/v1_get_user_memos_stats_response.py create mode 100644 memos/models/v1_heading_node.py create mode 100644 memos/models/v1_highlight_node.py create mode 100644 memos/models/v1_horizontal_rule_node.py create mode 100644 memos/models/v1_image_node.py create mode 100644 memos/models/v1_inbox.py create mode 100644 memos/models/v1_inbox_name_body.py create mode 100644 memos/models/v1_inbox_status.py create mode 100644 memos/models/v1_inbox_type.py create mode 100644 memos/models/v1_italic_node.py create mode 100644 memos/models/v1_line_break_node.py create mode 100644 memos/models/v1_link_metadata.py create mode 100644 memos/models/v1_link_node.py create mode 100644 memos/models/v1_list_identity_providers_response.py create mode 100644 memos/models/v1_list_inboxes_response.py create mode 100644 memos/models/v1_list_memo_comments_response.py create mode 100644 memos/models/v1_list_memo_reactions_response.py create mode 100644 memos/models/v1_list_memo_relations_response.py create mode 100644 memos/models/v1_list_memo_resources_response.py create mode 100644 memos/models/v1_list_memos_response.py create mode 100644 memos/models/v1_list_resources_response.py create mode 100644 memos/models/v1_list_tags_response.py create mode 100644 memos/models/v1_list_user_access_tokens_response.py create mode 100644 memos/models/v1_list_users_response.py create mode 100644 memos/models/v1_list_webhooks_response.py create mode 100644 memos/models/v1_list_workspace_settings_response.py create mode 100644 memos/models/v1_math_block_node.py create mode 100644 memos/models/v1_math_node.py create mode 100644 memos/models/v1_memo.py create mode 100644 memos/models/v1_memo_name_body.py create mode 100644 memos/models/v1_memo_relation.py create mode 100644 memos/models/v1_memo_relation_type.py create mode 100644 memos/models/v1_node.py create mode 100644 memos/models/v1_node_type.py create mode 100644 memos/models/v1_ordered_list_node.py create mode 100644 memos/models/v1_paragraph_node.py create mode 100644 memos/models/v1_parse_markdown_request.py create mode 100644 memos/models/v1_parse_markdown_response.py create mode 100644 memos/models/v1_reaction.py create mode 100644 memos/models/v1_reaction_type.py create mode 100644 memos/models/v1_referenced_content_node.py create mode 100644 memos/models/v1_rename_tag_request.py create mode 100644 memos/models/v1_resource.py create mode 100644 memos/models/v1_resource_name_body.py create mode 100644 memos/models/v1_restore_markdown_request.py create mode 100644 memos/models/v1_restore_markdown_response.py create mode 100644 memos/models/v1_row_status.py create mode 100644 memos/models/v1_search_memos_response.py create mode 100644 memos/models/v1_search_resources_response.py create mode 100644 memos/models/v1_search_users_response.py create mode 100644 memos/models/v1_setting_name_body.py create mode 100644 memos/models/v1_spoiler_node.py create mode 100644 memos/models/v1_strikethrough_node.py create mode 100644 memos/models/v1_subscript_node.py create mode 100644 memos/models/v1_superscript_node.py create mode 100644 memos/models/v1_table_node.py create mode 100644 memos/models/v1_tag.py create mode 100644 memos/models/v1_tag_node.py create mode 100644 memos/models/v1_task_list_node.py create mode 100644 memos/models/v1_text_node.py create mode 100644 memos/models/v1_unordered_list_node.py create mode 100644 memos/models/v1_upsert_tag_request.py create mode 100644 memos/models/v1_user.py create mode 100644 memos/models/v1_user_access_token.py create mode 100644 memos/models/v1_user_name_body.py create mode 100644 memos/models/v1_visibility.py create mode 100644 memos/models/v1_webhook.py create mode 100644 memos/models/v1_workspace_profile.py create mode 100644 test/test_apiv1_activity_memo_comment_payload.py create mode 100644 test/test_apiv1_activity_payload.py create mode 100644 test/test_apiv1_activity_version_update_payload.py create mode 100644 test/test_apiv1_field_mapping.py create mode 100644 test/test_apiv1_identity_provider.py create mode 100644 test/test_apiv1_identity_provider_config.py create mode 100644 test/test_apiv1_identity_provider_type.py create mode 100644 test/test_apiv1_o_auth2_config.py create mode 100644 test/test_apiv1_user_setting.py create mode 100644 test/test_apiv1_workspace_custom_profile.py create mode 100644 test/test_apiv1_workspace_general_setting.py create mode 100644 test/test_apiv1_workspace_memo_related_setting.py create mode 100644 test/test_apiv1_workspace_setting.py create mode 100644 test/test_apiv1_workspace_storage_setting.py create mode 100644 test/test_apiv1_workspace_storage_setting_s3_config.py create mode 100644 test/test_apiv1_workspace_storage_setting_storage_type.py create mode 100644 test/test_identity_provider_service_api.py create mode 100644 test/test_markdown_service_api.py create mode 100644 test/test_memo_service_upsert_memo_reaction_body.py create mode 100644 test/test_table_node_row.py create mode 100644 test/test_the_identity_provider_to_update_.py create mode 100644 test/test_v1_activity.py create mode 100644 test/test_v1_auto_link_node.py create mode 100644 test/test_v1_batch_upsert_tag_request.py create mode 100644 test/test_v1_blockquote_node.py create mode 100644 test/test_v1_bold_italic_node.py create mode 100644 test/test_v1_bold_node.py create mode 100644 test/test_v1_code_block_node.py create mode 100644 test/test_v1_code_node.py create mode 100644 test/test_v1_create_memo_request.py create mode 100644 test/test_v1_create_webhook_request.py create mode 100644 test/test_v1_embedded_content_node.py create mode 100644 test/test_v1_escaping_character_node.py create mode 100644 test/test_v1_export_memos_request.py create mode 100644 test/test_v1_export_memos_response.py create mode 100644 test/test_v1_get_tag_suggestions_response.py create mode 100644 test/test_v1_get_user_memos_stats_response.py create mode 100644 test/test_v1_heading_node.py create mode 100644 test/test_v1_highlight_node.py create mode 100644 test/test_v1_horizontal_rule_node.py create mode 100644 test/test_v1_image_node.py create mode 100644 test/test_v1_inbox.py create mode 100644 test/test_v1_inbox_name_body.py create mode 100644 test/test_v1_inbox_status.py create mode 100644 test/test_v1_inbox_type.py create mode 100644 test/test_v1_italic_node.py create mode 100644 test/test_v1_line_break_node.py create mode 100644 test/test_v1_link_metadata.py create mode 100644 test/test_v1_link_node.py create mode 100644 test/test_v1_list_identity_providers_response.py create mode 100644 test/test_v1_list_inboxes_response.py create mode 100644 test/test_v1_list_memo_comments_response.py create mode 100644 test/test_v1_list_memo_reactions_response.py create mode 100644 test/test_v1_list_memo_relations_response.py create mode 100644 test/test_v1_list_memo_resources_response.py create mode 100644 test/test_v1_list_memos_response.py create mode 100644 test/test_v1_list_resources_response.py create mode 100644 test/test_v1_list_tags_response.py create mode 100644 test/test_v1_list_user_access_tokens_response.py create mode 100644 test/test_v1_list_users_response.py create mode 100644 test/test_v1_list_webhooks_response.py create mode 100644 test/test_v1_list_workspace_settings_response.py create mode 100644 test/test_v1_math_block_node.py create mode 100644 test/test_v1_math_node.py create mode 100644 test/test_v1_memo.py create mode 100644 test/test_v1_memo_name_body.py create mode 100644 test/test_v1_memo_relation.py create mode 100644 test/test_v1_memo_relation_type.py create mode 100644 test/test_v1_node.py create mode 100644 test/test_v1_node_type.py create mode 100644 test/test_v1_ordered_list_node.py create mode 100644 test/test_v1_paragraph_node.py create mode 100644 test/test_v1_parse_markdown_request.py create mode 100644 test/test_v1_parse_markdown_response.py create mode 100644 test/test_v1_reaction.py create mode 100644 test/test_v1_reaction_type.py create mode 100644 test/test_v1_referenced_content_node.py create mode 100644 test/test_v1_rename_tag_request.py create mode 100644 test/test_v1_resource.py create mode 100644 test/test_v1_resource_name_body.py create mode 100644 test/test_v1_restore_markdown_request.py create mode 100644 test/test_v1_restore_markdown_response.py create mode 100644 test/test_v1_row_status.py create mode 100644 test/test_v1_search_memos_response.py create mode 100644 test/test_v1_search_resources_response.py create mode 100644 test/test_v1_search_users_response.py create mode 100644 test/test_v1_setting_name_body.py create mode 100644 test/test_v1_spoiler_node.py create mode 100644 test/test_v1_strikethrough_node.py create mode 100644 test/test_v1_subscript_node.py create mode 100644 test/test_v1_superscript_node.py create mode 100644 test/test_v1_table_node.py create mode 100644 test/test_v1_tag.py create mode 100644 test/test_v1_tag_node.py create mode 100644 test/test_v1_task_list_node.py create mode 100644 test/test_v1_text_node.py create mode 100644 test/test_v1_unordered_list_node.py create mode 100644 test/test_v1_upsert_tag_request.py create mode 100644 test/test_v1_user.py create mode 100644 test/test_v1_user_access_token.py create mode 100644 test/test_v1_user_name_body.py create mode 100644 test/test_v1_visibility.py create mode 100644 test/test_v1_webhook.py create mode 100644 test/test_v1_workspace_profile.py diff --git a/README.md b/README.md index b495dda..952aa50 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ActivityServiceApi(memos.ApiClient(configuration)) -id = 56 # int | +id = 56 # int | The system-generated unique identifier for the activity. try: # GetActivity returns the activity with the given id. @@ -69,159 +69,184 @@ All URIs are relative to */* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ActivityServiceApi* | [**activity_service_get_activity**](docs/ActivityServiceApi.md#activity_service_get_activity) | **GET** /v2/activities/{id} | GetActivity returns the activity with the given id. -*AuthServiceApi* | [**auth_service_get_auth_status**](docs/AuthServiceApi.md#auth_service_get_auth_status) | **POST** /api/v2/auth/status | GetAuthStatus returns the current auth status of the user. -*AuthServiceApi* | [**auth_service_sign_in**](docs/AuthServiceApi.md#auth_service_sign_in) | **POST** /api/v2/auth/signin | SignIn signs in the user with the given username and password. -*AuthServiceApi* | [**auth_service_sign_in_with_sso**](docs/AuthServiceApi.md#auth_service_sign_in_with_sso) | **POST** /api/v2/auth/signin/sso | SignInWithSSO signs in the user with the given SSO code. -*AuthServiceApi* | [**auth_service_sign_out**](docs/AuthServiceApi.md#auth_service_sign_out) | **POST** /api/v2/auth/signout | SignOut signs out the user. -*AuthServiceApi* | [**auth_service_sign_up**](docs/AuthServiceApi.md#auth_service_sign_up) | **POST** /api/v2/auth/signup | SignUp signs up the user with the given username and password. -*InboxServiceApi* | [**inbox_service_delete_inbox**](docs/InboxServiceApi.md#inbox_service_delete_inbox) | **DELETE** /api/v2/{name_1} | DeleteInbox deletes an inbox. -*InboxServiceApi* | [**inbox_service_list_inboxes**](docs/InboxServiceApi.md#inbox_service_list_inboxes) | **GET** /api/v2/inboxes | ListInboxes lists inboxes for a user. -*InboxServiceApi* | [**inbox_service_update_inbox**](docs/InboxServiceApi.md#inbox_service_update_inbox) | **PATCH** /api/v2/{inbox.name} | UpdateInbox updates an inbox. -*MemoServiceApi* | [**memo_service_create_memo**](docs/MemoServiceApi.md#memo_service_create_memo) | **POST** /api/v2/memos | CreateMemo creates a memo. -*MemoServiceApi* | [**memo_service_create_memo_comment**](docs/MemoServiceApi.md#memo_service_create_memo_comment) | **POST** /api/v2/memos/{id}/comments | CreateMemoComment creates a comment for a memo. -*MemoServiceApi* | [**memo_service_delete_memo**](docs/MemoServiceApi.md#memo_service_delete_memo) | **DELETE** /api/v2/memos/{id} | DeleteMemo deletes a memo by id. -*MemoServiceApi* | [**memo_service_delete_memo_reaction**](docs/MemoServiceApi.md#memo_service_delete_memo_reaction) | **DELETE** /api/v2/memos/{id}/reactions/{reactionId} | DeleteMemoReaction deletes a reaction for a memo. -*MemoServiceApi* | [**memo_service_export_memos**](docs/MemoServiceApi.md#memo_service_export_memos) | **POST** /api/v2/memos:export | ExportMemos exports memos. -*MemoServiceApi* | [**memo_service_get_memo**](docs/MemoServiceApi.md#memo_service_get_memo) | **GET** /api/v2/memos/{id} | GetMemo gets a memo by id. -*MemoServiceApi* | [**memo_service_get_memo_by_name**](docs/MemoServiceApi.md#memo_service_get_memo_by_name) | **GET** /api/v2/memos/name/{name} | GetMemoByName gets a memo by name. -*MemoServiceApi* | [**memo_service_get_user_memos_stats**](docs/MemoServiceApi.md#memo_service_get_user_memos_stats) | **GET** /api/v2/memos/stats | GetUserMemosStats gets stats of memos for a user. -*MemoServiceApi* | [**memo_service_list_memo_comments**](docs/MemoServiceApi.md#memo_service_list_memo_comments) | **GET** /api/v2/memos/{id}/comments | ListMemoComments lists comments for a memo. -*MemoServiceApi* | [**memo_service_list_memo_reactions**](docs/MemoServiceApi.md#memo_service_list_memo_reactions) | **GET** /api/v2/memos/{id}/reactions | ListMemoReactions lists reactions for a memo. -*MemoServiceApi* | [**memo_service_list_memo_relations**](docs/MemoServiceApi.md#memo_service_list_memo_relations) | **GET** /api/v2/memos/{id}/relations | ListMemoRelations lists relations for a memo. -*MemoServiceApi* | [**memo_service_list_memo_resources**](docs/MemoServiceApi.md#memo_service_list_memo_resources) | **GET** /api/v2/memos/{id}/resources | ListMemoResources lists resources for a memo. -*MemoServiceApi* | [**memo_service_list_memos**](docs/MemoServiceApi.md#memo_service_list_memos) | **GET** /api/v2/memos | ListMemos lists memos with pagination and filter. -*MemoServiceApi* | [**memo_service_set_memo_relations**](docs/MemoServiceApi.md#memo_service_set_memo_relations) | **POST** /api/v2/memos/{id}/relations | SetMemoRelations sets relations for a memo. -*MemoServiceApi* | [**memo_service_set_memo_resources**](docs/MemoServiceApi.md#memo_service_set_memo_resources) | **POST** /api/v2/memos/{id}/resources | SetMemoResources sets resources for a memo. -*MemoServiceApi* | [**memo_service_update_memo**](docs/MemoServiceApi.md#memo_service_update_memo) | **PATCH** /api/v2/memos/{memo.id} | UpdateMemo updates a memo. -*MemoServiceApi* | [**memo_service_upsert_memo_reaction**](docs/MemoServiceApi.md#memo_service_upsert_memo_reaction) | **POST** /api/v2/memos/{id}/reactions | UpsertMemoReaction upserts a reaction for a memo. -*ResourceServiceApi* | [**resource_service_create_resource**](docs/ResourceServiceApi.md#resource_service_create_resource) | **POST** /api/v2/resources | CreateResource creates a new resource. -*ResourceServiceApi* | [**resource_service_delete_resource**](docs/ResourceServiceApi.md#resource_service_delete_resource) | **DELETE** /api/v2/resources/{id} | DeleteResource deletes a resource by id. -*ResourceServiceApi* | [**resource_service_get_resource**](docs/ResourceServiceApi.md#resource_service_get_resource) | **GET** /api/v2/resources/{id} | GetResource returns a resource by id. -*ResourceServiceApi* | [**resource_service_get_resource_by_name**](docs/ResourceServiceApi.md#resource_service_get_resource_by_name) | **GET** /api/v2/resources/name/{name} | GetResourceByName returns a resource by name. -*ResourceServiceApi* | [**resource_service_list_resources**](docs/ResourceServiceApi.md#resource_service_list_resources) | **GET** /api/v2/resources | ListResources lists all resources. -*ResourceServiceApi* | [**resource_service_update_resource**](docs/ResourceServiceApi.md#resource_service_update_resource) | **PATCH** /api/v2/resources/{resource.id} | UpdateResource updates a resource. -*TagServiceApi* | [**tag_service_batch_upsert_tag**](docs/TagServiceApi.md#tag_service_batch_upsert_tag) | **POST** /api/v2/tags:batchUpsert | BatchUpsertTag upserts multiple tags. -*TagServiceApi* | [**tag_service_delete_tag**](docs/TagServiceApi.md#tag_service_delete_tag) | **DELETE** /api/v2/tags | DeleteTag deletes a tag. -*TagServiceApi* | [**tag_service_get_tag_suggestions**](docs/TagServiceApi.md#tag_service_get_tag_suggestions) | **GET** /api/v2/tags/suggestion | GetTagSuggestions gets tag suggestions from the user's memos. -*TagServiceApi* | [**tag_service_list_tags**](docs/TagServiceApi.md#tag_service_list_tags) | **GET** /api/v2/tags | ListTags lists tags. -*TagServiceApi* | [**tag_service_rename_tag**](docs/TagServiceApi.md#tag_service_rename_tag) | **PATCH** /api/v2/tags:rename | RenameTag renames a tag. All related memos will be updated. -*TagServiceApi* | [**tag_service_upsert_tag**](docs/TagServiceApi.md#tag_service_upsert_tag) | **POST** /api/v2/tags | UpsertTag upserts a tag. -*UserServiceApi* | [**user_service_create_user**](docs/UserServiceApi.md#user_service_create_user) | **POST** /api/v2/users | CreateUser creates a new user. -*UserServiceApi* | [**user_service_create_user_access_token**](docs/UserServiceApi.md#user_service_create_user_access_token) | **POST** /api/v2/{name}/access_tokens | CreateUserAccessToken creates a new access token for a user. -*UserServiceApi* | [**user_service_delete_user**](docs/UserServiceApi.md#user_service_delete_user) | **DELETE** /api/v2/{name} | DeleteUser deletes a user. -*UserServiceApi* | [**user_service_delete_user_access_token**](docs/UserServiceApi.md#user_service_delete_user_access_token) | **DELETE** /api/v2/{name}/access_tokens/{accessToken} | DeleteUserAccessToken deletes an access token for a user. -*UserServiceApi* | [**user_service_get_user**](docs/UserServiceApi.md#user_service_get_user) | **GET** /api/v2/{name} | GetUser gets a user by name. -*UserServiceApi* | [**user_service_get_user_setting**](docs/UserServiceApi.md#user_service_get_user_setting) | **GET** /api/v2/{name}/setting | GetUserSetting gets the setting of a user. -*UserServiceApi* | [**user_service_list_user_access_tokens**](docs/UserServiceApi.md#user_service_list_user_access_tokens) | **GET** /api/v2/{name}/access_tokens | ListUserAccessTokens returns a list of access tokens for a user. -*UserServiceApi* | [**user_service_list_users**](docs/UserServiceApi.md#user_service_list_users) | **GET** /api/v2/users | ListUsers returns a list of users. -*UserServiceApi* | [**user_service_update_user**](docs/UserServiceApi.md#user_service_update_user) | **PATCH** /api/v2/{user.name} | UpdateUser updates a user. -*UserServiceApi* | [**user_service_update_user_setting**](docs/UserServiceApi.md#user_service_update_user_setting) | **PATCH** /api/v2/{setting.name} | UpdateUserSetting updates the setting of a user. -*WebhookServiceApi* | [**webhook_service_create_webhook**](docs/WebhookServiceApi.md#webhook_service_create_webhook) | **POST** /api/v2/webhooks | CreateWebhook creates a new webhook. -*WebhookServiceApi* | [**webhook_service_delete_webhook**](docs/WebhookServiceApi.md#webhook_service_delete_webhook) | **DELETE** /api/v2/webhooks/{id} | DeleteWebhook deletes a webhook by id. -*WebhookServiceApi* | [**webhook_service_get_webhook**](docs/WebhookServiceApi.md#webhook_service_get_webhook) | **GET** /api/v2/webhooks/{id} | GetWebhook returns a webhook by id. -*WebhookServiceApi* | [**webhook_service_list_webhooks**](docs/WebhookServiceApi.md#webhook_service_list_webhooks) | **GET** /api/v2/webhooks | ListWebhooks returns a list of webhooks. -*WebhookServiceApi* | [**webhook_service_update_webhook**](docs/WebhookServiceApi.md#webhook_service_update_webhook) | **PATCH** /api/v2/webhooks/{webhook.id} | UpdateWebhook updates a webhook. -*WorkspaceServiceApi* | [**workspace_service_get_workspace_profile**](docs/WorkspaceServiceApi.md#workspace_service_get_workspace_profile) | **GET** /api/v2/workspace/profile | GetWorkspaceProfile returns the workspace profile. -*WorkspaceSettingServiceApi* | [**workspace_setting_service_get_workspace_setting**](docs/WorkspaceSettingServiceApi.md#workspace_setting_service_get_workspace_setting) | **GET** /api/v2/workspace/{name} | GetWorkspaceSetting returns the setting by name. -*WorkspaceSettingServiceApi* | [**workspace_setting_service_set_workspace_setting**](docs/WorkspaceSettingServiceApi.md#workspace_setting_service_set_workspace_setting) | **PATCH** /api/v2/workspace/{setting.name} | SetWorkspaceSetting updates the setting. +*ActivityServiceApi* | [**activity_service_get_activity**](docs/ActivityServiceApi.md#activity_service_get_activity) | **GET** /api/v1/activities/{id} | GetActivity returns the activity with the given id. +*AuthServiceApi* | [**auth_service_get_auth_status**](docs/AuthServiceApi.md#auth_service_get_auth_status) | **POST** /api/v1/auth/status | GetAuthStatus returns the current auth status of the user. +*AuthServiceApi* | [**auth_service_sign_in**](docs/AuthServiceApi.md#auth_service_sign_in) | **POST** /api/v1/auth/signin | SignIn signs in the user with the given username and password. +*AuthServiceApi* | [**auth_service_sign_in_with_sso**](docs/AuthServiceApi.md#auth_service_sign_in_with_sso) | **POST** /api/v1/auth/signin/sso | SignInWithSSO signs in the user with the given SSO code. +*AuthServiceApi* | [**auth_service_sign_out**](docs/AuthServiceApi.md#auth_service_sign_out) | **POST** /api/v1/auth/signout | SignOut signs out the user. +*AuthServiceApi* | [**auth_service_sign_up**](docs/AuthServiceApi.md#auth_service_sign_up) | **POST** /api/v1/auth/signup | SignUp signs up the user with the given username and password. +*IdentityProviderServiceApi* | [**identity_provider_service_create_identity_provider**](docs/IdentityProviderServiceApi.md#identity_provider_service_create_identity_provider) | **POST** /api/v1/identityProviders | CreateIdentityProvider creates an identity provider. +*IdentityProviderServiceApi* | [**identity_provider_service_delete_identity_provider**](docs/IdentityProviderServiceApi.md#identity_provider_service_delete_identity_provider) | **DELETE** /api/v1/{name_1} | DeleteIdentityProvider deletes an identity provider. +*IdentityProviderServiceApi* | [**identity_provider_service_get_identity_provider**](docs/IdentityProviderServiceApi.md#identity_provider_service_get_identity_provider) | **GET** /api/v1/{name_1} | GetIdentityProvider gets an identity provider. +*IdentityProviderServiceApi* | [**identity_provider_service_list_identity_providers**](docs/IdentityProviderServiceApi.md#identity_provider_service_list_identity_providers) | **GET** /api/v1/identityProviders | ListIdentityProviders lists identity providers. +*IdentityProviderServiceApi* | [**identity_provider_service_update_identity_provider**](docs/IdentityProviderServiceApi.md#identity_provider_service_update_identity_provider) | **PATCH** /api/v1/{identityProvider.name} | UpdateIdentityProvider updates an identity provider. +*InboxServiceApi* | [**inbox_service_delete_inbox**](docs/InboxServiceApi.md#inbox_service_delete_inbox) | **DELETE** /api/v1/{name_2} | DeleteInbox deletes an inbox. +*InboxServiceApi* | [**inbox_service_list_inboxes**](docs/InboxServiceApi.md#inbox_service_list_inboxes) | **GET** /api/v1/inboxes | ListInboxes lists inboxes for a user. +*InboxServiceApi* | [**inbox_service_update_inbox**](docs/InboxServiceApi.md#inbox_service_update_inbox) | **PATCH** /api/v1/{inbox.name} | UpdateInbox updates an inbox. +*MarkdownServiceApi* | [**markdown_service_get_link_metadata**](docs/MarkdownServiceApi.md#markdown_service_get_link_metadata) | **GET** /api/v1/markdown/link:metadata | GetLinkMetadata returns metadata for a given link. +*MarkdownServiceApi* | [**markdown_service_parse_markdown**](docs/MarkdownServiceApi.md#markdown_service_parse_markdown) | **POST** /api/v1/markdown/parse | Parses the given markdown content and returns a list of nodes. +*MarkdownServiceApi* | [**markdown_service_restore_markdown**](docs/MarkdownServiceApi.md#markdown_service_restore_markdown) | **POST** /api/v1/markdown:restore | Restores the given nodes to markdown content. +*MemoServiceApi* | [**memo_service_create_memo**](docs/MemoServiceApi.md#memo_service_create_memo) | **POST** /api/v1/memos | CreateMemo creates a memo. +*MemoServiceApi* | [**memo_service_create_memo_comment**](docs/MemoServiceApi.md#memo_service_create_memo_comment) | **POST** /api/v1/{name}/comments | CreateMemoComment creates a comment for a memo. +*MemoServiceApi* | [**memo_service_delete_memo**](docs/MemoServiceApi.md#memo_service_delete_memo) | **DELETE** /api/v1/{name_4} | DeleteMemo deletes a memo. +*MemoServiceApi* | [**memo_service_delete_memo_reaction**](docs/MemoServiceApi.md#memo_service_delete_memo_reaction) | **DELETE** /api/v1/reactions/{reactionId} | DeleteMemoReaction deletes a reaction for a memo. +*MemoServiceApi* | [**memo_service_export_memos**](docs/MemoServiceApi.md#memo_service_export_memos) | **POST** /api/v1/memos:export | ExportMemos exports memos. +*MemoServiceApi* | [**memo_service_get_memo**](docs/MemoServiceApi.md#memo_service_get_memo) | **GET** /api/v1/{name_3} | GetMemo gets a memo. +*MemoServiceApi* | [**memo_service_get_user_memos_stats**](docs/MemoServiceApi.md#memo_service_get_user_memos_stats) | **GET** /api/v1/memos/stats | GetUserMemosStats gets stats of memos for a user. +*MemoServiceApi* | [**memo_service_list_memo_comments**](docs/MemoServiceApi.md#memo_service_list_memo_comments) | **GET** /api/v1/{name}/comments | ListMemoComments lists comments for a memo. +*MemoServiceApi* | [**memo_service_list_memo_reactions**](docs/MemoServiceApi.md#memo_service_list_memo_reactions) | **GET** /api/v1/{name}/reactions | ListMemoReactions lists reactions for a memo. +*MemoServiceApi* | [**memo_service_list_memo_relations**](docs/MemoServiceApi.md#memo_service_list_memo_relations) | **GET** /api/v1/{name}/relations | ListMemoRelations lists relations for a memo. +*MemoServiceApi* | [**memo_service_list_memo_resources**](docs/MemoServiceApi.md#memo_service_list_memo_resources) | **GET** /api/v1/{name}/resources | ListMemoResources lists resources for a memo. +*MemoServiceApi* | [**memo_service_list_memos**](docs/MemoServiceApi.md#memo_service_list_memos) | **GET** /api/v1/memos | ListMemos lists memos with pagination and filter. +*MemoServiceApi* | [**memo_service_search_memos**](docs/MemoServiceApi.md#memo_service_search_memos) | **GET** /api/v1/memos:search | SearchMemos searches memos. +*MemoServiceApi* | [**memo_service_set_memo_relations**](docs/MemoServiceApi.md#memo_service_set_memo_relations) | **PATCH** /api/v1/{name}/relations | SetMemoRelations sets relations for a memo. +*MemoServiceApi* | [**memo_service_set_memo_resources**](docs/MemoServiceApi.md#memo_service_set_memo_resources) | **PATCH** /api/v1/{name}/resources | SetMemoResources sets resources for a memo. +*MemoServiceApi* | [**memo_service_update_memo**](docs/MemoServiceApi.md#memo_service_update_memo) | **PATCH** /api/v1/{memo.name} | UpdateMemo updates a memo. +*MemoServiceApi* | [**memo_service_upsert_memo_reaction**](docs/MemoServiceApi.md#memo_service_upsert_memo_reaction) | **POST** /api/v1/{name}/reactions | UpsertMemoReaction upserts a reaction for a memo. +*ResourceServiceApi* | [**resource_service_create_resource**](docs/ResourceServiceApi.md#resource_service_create_resource) | **POST** /api/v1/resources | CreateResource creates a new resource. +*ResourceServiceApi* | [**resource_service_delete_resource**](docs/ResourceServiceApi.md#resource_service_delete_resource) | **DELETE** /api/v1/{name_3} | DeleteResource deletes a resource by name. +*ResourceServiceApi* | [**resource_service_get_resource**](docs/ResourceServiceApi.md#resource_service_get_resource) | **GET** /api/v1/{name_2} | GetResource returns a resource by name. +*ResourceServiceApi* | [**resource_service_list_resources**](docs/ResourceServiceApi.md#resource_service_list_resources) | **GET** /api/v1/resources | ListResources lists all resources. +*ResourceServiceApi* | [**resource_service_search_resources**](docs/ResourceServiceApi.md#resource_service_search_resources) | **GET** /api/v1/resources:search | SearchResources searches memos. +*ResourceServiceApi* | [**resource_service_update_resource**](docs/ResourceServiceApi.md#resource_service_update_resource) | **PATCH** /api/v1/{resource.name} | UpdateResource updates a resource. +*TagServiceApi* | [**tag_service_batch_upsert_tag**](docs/TagServiceApi.md#tag_service_batch_upsert_tag) | **POST** /api/v1/tags:batchUpsert | BatchUpsertTag upserts multiple tags. +*TagServiceApi* | [**tag_service_delete_tag**](docs/TagServiceApi.md#tag_service_delete_tag) | **DELETE** /api/v1/tags | DeleteTag deletes a tag. +*TagServiceApi* | [**tag_service_get_tag_suggestions**](docs/TagServiceApi.md#tag_service_get_tag_suggestions) | **GET** /api/v1/tags/suggestion | GetTagSuggestions gets tag suggestions from the user's memos. +*TagServiceApi* | [**tag_service_list_tags**](docs/TagServiceApi.md#tag_service_list_tags) | **GET** /api/v1/tags | ListTags lists tags. +*TagServiceApi* | [**tag_service_rename_tag**](docs/TagServiceApi.md#tag_service_rename_tag) | **PATCH** /api/v1/tags:rename | RenameTag renames a tag. All related memos will be updated. +*TagServiceApi* | [**tag_service_upsert_tag**](docs/TagServiceApi.md#tag_service_upsert_tag) | **POST** /api/v1/tags | UpsertTag upserts a tag. +*UserServiceApi* | [**user_service_create_user**](docs/UserServiceApi.md#user_service_create_user) | **POST** /api/v1/users | CreateUser creates a new user. +*UserServiceApi* | [**user_service_create_user_access_token**](docs/UserServiceApi.md#user_service_create_user_access_token) | **POST** /api/v1/{name}/access_tokens | CreateUserAccessToken creates a new access token for a user. +*UserServiceApi* | [**user_service_delete_user**](docs/UserServiceApi.md#user_service_delete_user) | **DELETE** /api/v1/{name} | DeleteUser deletes a user. +*UserServiceApi* | [**user_service_delete_user_access_token**](docs/UserServiceApi.md#user_service_delete_user_access_token) | **DELETE** /api/v1/{name}/access_tokens/{accessToken} | DeleteUserAccessToken deletes an access token for a user. +*UserServiceApi* | [**user_service_get_user**](docs/UserServiceApi.md#user_service_get_user) | **GET** /api/v1/{name} | GetUser gets a user by name. +*UserServiceApi* | [**user_service_get_user_setting**](docs/UserServiceApi.md#user_service_get_user_setting) | **GET** /api/v1/{name}/setting | GetUserSetting gets the setting of a user. +*UserServiceApi* | [**user_service_list_user_access_tokens**](docs/UserServiceApi.md#user_service_list_user_access_tokens) | **GET** /api/v1/{name}/access_tokens | ListUserAccessTokens returns a list of access tokens for a user. +*UserServiceApi* | [**user_service_list_users**](docs/UserServiceApi.md#user_service_list_users) | **GET** /api/v1/users | ListUsers returns a list of users. +*UserServiceApi* | [**user_service_search_users**](docs/UserServiceApi.md#user_service_search_users) | **GET** /api/v1/users:search | SearchUsers searches users by filter. +*UserServiceApi* | [**user_service_update_user**](docs/UserServiceApi.md#user_service_update_user) | **PATCH** /api/v1/{user.name} | UpdateUser updates a user. +*UserServiceApi* | [**user_service_update_user_setting**](docs/UserServiceApi.md#user_service_update_user_setting) | **PATCH** /api/v1/{setting.name} | UpdateUserSetting updates the setting of a user. +*WebhookServiceApi* | [**webhook_service_create_webhook**](docs/WebhookServiceApi.md#webhook_service_create_webhook) | **POST** /api/v1/webhooks | CreateWebhook creates a new webhook. +*WebhookServiceApi* | [**webhook_service_delete_webhook**](docs/WebhookServiceApi.md#webhook_service_delete_webhook) | **DELETE** /api/v1/webhooks/{id} | DeleteWebhook deletes a webhook by id. +*WebhookServiceApi* | [**webhook_service_get_webhook**](docs/WebhookServiceApi.md#webhook_service_get_webhook) | **GET** /api/v1/webhooks/{id} | GetWebhook returns a webhook by id. +*WebhookServiceApi* | [**webhook_service_list_webhooks**](docs/WebhookServiceApi.md#webhook_service_list_webhooks) | **GET** /api/v1/webhooks | ListWebhooks returns a list of webhooks. +*WebhookServiceApi* | [**webhook_service_update_webhook**](docs/WebhookServiceApi.md#webhook_service_update_webhook) | **PATCH** /api/v1/webhooks/{webhook.id} | UpdateWebhook updates a webhook. +*WorkspaceServiceApi* | [**workspace_service_get_workspace_profile**](docs/WorkspaceServiceApi.md#workspace_service_get_workspace_profile) | **GET** /api/v1/workspace/profile | GetWorkspaceProfile returns the workspace profile. +*WorkspaceSettingServiceApi* | [**workspace_setting_service_get_workspace_setting**](docs/WorkspaceSettingServiceApi.md#workspace_setting_service_get_workspace_setting) | **GET** /api/v1/workspace/{name} | GetWorkspaceSetting returns the setting by name. +*WorkspaceSettingServiceApi* | [**workspace_setting_service_list_workspace_settings**](docs/WorkspaceSettingServiceApi.md#workspace_setting_service_list_workspace_settings) | **GET** /api/v1/workspace/settings | ListWorkspaceSetting returns the list of settings. +*WorkspaceSettingServiceApi* | [**workspace_setting_service_set_workspace_setting**](docs/WorkspaceSettingServiceApi.md#workspace_setting_service_set_workspace_setting) | **PATCH** /api/v1/workspace/{setting.name} | SetWorkspaceSetting updates the setting. ## Documentation For Models - - [Apiv2ActivityMemoCommentPayload](docs/Apiv2ActivityMemoCommentPayload.md) - - [Apiv2ActivityPayload](docs/Apiv2ActivityPayload.md) - - [Apiv2ActivityVersionUpdatePayload](docs/Apiv2ActivityVersionUpdatePayload.md) - - [Apiv2Reaction](docs/Apiv2Reaction.md) - - [Apiv2ReactionType](docs/Apiv2ReactionType.md) - - [Apiv2RowStatus](docs/Apiv2RowStatus.md) - - [Apiv2UserSetting](docs/Apiv2UserSetting.md) - - [Apiv2Webhook](docs/Apiv2Webhook.md) - - [Apiv2WorkspaceGeneralSetting](docs/Apiv2WorkspaceGeneralSetting.md) - - [Apiv2WorkspaceSetting](docs/Apiv2WorkspaceSetting.md) + - [Apiv1ActivityMemoCommentPayload](docs/Apiv1ActivityMemoCommentPayload.md) + - [Apiv1ActivityPayload](docs/Apiv1ActivityPayload.md) + - [Apiv1ActivityVersionUpdatePayload](docs/Apiv1ActivityVersionUpdatePayload.md) + - [Apiv1FieldMapping](docs/Apiv1FieldMapping.md) + - [Apiv1IdentityProvider](docs/Apiv1IdentityProvider.md) + - [Apiv1IdentityProviderConfig](docs/Apiv1IdentityProviderConfig.md) + - [Apiv1IdentityProviderType](docs/Apiv1IdentityProviderType.md) + - [Apiv1OAuth2Config](docs/Apiv1OAuth2Config.md) + - [Apiv1UserSetting](docs/Apiv1UserSetting.md) + - [Apiv1WorkspaceCustomProfile](docs/Apiv1WorkspaceCustomProfile.md) + - [Apiv1WorkspaceGeneralSetting](docs/Apiv1WorkspaceGeneralSetting.md) + - [Apiv1WorkspaceMemoRelatedSetting](docs/Apiv1WorkspaceMemoRelatedSetting.md) + - [Apiv1WorkspaceSetting](docs/Apiv1WorkspaceSetting.md) + - [Apiv1WorkspaceStorageSetting](docs/Apiv1WorkspaceStorageSetting.md) + - [Apiv1WorkspaceStorageSettingS3Config](docs/Apiv1WorkspaceStorageSettingS3Config.md) + - [Apiv1WorkspaceStorageSettingStorageType](docs/Apiv1WorkspaceStorageSettingStorageType.md) - [GooglerpcStatus](docs/GooglerpcStatus.md) - [MemoServiceSetMemoRelationsBody](docs/MemoServiceSetMemoRelationsBody.md) - [MemoServiceSetMemoResourcesBody](docs/MemoServiceSetMemoResourcesBody.md) - - [MemosMemoIdBody](docs/MemosMemoIdBody.md) + - [MemoServiceUpsertMemoReactionBody](docs/MemoServiceUpsertMemoReactionBody.md) - [ProtobufAny](docs/ProtobufAny.md) - - [ResourcesResourceIdBody](docs/ResourcesResourceIdBody.md) - [SettingIsTheSettingToUpdate_](docs/SettingIsTheSettingToUpdate_.md) + - [TableNodeRow](docs/TableNodeRow.md) + - [TheIdentityProviderToUpdate_](docs/TheIdentityProviderToUpdate_.md) - [UserRole](docs/UserRole.md) - [UserServiceCreateUserAccessTokenBody](docs/UserServiceCreateUserAccessTokenBody.md) - - [V2Activity](docs/V2Activity.md) - - [V2BatchUpsertTagResponse](docs/V2BatchUpsertTagResponse.md) - - [V2CreateMemoCommentResponse](docs/V2CreateMemoCommentResponse.md) - - [V2CreateMemoRequest](docs/V2CreateMemoRequest.md) - - [V2CreateMemoResponse](docs/V2CreateMemoResponse.md) - - [V2CreateResourceResponse](docs/V2CreateResourceResponse.md) - - [V2CreateUserAccessTokenResponse](docs/V2CreateUserAccessTokenResponse.md) - - [V2CreateUserResponse](docs/V2CreateUserResponse.md) - - [V2CreateWebhookRequest](docs/V2CreateWebhookRequest.md) - - [V2CreateWebhookResponse](docs/V2CreateWebhookResponse.md) - - [V2DeleteInboxResponse](docs/V2DeleteInboxResponse.md) - - [V2DeleteMemoReactionResponse](docs/V2DeleteMemoReactionResponse.md) - - [V2DeleteMemoResponse](docs/V2DeleteMemoResponse.md) - - [V2DeleteResourceResponse](docs/V2DeleteResourceResponse.md) - - [V2DeleteTagResponse](docs/V2DeleteTagResponse.md) - - [V2DeleteUserAccessTokenResponse](docs/V2DeleteUserAccessTokenResponse.md) - - [V2DeleteUserResponse](docs/V2DeleteUserResponse.md) - - [V2DeleteWebhookResponse](docs/V2DeleteWebhookResponse.md) - - [V2ExportMemosResponse](docs/V2ExportMemosResponse.md) - - [V2GetActivityResponse](docs/V2GetActivityResponse.md) - - [V2GetAuthStatusResponse](docs/V2GetAuthStatusResponse.md) - - [V2GetMemoByNameResponse](docs/V2GetMemoByNameResponse.md) - - [V2GetMemoResponse](docs/V2GetMemoResponse.md) - - [V2GetResourceByNameResponse](docs/V2GetResourceByNameResponse.md) - - [V2GetResourceResponse](docs/V2GetResourceResponse.md) - - [V2GetTagSuggestionsResponse](docs/V2GetTagSuggestionsResponse.md) - - [V2GetUserMemosStatsResponse](docs/V2GetUserMemosStatsResponse.md) - - [V2GetUserResponse](docs/V2GetUserResponse.md) - - [V2GetUserSettingResponse](docs/V2GetUserSettingResponse.md) - - [V2GetWebhookResponse](docs/V2GetWebhookResponse.md) - - [V2GetWorkspaceProfileResponse](docs/V2GetWorkspaceProfileResponse.md) - - [V2GetWorkspaceSettingResponse](docs/V2GetWorkspaceSettingResponse.md) - - [V2Inbox](docs/V2Inbox.md) - - [V2InboxNameBody](docs/V2InboxNameBody.md) - - [V2InboxStatus](docs/V2InboxStatus.md) - - [V2InboxType](docs/V2InboxType.md) - - [V2ListInboxesResponse](docs/V2ListInboxesResponse.md) - - [V2ListMemoCommentsResponse](docs/V2ListMemoCommentsResponse.md) - - [V2ListMemoReactionsResponse](docs/V2ListMemoReactionsResponse.md) - - [V2ListMemoRelationsResponse](docs/V2ListMemoRelationsResponse.md) - - [V2ListMemoResourcesResponse](docs/V2ListMemoResourcesResponse.md) - - [V2ListMemosResponse](docs/V2ListMemosResponse.md) - - [V2ListResourcesResponse](docs/V2ListResourcesResponse.md) - - [V2ListTagsResponse](docs/V2ListTagsResponse.md) - - [V2ListUserAccessTokensResponse](docs/V2ListUserAccessTokensResponse.md) - - [V2ListUsersResponse](docs/V2ListUsersResponse.md) - - [V2ListWebhooksResponse](docs/V2ListWebhooksResponse.md) - - [V2Memo](docs/V2Memo.md) - - [V2MemoRelation](docs/V2MemoRelation.md) - - [V2MemoRelationType](docs/V2MemoRelationType.md) - - [V2RenameTagResponse](docs/V2RenameTagResponse.md) - - [V2Resource](docs/V2Resource.md) - - [V2SetMemoRelationsResponse](docs/V2SetMemoRelationsResponse.md) - - [V2SetMemoResourcesResponse](docs/V2SetMemoResourcesResponse.md) - - [V2SetWorkspaceSettingResponse](docs/V2SetWorkspaceSettingResponse.md) - - [V2SettingNameBody](docs/V2SettingNameBody.md) - - [V2SignInResponse](docs/V2SignInResponse.md) - - [V2SignInWithSSOResponse](docs/V2SignInWithSSOResponse.md) - - [V2SignOutResponse](docs/V2SignOutResponse.md) - - [V2SignUpResponse](docs/V2SignUpResponse.md) - - [V2Tag](docs/V2Tag.md) - - [V2UpdateInboxResponse](docs/V2UpdateInboxResponse.md) - - [V2UpdateMemoResponse](docs/V2UpdateMemoResponse.md) - - [V2UpdateResourceResponse](docs/V2UpdateResourceResponse.md) - - [V2UpdateUserResponse](docs/V2UpdateUserResponse.md) - - [V2UpdateUserSettingResponse](docs/V2UpdateUserSettingResponse.md) - - [V2UpdateWebhookResponse](docs/V2UpdateWebhookResponse.md) - - [V2UpsertMemoReactionResponse](docs/V2UpsertMemoReactionResponse.md) - - [V2UpsertTagRequest](docs/V2UpsertTagRequest.md) - - [V2UpsertTagResponse](docs/V2UpsertTagResponse.md) - - [V2User](docs/V2User.md) - - [V2UserAccessToken](docs/V2UserAccessToken.md) - - [V2UserNameBody](docs/V2UserNameBody.md) - - [V2Visibility](docs/V2Visibility.md) - - [V2WorkspaceProfile](docs/V2WorkspaceProfile.md) + - [V1Activity](docs/V1Activity.md) + - [V1AutoLinkNode](docs/V1AutoLinkNode.md) + - [V1BatchUpsertTagRequest](docs/V1BatchUpsertTagRequest.md) + - [V1BlockquoteNode](docs/V1BlockquoteNode.md) + - [V1BoldItalicNode](docs/V1BoldItalicNode.md) + - [V1BoldNode](docs/V1BoldNode.md) + - [V1CodeBlockNode](docs/V1CodeBlockNode.md) + - [V1CodeNode](docs/V1CodeNode.md) + - [V1CreateMemoRequest](docs/V1CreateMemoRequest.md) + - [V1CreateWebhookRequest](docs/V1CreateWebhookRequest.md) + - [V1EmbeddedContentNode](docs/V1EmbeddedContentNode.md) + - [V1EscapingCharacterNode](docs/V1EscapingCharacterNode.md) + - [V1ExportMemosRequest](docs/V1ExportMemosRequest.md) + - [V1ExportMemosResponse](docs/V1ExportMemosResponse.md) + - [V1GetTagSuggestionsResponse](docs/V1GetTagSuggestionsResponse.md) + - [V1GetUserMemosStatsResponse](docs/V1GetUserMemosStatsResponse.md) + - [V1HeadingNode](docs/V1HeadingNode.md) + - [V1HighlightNode](docs/V1HighlightNode.md) + - [V1HorizontalRuleNode](docs/V1HorizontalRuleNode.md) + - [V1ImageNode](docs/V1ImageNode.md) + - [V1Inbox](docs/V1Inbox.md) + - [V1InboxNameBody](docs/V1InboxNameBody.md) + - [V1InboxStatus](docs/V1InboxStatus.md) + - [V1InboxType](docs/V1InboxType.md) + - [V1ItalicNode](docs/V1ItalicNode.md) + - [V1LineBreakNode](docs/V1LineBreakNode.md) + - [V1LinkMetadata](docs/V1LinkMetadata.md) + - [V1LinkNode](docs/V1LinkNode.md) + - [V1ListIdentityProvidersResponse](docs/V1ListIdentityProvidersResponse.md) + - [V1ListInboxesResponse](docs/V1ListInboxesResponse.md) + - [V1ListMemoCommentsResponse](docs/V1ListMemoCommentsResponse.md) + - [V1ListMemoReactionsResponse](docs/V1ListMemoReactionsResponse.md) + - [V1ListMemoRelationsResponse](docs/V1ListMemoRelationsResponse.md) + - [V1ListMemoResourcesResponse](docs/V1ListMemoResourcesResponse.md) + - [V1ListMemosResponse](docs/V1ListMemosResponse.md) + - [V1ListResourcesResponse](docs/V1ListResourcesResponse.md) + - [V1ListTagsResponse](docs/V1ListTagsResponse.md) + - [V1ListUserAccessTokensResponse](docs/V1ListUserAccessTokensResponse.md) + - [V1ListUsersResponse](docs/V1ListUsersResponse.md) + - [V1ListWebhooksResponse](docs/V1ListWebhooksResponse.md) + - [V1ListWorkspaceSettingsResponse](docs/V1ListWorkspaceSettingsResponse.md) + - [V1MathBlockNode](docs/V1MathBlockNode.md) + - [V1MathNode](docs/V1MathNode.md) + - [V1Memo](docs/V1Memo.md) + - [V1MemoNameBody](docs/V1MemoNameBody.md) + - [V1MemoRelation](docs/V1MemoRelation.md) + - [V1MemoRelationType](docs/V1MemoRelationType.md) + - [V1Node](docs/V1Node.md) + - [V1NodeType](docs/V1NodeType.md) + - [V1OrderedListNode](docs/V1OrderedListNode.md) + - [V1ParagraphNode](docs/V1ParagraphNode.md) + - [V1ParseMarkdownRequest](docs/V1ParseMarkdownRequest.md) + - [V1ParseMarkdownResponse](docs/V1ParseMarkdownResponse.md) + - [V1Reaction](docs/V1Reaction.md) + - [V1ReactionType](docs/V1ReactionType.md) + - [V1ReferencedContentNode](docs/V1ReferencedContentNode.md) + - [V1RenameTagRequest](docs/V1RenameTagRequest.md) + - [V1Resource](docs/V1Resource.md) + - [V1ResourceNameBody](docs/V1ResourceNameBody.md) + - [V1RestoreMarkdownRequest](docs/V1RestoreMarkdownRequest.md) + - [V1RestoreMarkdownResponse](docs/V1RestoreMarkdownResponse.md) + - [V1RowStatus](docs/V1RowStatus.md) + - [V1SearchMemosResponse](docs/V1SearchMemosResponse.md) + - [V1SearchResourcesResponse](docs/V1SearchResourcesResponse.md) + - [V1SearchUsersResponse](docs/V1SearchUsersResponse.md) + - [V1SettingNameBody](docs/V1SettingNameBody.md) + - [V1SpoilerNode](docs/V1SpoilerNode.md) + - [V1StrikethroughNode](docs/V1StrikethroughNode.md) + - [V1SubscriptNode](docs/V1SubscriptNode.md) + - [V1SuperscriptNode](docs/V1SuperscriptNode.md) + - [V1TableNode](docs/V1TableNode.md) + - [V1Tag](docs/V1Tag.md) + - [V1TagNode](docs/V1TagNode.md) + - [V1TaskListNode](docs/V1TaskListNode.md) + - [V1TextNode](docs/V1TextNode.md) + - [V1UnorderedListNode](docs/V1UnorderedListNode.md) + - [V1UpsertTagRequest](docs/V1UpsertTagRequest.md) + - [V1User](docs/V1User.md) + - [V1UserAccessToken](docs/V1UserAccessToken.md) + - [V1UserNameBody](docs/V1UserNameBody.md) + - [V1Visibility](docs/V1Visibility.md) + - [V1Webhook](docs/V1Webhook.md) + - [V1WorkspaceProfile](docs/V1WorkspaceProfile.md) - [WebhooksWebhookIdBody](docs/WebhooksWebhookIdBody.md) ## Documentation For Authorization diff --git a/docs/ActivityServiceApi.md b/docs/ActivityServiceApi.md index cf16c1d..0562e1d 100644 --- a/docs/ActivityServiceApi.md +++ b/docs/ActivityServiceApi.md @@ -4,10 +4,10 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**activity_service_get_activity**](ActivityServiceApi.md#activity_service_get_activity) | **GET** /v2/activities/{id} | GetActivity returns the activity with the given id. +[**activity_service_get_activity**](ActivityServiceApi.md#activity_service_get_activity) | **GET** /api/v1/activities/{id} | GetActivity returns the activity with the given id. # **activity_service_get_activity** -> V2GetActivityResponse activity_service_get_activity(id) +> V1Activity activity_service_get_activity(id) GetActivity returns the activity with the given id. @@ -21,7 +21,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ActivityServiceApi() -id = 56 # int | +id = 56 # int | The system-generated unique identifier for the activity. try: # GetActivity returns the activity with the given id. @@ -35,11 +35,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **id** | **int**| The system-generated unique identifier for the activity. | ### Return type -[**V2GetActivityResponse**](V2GetActivityResponse.md) +[**V1Activity**](V1Activity.md) ### Authorization diff --git a/docs/Apiv1ActivityMemoCommentPayload.md b/docs/Apiv1ActivityMemoCommentPayload.md new file mode 100644 index 0000000..947db45 --- /dev/null +++ b/docs/Apiv1ActivityMemoCommentPayload.md @@ -0,0 +1,10 @@ +# Apiv1ActivityMemoCommentPayload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memo_id** | **int** | The memo id of comment. | [optional] +**related_memo_id** | **int** | The memo id of related memo. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1ActivityPayload.md b/docs/Apiv1ActivityPayload.md new file mode 100644 index 0000000..51e94d9 --- /dev/null +++ b/docs/Apiv1ActivityPayload.md @@ -0,0 +1,10 @@ +# Apiv1ActivityPayload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memo_comment** | [**Apiv1ActivityMemoCommentPayload**](Apiv1ActivityMemoCommentPayload.md) | | [optional] +**version_update** | [**Apiv1ActivityVersionUpdatePayload**](Apiv1ActivityVersionUpdatePayload.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1ActivityVersionUpdatePayload.md b/docs/Apiv1ActivityVersionUpdatePayload.md new file mode 100644 index 0000000..ff82202 --- /dev/null +++ b/docs/Apiv1ActivityVersionUpdatePayload.md @@ -0,0 +1,9 @@ +# Apiv1ActivityVersionUpdatePayload + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | **str** | The updated version of memos. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1FieldMapping.md b/docs/Apiv1FieldMapping.md new file mode 100644 index 0000000..7ddcc3b --- /dev/null +++ b/docs/Apiv1FieldMapping.md @@ -0,0 +1,11 @@ +# Apiv1FieldMapping + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identifier** | **str** | | [optional] +**display_name** | **str** | | [optional] +**email** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1IdentityProvider.md b/docs/Apiv1IdentityProvider.md new file mode 100644 index 0000000..55d5b45 --- /dev/null +++ b/docs/Apiv1IdentityProvider.md @@ -0,0 +1,13 @@ +# Apiv1IdentityProvider + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**type** | [**Apiv1IdentityProviderType**](Apiv1IdentityProviderType.md) | | [optional] +**title** | **str** | | [optional] +**identifier_filter** | **str** | | [optional] +**config** | [**Apiv1IdentityProviderConfig**](Apiv1IdentityProviderConfig.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1IdentityProviderConfig.md b/docs/Apiv1IdentityProviderConfig.md new file mode 100644 index 0000000..edadbf1 --- /dev/null +++ b/docs/Apiv1IdentityProviderConfig.md @@ -0,0 +1,9 @@ +# Apiv1IdentityProviderConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**oauth2_config** | [**Apiv1OAuth2Config**](Apiv1OAuth2Config.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1IdentityProviderType.md b/docs/Apiv1IdentityProviderType.md new file mode 100644 index 0000000..70cb0e9 --- /dev/null +++ b/docs/Apiv1IdentityProviderType.md @@ -0,0 +1,8 @@ +# Apiv1IdentityProviderType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1OAuth2Config.md b/docs/Apiv1OAuth2Config.md new file mode 100644 index 0000000..ff01b2a --- /dev/null +++ b/docs/Apiv1OAuth2Config.md @@ -0,0 +1,15 @@ +# Apiv1OAuth2Config + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_id** | **str** | | [optional] +**client_secret** | **str** | | [optional] +**auth_url** | **str** | | [optional] +**token_url** | **str** | | [optional] +**user_info_url** | **str** | | [optional] +**scopes** | **list[str]** | | [optional] +**field_mapping** | [**Apiv1FieldMapping**](Apiv1FieldMapping.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1UserSetting.md b/docs/Apiv1UserSetting.md new file mode 100644 index 0000000..ae44924 --- /dev/null +++ b/docs/Apiv1UserSetting.md @@ -0,0 +1,12 @@ +# Apiv1UserSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**locale** | **str** | The preferred locale of the user. | [optional] +**appearance** | **str** | The preferred appearance of the user. | [optional] +**memo_visibility** | **str** | The default visibility of the memo. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceCustomProfile.md b/docs/Apiv1WorkspaceCustomProfile.md new file mode 100644 index 0000000..6407db6 --- /dev/null +++ b/docs/Apiv1WorkspaceCustomProfile.md @@ -0,0 +1,13 @@ +# Apiv1WorkspaceCustomProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**logo_url** | **str** | | [optional] +**locale** | **str** | | [optional] +**appearance** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceGeneralSetting.md b/docs/Apiv1WorkspaceGeneralSetting.md new file mode 100644 index 0000000..b297d7f --- /dev/null +++ b/docs/Apiv1WorkspaceGeneralSetting.md @@ -0,0 +1,14 @@ +# Apiv1WorkspaceGeneralSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**instance_url** | **str** | instance_url is the instance URL. | [optional] +**disallow_signup** | **bool** | disallow_signup is the flag to disallow signup. | [optional] +**disallow_password_login** | **bool** | disallow_password_login is the flag to disallow password login. | [optional] +**additional_script** | **str** | additional_script is the additional script. | [optional] +**additional_style** | **str** | additional_style is the additional style. | [optional] +**custom_profile** | [**Apiv1WorkspaceCustomProfile**](Apiv1WorkspaceCustomProfile.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceMemoRelatedSetting.md b/docs/Apiv1WorkspaceMemoRelatedSetting.md new file mode 100644 index 0000000..7e9ad42 --- /dev/null +++ b/docs/Apiv1WorkspaceMemoRelatedSetting.md @@ -0,0 +1,10 @@ +# Apiv1WorkspaceMemoRelatedSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**disallow_public_visible** | **bool** | disallow_public_share disallows set memo as public visible. | [optional] +**display_with_update_time** | **bool** | display_with_update_time orders and displays memo with update time. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceSetting.md b/docs/Apiv1WorkspaceSetting.md new file mode 100644 index 0000000..797fe15 --- /dev/null +++ b/docs/Apiv1WorkspaceSetting.md @@ -0,0 +1,12 @@ +# Apiv1WorkspaceSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**general_setting** | [**Apiv1WorkspaceGeneralSetting**](Apiv1WorkspaceGeneralSetting.md) | | [optional] +**storage_setting** | [**Apiv1WorkspaceStorageSetting**](Apiv1WorkspaceStorageSetting.md) | | [optional] +**memo_related_setting** | [**Apiv1WorkspaceMemoRelatedSetting**](Apiv1WorkspaceMemoRelatedSetting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceStorageSetting.md b/docs/Apiv1WorkspaceStorageSetting.md new file mode 100644 index 0000000..267ddd3 --- /dev/null +++ b/docs/Apiv1WorkspaceStorageSetting.md @@ -0,0 +1,12 @@ +# Apiv1WorkspaceStorageSetting + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**storage_type** | [**Apiv1WorkspaceStorageSettingStorageType**](Apiv1WorkspaceStorageSettingStorageType.md) | | [optional] +**filepath_template** | **str** | | [optional] +**upload_size_limit_mb** | **str** | The max upload size in megabytes. | [optional] +**s3_config** | [**Apiv1WorkspaceStorageSettingS3Config**](Apiv1WorkspaceStorageSettingS3Config.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceStorageSettingS3Config.md b/docs/Apiv1WorkspaceStorageSettingS3Config.md new file mode 100644 index 0000000..dc737b0 --- /dev/null +++ b/docs/Apiv1WorkspaceStorageSettingS3Config.md @@ -0,0 +1,13 @@ +# Apiv1WorkspaceStorageSettingS3Config + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_key_id** | **str** | | [optional] +**access_key_secret** | **str** | | [optional] +**endpoint** | **str** | | [optional] +**region** | **str** | | [optional] +**bucket** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/Apiv1WorkspaceStorageSettingStorageType.md b/docs/Apiv1WorkspaceStorageSettingStorageType.md new file mode 100644 index 0000000..0ef1487 --- /dev/null +++ b/docs/Apiv1WorkspaceStorageSettingStorageType.md @@ -0,0 +1,8 @@ +# Apiv1WorkspaceStorageSettingStorageType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AuthServiceApi.md b/docs/AuthServiceApi.md index 7221a3e..aece412 100644 --- a/docs/AuthServiceApi.md +++ b/docs/AuthServiceApi.md @@ -4,14 +4,14 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**auth_service_get_auth_status**](AuthServiceApi.md#auth_service_get_auth_status) | **POST** /api/v2/auth/status | GetAuthStatus returns the current auth status of the user. -[**auth_service_sign_in**](AuthServiceApi.md#auth_service_sign_in) | **POST** /api/v2/auth/signin | SignIn signs in the user with the given username and password. -[**auth_service_sign_in_with_sso**](AuthServiceApi.md#auth_service_sign_in_with_sso) | **POST** /api/v2/auth/signin/sso | SignInWithSSO signs in the user with the given SSO code. -[**auth_service_sign_out**](AuthServiceApi.md#auth_service_sign_out) | **POST** /api/v2/auth/signout | SignOut signs out the user. -[**auth_service_sign_up**](AuthServiceApi.md#auth_service_sign_up) | **POST** /api/v2/auth/signup | SignUp signs up the user with the given username and password. +[**auth_service_get_auth_status**](AuthServiceApi.md#auth_service_get_auth_status) | **POST** /api/v1/auth/status | GetAuthStatus returns the current auth status of the user. +[**auth_service_sign_in**](AuthServiceApi.md#auth_service_sign_in) | **POST** /api/v1/auth/signin | SignIn signs in the user with the given username and password. +[**auth_service_sign_in_with_sso**](AuthServiceApi.md#auth_service_sign_in_with_sso) | **POST** /api/v1/auth/signin/sso | SignInWithSSO signs in the user with the given SSO code. +[**auth_service_sign_out**](AuthServiceApi.md#auth_service_sign_out) | **POST** /api/v1/auth/signout | SignOut signs out the user. +[**auth_service_sign_up**](AuthServiceApi.md#auth_service_sign_up) | **POST** /api/v1/auth/signup | SignUp signs up the user with the given username and password. # **auth_service_get_auth_status** -> V2GetAuthStatusResponse auth_service_get_auth_status() +> V1User auth_service_get_auth_status() GetAuthStatus returns the current auth status of the user. @@ -39,7 +39,7 @@ This endpoint does not need any parameter. ### Return type -[**V2GetAuthStatusResponse**](V2GetAuthStatusResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -53,7 +53,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **auth_service_sign_in** -> V2SignInResponse auth_service_sign_in(username=username, password=password, never_expire=never_expire) +> V1User auth_service_sign_in(username=username, password=password, never_expire=never_expire) SignIn signs in the user with the given username and password. @@ -67,9 +67,9 @@ from pprint import pprint # create an instance of the API class api_instance = memos.AuthServiceApi() -username = 'username_example' # str | (optional) -password = 'password_example' # str | (optional) -never_expire = true # bool | (optional) +username = 'username_example' # str | The username to sign in with. (optional) +password = 'password_example' # str | The password to sign in with. (optional) +never_expire = true # bool | Whether the session should never expire. (optional) try: # SignIn signs in the user with the given username and password. @@ -83,13 +83,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **str**| | [optional] - **password** | **str**| | [optional] - **never_expire** | **bool**| | [optional] + **username** | **str**| The username to sign in with. | [optional] + **password** | **str**| The password to sign in with. | [optional] + **never_expire** | **bool**| Whether the session should never expire. | [optional] ### Return type -[**V2SignInResponse**](V2SignInResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -103,7 +103,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **auth_service_sign_in_with_sso** -> V2SignInWithSSOResponse auth_service_sign_in_with_sso(idp_id=idp_id, code=code, redirect_uri=redirect_uri) +> V1User auth_service_sign_in_with_sso(idp_id=idp_id, code=code, redirect_uri=redirect_uri) SignInWithSSO signs in the user with the given SSO code. @@ -117,9 +117,9 @@ from pprint import pprint # create an instance of the API class api_instance = memos.AuthServiceApi() -idp_id = 56 # int | (optional) -code = 'code_example' # str | (optional) -redirect_uri = 'redirect_uri_example' # str | (optional) +idp_id = 56 # int | The ID of the SSO provider. (optional) +code = 'code_example' # str | The code to sign in with. (optional) +redirect_uri = 'redirect_uri_example' # str | The redirect URI. (optional) try: # SignInWithSSO signs in the user with the given SSO code. @@ -133,13 +133,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **idp_id** | **int**| | [optional] - **code** | **str**| | [optional] - **redirect_uri** | **str**| | [optional] + **idp_id** | **int**| The ID of the SSO provider. | [optional] + **code** | **str**| The code to sign in with. | [optional] + **redirect_uri** | **str**| The redirect URI. | [optional] ### Return type -[**V2SignInWithSSOResponse**](V2SignInWithSSOResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -153,7 +153,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **auth_service_sign_out** -> V2SignOutResponse auth_service_sign_out() +> object auth_service_sign_out() SignOut signs out the user. @@ -181,7 +181,7 @@ This endpoint does not need any parameter. ### Return type -[**V2SignOutResponse**](V2SignOutResponse.md) +**object** ### Authorization @@ -195,7 +195,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **auth_service_sign_up** -> V2SignUpResponse auth_service_sign_up(username=username, password=password) +> V1User auth_service_sign_up(username=username, password=password) SignUp signs up the user with the given username and password. @@ -209,8 +209,8 @@ from pprint import pprint # create an instance of the API class api_instance = memos.AuthServiceApi() -username = 'username_example' # str | (optional) -password = 'password_example' # str | (optional) +username = 'username_example' # str | The username to sign up with. (optional) +password = 'password_example' # str | The password to sign up with. (optional) try: # SignUp signs up the user with the given username and password. @@ -224,12 +224,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **username** | **str**| | [optional] - **password** | **str**| | [optional] + **username** | **str**| The username to sign up with. | [optional] + **password** | **str**| The password to sign up with. | [optional] ### Return type -[**V2SignUpResponse**](V2SignUpResponse.md) +[**V1User**](V1User.md) ### Authorization diff --git a/docs/IdentityProviderServiceApi.md b/docs/IdentityProviderServiceApi.md new file mode 100644 index 0000000..306f416 --- /dev/null +++ b/docs/IdentityProviderServiceApi.md @@ -0,0 +1,240 @@ +# memos.IdentityProviderServiceApi + +All URIs are relative to */* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**identity_provider_service_create_identity_provider**](IdentityProviderServiceApi.md#identity_provider_service_create_identity_provider) | **POST** /api/v1/identityProviders | CreateIdentityProvider creates an identity provider. +[**identity_provider_service_delete_identity_provider**](IdentityProviderServiceApi.md#identity_provider_service_delete_identity_provider) | **DELETE** /api/v1/{name_1} | DeleteIdentityProvider deletes an identity provider. +[**identity_provider_service_get_identity_provider**](IdentityProviderServiceApi.md#identity_provider_service_get_identity_provider) | **GET** /api/v1/{name_1} | GetIdentityProvider gets an identity provider. +[**identity_provider_service_list_identity_providers**](IdentityProviderServiceApi.md#identity_provider_service_list_identity_providers) | **GET** /api/v1/identityProviders | ListIdentityProviders lists identity providers. +[**identity_provider_service_update_identity_provider**](IdentityProviderServiceApi.md#identity_provider_service_update_identity_provider) | **PATCH** /api/v1/{identityProvider.name} | UpdateIdentityProvider updates an identity provider. + +# **identity_provider_service_create_identity_provider** +> Apiv1IdentityProvider identity_provider_service_create_identity_provider(body) + +CreateIdentityProvider creates an identity provider. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.IdentityProviderServiceApi() +body = memos.Apiv1IdentityProvider() # Apiv1IdentityProvider | The identityProvider to create. + +try: + # CreateIdentityProvider creates an identity provider. + api_response = api_instance.identity_provider_service_create_identity_provider(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling IdentityProviderServiceApi->identity_provider_service_create_identity_provider: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Apiv1IdentityProvider**](Apiv1IdentityProvider.md)| The identityProvider to create. | + +### Return type + +[**Apiv1IdentityProvider**](Apiv1IdentityProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **identity_provider_service_delete_identity_provider** +> object identity_provider_service_delete_identity_provider(name_1) + +DeleteIdentityProvider deletes an identity provider. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.IdentityProviderServiceApi() +name_1 = 'name_1_example' # str | The name of the identityProvider to delete. Format: identityProviders/{id} + +try: + # DeleteIdentityProvider deletes an identity provider. + api_response = api_instance.identity_provider_service_delete_identity_provider(name_1) + pprint(api_response) +except ApiException as e: + print("Exception when calling IdentityProviderServiceApi->identity_provider_service_delete_identity_provider: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name_1** | **str**| The name of the identityProvider to delete. Format: identityProviders/{id} | + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **identity_provider_service_get_identity_provider** +> Apiv1IdentityProvider identity_provider_service_get_identity_provider(name_1) + +GetIdentityProvider gets an identity provider. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.IdentityProviderServiceApi() +name_1 = 'name_1_example' # str | The name of the identityProvider to get. Format: identityProviders/{id} + +try: + # GetIdentityProvider gets an identity provider. + api_response = api_instance.identity_provider_service_get_identity_provider(name_1) + pprint(api_response) +except ApiException as e: + print("Exception when calling IdentityProviderServiceApi->identity_provider_service_get_identity_provider: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name_1** | **str**| The name of the identityProvider to get. Format: identityProviders/{id} | + +### Return type + +[**Apiv1IdentityProvider**](Apiv1IdentityProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **identity_provider_service_list_identity_providers** +> V1ListIdentityProvidersResponse identity_provider_service_list_identity_providers() + +ListIdentityProviders lists identity providers. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.IdentityProviderServiceApi() + +try: + # ListIdentityProviders lists identity providers. + api_response = api_instance.identity_provider_service_list_identity_providers() + pprint(api_response) +except ApiException as e: + print("Exception when calling IdentityProviderServiceApi->identity_provider_service_list_identity_providers: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1ListIdentityProvidersResponse**](V1ListIdentityProvidersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **identity_provider_service_update_identity_provider** +> Apiv1IdentityProvider identity_provider_service_update_identity_provider(body, identity_provider_name) + +UpdateIdentityProvider updates an identity provider. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.IdentityProviderServiceApi() +body = memos.TheIdentityProviderToUpdate_() # TheIdentityProviderToUpdate_ | The identityProvider to update. +identity_provider_name = 'identity_provider_name_example' # str | The name of the identityProvider. Format: identityProviders/{id} + +try: + # UpdateIdentityProvider updates an identity provider. + api_response = api_instance.identity_provider_service_update_identity_provider(body, identity_provider_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling IdentityProviderServiceApi->identity_provider_service_update_identity_provider: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**TheIdentityProviderToUpdate_**](TheIdentityProviderToUpdate_.md)| The identityProvider to update. | + **identity_provider_name** | **str**| The name of the identityProvider. Format: identityProviders/{id} | + +### Return type + +[**Apiv1IdentityProvider**](Apiv1IdentityProvider.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/InboxServiceApi.md b/docs/InboxServiceApi.md index 1de33a9..dd071b6 100644 --- a/docs/InboxServiceApi.md +++ b/docs/InboxServiceApi.md @@ -4,12 +4,12 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**inbox_service_delete_inbox**](InboxServiceApi.md#inbox_service_delete_inbox) | **DELETE** /api/v2/{name_1} | DeleteInbox deletes an inbox. -[**inbox_service_list_inboxes**](InboxServiceApi.md#inbox_service_list_inboxes) | **GET** /api/v2/inboxes | ListInboxes lists inboxes for a user. -[**inbox_service_update_inbox**](InboxServiceApi.md#inbox_service_update_inbox) | **PATCH** /api/v2/{inbox.name} | UpdateInbox updates an inbox. +[**inbox_service_delete_inbox**](InboxServiceApi.md#inbox_service_delete_inbox) | **DELETE** /api/v1/{name_2} | DeleteInbox deletes an inbox. +[**inbox_service_list_inboxes**](InboxServiceApi.md#inbox_service_list_inboxes) | **GET** /api/v1/inboxes | ListInboxes lists inboxes for a user. +[**inbox_service_update_inbox**](InboxServiceApi.md#inbox_service_update_inbox) | **PATCH** /api/v1/{inbox.name} | UpdateInbox updates an inbox. # **inbox_service_delete_inbox** -> V2DeleteInboxResponse inbox_service_delete_inbox(name_1) +> object inbox_service_delete_inbox(name_2) DeleteInbox deletes an inbox. @@ -23,11 +23,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() -name_1 = 'name_1_example' # str | The name of the inbox to delete. Format: inboxes/{uid} +name_2 = 'name_2_example' # str | The name of the inbox to delete. Format: inboxes/{id} try: # DeleteInbox deletes an inbox. - api_response = api_instance.inbox_service_delete_inbox(name_1) + api_response = api_instance.inbox_service_delete_inbox(name_2) pprint(api_response) except ApiException as e: print("Exception when calling InboxServiceApi->inbox_service_delete_inbox: %s\n" % e) @@ -37,11 +37,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name_1** | **str**| The name of the inbox to delete. Format: inboxes/{uid} | + **name_2** | **str**| The name of the inbox to delete. Format: inboxes/{id} | ### Return type -[**V2DeleteInboxResponse**](V2DeleteInboxResponse.md) +**object** ### Authorization @@ -55,7 +55,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **inbox_service_list_inboxes** -> V2ListInboxesResponse inbox_service_list_inboxes(user=user) +> V1ListInboxesResponse inbox_service_list_inboxes(user=user) ListInboxes lists inboxes for a user. @@ -69,7 +69,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() -user = 'user_example' # str | Format: users/{username} (optional) +user = 'user_example' # str | Format: users/{id} (optional) try: # ListInboxes lists inboxes for a user. @@ -83,11 +83,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | **str**| Format: users/{username} | [optional] + **user** | **str**| Format: users/{id} | [optional] ### Return type -[**V2ListInboxesResponse**](V2ListInboxesResponse.md) +[**V1ListInboxesResponse**](V1ListInboxesResponse.md) ### Authorization @@ -101,7 +101,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **inbox_service_update_inbox** -> V2UpdateInboxResponse inbox_service_update_inbox(body, inbox_name) +> V1Inbox inbox_service_update_inbox(body, inbox_name) UpdateInbox updates an inbox. @@ -115,8 +115,8 @@ from pprint import pprint # create an instance of the API class api_instance = memos.InboxServiceApi() -body = memos.V2InboxNameBody() # V2InboxNameBody | -inbox_name = 'inbox_name_example' # str | The name of the inbox. Format: inboxes/{uid} +body = memos.V1InboxNameBody() # V1InboxNameBody | +inbox_name = 'inbox_name_example' # str | The name of the inbox. Format: inboxes/{id} try: # UpdateInbox updates an inbox. @@ -130,12 +130,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2InboxNameBody**](V2InboxNameBody.md)| | - **inbox_name** | **str**| The name of the inbox. Format: inboxes/{uid} | + **body** | [**V1InboxNameBody**](V1InboxNameBody.md)| | + **inbox_name** | **str**| The name of the inbox. Format: inboxes/{id} | ### Return type -[**V2UpdateInboxResponse**](V2UpdateInboxResponse.md) +[**V1Inbox**](V1Inbox.md) ### Authorization diff --git a/docs/MarkdownServiceApi.md b/docs/MarkdownServiceApi.md new file mode 100644 index 0000000..36914ae --- /dev/null +++ b/docs/MarkdownServiceApi.md @@ -0,0 +1,148 @@ +# memos.MarkdownServiceApi + +All URIs are relative to */* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**markdown_service_get_link_metadata**](MarkdownServiceApi.md#markdown_service_get_link_metadata) | **GET** /api/v1/markdown/link:metadata | GetLinkMetadata returns metadata for a given link. +[**markdown_service_parse_markdown**](MarkdownServiceApi.md#markdown_service_parse_markdown) | **POST** /api/v1/markdown/parse | Parses the given markdown content and returns a list of nodes. +[**markdown_service_restore_markdown**](MarkdownServiceApi.md#markdown_service_restore_markdown) | **POST** /api/v1/markdown:restore | Restores the given nodes to markdown content. + +# **markdown_service_get_link_metadata** +> V1LinkMetadata markdown_service_get_link_metadata(link=link) + +GetLinkMetadata returns metadata for a given link. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.MarkdownServiceApi() +link = 'link_example' # str | (optional) + +try: + # GetLinkMetadata returns metadata for a given link. + api_response = api_instance.markdown_service_get_link_metadata(link=link) + pprint(api_response) +except ApiException as e: + print("Exception when calling MarkdownServiceApi->markdown_service_get_link_metadata: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **link** | **str**| | [optional] + +### Return type + +[**V1LinkMetadata**](V1LinkMetadata.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **markdown_service_parse_markdown** +> V1ParseMarkdownResponse markdown_service_parse_markdown(body) + +Parses the given markdown content and returns a list of nodes. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.MarkdownServiceApi() +body = memos.V1ParseMarkdownRequest() # V1ParseMarkdownRequest | + +try: + # Parses the given markdown content and returns a list of nodes. + api_response = api_instance.markdown_service_parse_markdown(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling MarkdownServiceApi->markdown_service_parse_markdown: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1ParseMarkdownRequest**](V1ParseMarkdownRequest.md)| | + +### Return type + +[**V1ParseMarkdownResponse**](V1ParseMarkdownResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **markdown_service_restore_markdown** +> V1RestoreMarkdownResponse markdown_service_restore_markdown(body) + +Restores the given nodes to markdown content. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.MarkdownServiceApi() +body = memos.V1RestoreMarkdownRequest() # V1RestoreMarkdownRequest | + +try: + # Restores the given nodes to markdown content. + api_response = api_instance.markdown_service_restore_markdown(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling MarkdownServiceApi->markdown_service_restore_markdown: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1RestoreMarkdownRequest**](V1RestoreMarkdownRequest.md)| | + +### Return type + +[**V1RestoreMarkdownResponse**](V1RestoreMarkdownResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/MemoServiceApi.md b/docs/MemoServiceApi.md index c483baa..bb18073 100644 --- a/docs/MemoServiceApi.md +++ b/docs/MemoServiceApi.md @@ -4,26 +4,26 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**memo_service_create_memo**](MemoServiceApi.md#memo_service_create_memo) | **POST** /api/v2/memos | CreateMemo creates a memo. -[**memo_service_create_memo_comment**](MemoServiceApi.md#memo_service_create_memo_comment) | **POST** /api/v2/memos/{id}/comments | CreateMemoComment creates a comment for a memo. -[**memo_service_delete_memo**](MemoServiceApi.md#memo_service_delete_memo) | **DELETE** /api/v2/memos/{id} | DeleteMemo deletes a memo by id. -[**memo_service_delete_memo_reaction**](MemoServiceApi.md#memo_service_delete_memo_reaction) | **DELETE** /api/v2/memos/{id}/reactions/{reactionId} | DeleteMemoReaction deletes a reaction for a memo. -[**memo_service_export_memos**](MemoServiceApi.md#memo_service_export_memos) | **POST** /api/v2/memos:export | ExportMemos exports memos. -[**memo_service_get_memo**](MemoServiceApi.md#memo_service_get_memo) | **GET** /api/v2/memos/{id} | GetMemo gets a memo by id. -[**memo_service_get_memo_by_name**](MemoServiceApi.md#memo_service_get_memo_by_name) | **GET** /api/v2/memos/name/{name} | GetMemoByName gets a memo by name. -[**memo_service_get_user_memos_stats**](MemoServiceApi.md#memo_service_get_user_memos_stats) | **GET** /api/v2/memos/stats | GetUserMemosStats gets stats of memos for a user. -[**memo_service_list_memo_comments**](MemoServiceApi.md#memo_service_list_memo_comments) | **GET** /api/v2/memos/{id}/comments | ListMemoComments lists comments for a memo. -[**memo_service_list_memo_reactions**](MemoServiceApi.md#memo_service_list_memo_reactions) | **GET** /api/v2/memos/{id}/reactions | ListMemoReactions lists reactions for a memo. -[**memo_service_list_memo_relations**](MemoServiceApi.md#memo_service_list_memo_relations) | **GET** /api/v2/memos/{id}/relations | ListMemoRelations lists relations for a memo. -[**memo_service_list_memo_resources**](MemoServiceApi.md#memo_service_list_memo_resources) | **GET** /api/v2/memos/{id}/resources | ListMemoResources lists resources for a memo. -[**memo_service_list_memos**](MemoServiceApi.md#memo_service_list_memos) | **GET** /api/v2/memos | ListMemos lists memos with pagination and filter. -[**memo_service_set_memo_relations**](MemoServiceApi.md#memo_service_set_memo_relations) | **POST** /api/v2/memos/{id}/relations | SetMemoRelations sets relations for a memo. -[**memo_service_set_memo_resources**](MemoServiceApi.md#memo_service_set_memo_resources) | **POST** /api/v2/memos/{id}/resources | SetMemoResources sets resources for a memo. -[**memo_service_update_memo**](MemoServiceApi.md#memo_service_update_memo) | **PATCH** /api/v2/memos/{memo.id} | UpdateMemo updates a memo. -[**memo_service_upsert_memo_reaction**](MemoServiceApi.md#memo_service_upsert_memo_reaction) | **POST** /api/v2/memos/{id}/reactions | UpsertMemoReaction upserts a reaction for a memo. +[**memo_service_create_memo**](MemoServiceApi.md#memo_service_create_memo) | **POST** /api/v1/memos | CreateMemo creates a memo. +[**memo_service_create_memo_comment**](MemoServiceApi.md#memo_service_create_memo_comment) | **POST** /api/v1/{name}/comments | CreateMemoComment creates a comment for a memo. +[**memo_service_delete_memo**](MemoServiceApi.md#memo_service_delete_memo) | **DELETE** /api/v1/{name_4} | DeleteMemo deletes a memo. +[**memo_service_delete_memo_reaction**](MemoServiceApi.md#memo_service_delete_memo_reaction) | **DELETE** /api/v1/reactions/{reactionId} | DeleteMemoReaction deletes a reaction for a memo. +[**memo_service_export_memos**](MemoServiceApi.md#memo_service_export_memos) | **POST** /api/v1/memos:export | ExportMemos exports memos. +[**memo_service_get_memo**](MemoServiceApi.md#memo_service_get_memo) | **GET** /api/v1/{name_3} | GetMemo gets a memo. +[**memo_service_get_user_memos_stats**](MemoServiceApi.md#memo_service_get_user_memos_stats) | **GET** /api/v1/memos/stats | GetUserMemosStats gets stats of memos for a user. +[**memo_service_list_memo_comments**](MemoServiceApi.md#memo_service_list_memo_comments) | **GET** /api/v1/{name}/comments | ListMemoComments lists comments for a memo. +[**memo_service_list_memo_reactions**](MemoServiceApi.md#memo_service_list_memo_reactions) | **GET** /api/v1/{name}/reactions | ListMemoReactions lists reactions for a memo. +[**memo_service_list_memo_relations**](MemoServiceApi.md#memo_service_list_memo_relations) | **GET** /api/v1/{name}/relations | ListMemoRelations lists relations for a memo. +[**memo_service_list_memo_resources**](MemoServiceApi.md#memo_service_list_memo_resources) | **GET** /api/v1/{name}/resources | ListMemoResources lists resources for a memo. +[**memo_service_list_memos**](MemoServiceApi.md#memo_service_list_memos) | **GET** /api/v1/memos | ListMemos lists memos with pagination and filter. +[**memo_service_search_memos**](MemoServiceApi.md#memo_service_search_memos) | **GET** /api/v1/memos:search | SearchMemos searches memos. +[**memo_service_set_memo_relations**](MemoServiceApi.md#memo_service_set_memo_relations) | **PATCH** /api/v1/{name}/relations | SetMemoRelations sets relations for a memo. +[**memo_service_set_memo_resources**](MemoServiceApi.md#memo_service_set_memo_resources) | **PATCH** /api/v1/{name}/resources | SetMemoResources sets resources for a memo. +[**memo_service_update_memo**](MemoServiceApi.md#memo_service_update_memo) | **PATCH** /api/v1/{memo.name} | UpdateMemo updates a memo. +[**memo_service_upsert_memo_reaction**](MemoServiceApi.md#memo_service_upsert_memo_reaction) | **POST** /api/v1/{name}/reactions | UpsertMemoReaction upserts a reaction for a memo. # **memo_service_create_memo** -> V2CreateMemoResponse memo_service_create_memo(body) +> V1Memo memo_service_create_memo(body) CreateMemo creates a memo. @@ -37,7 +37,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -body = memos.V2CreateMemoRequest() # V2CreateMemoRequest | +body = memos.V1CreateMemoRequest() # V1CreateMemoRequest | try: # CreateMemo creates a memo. @@ -51,11 +51,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2CreateMemoRequest**](V2CreateMemoRequest.md)| | + **body** | [**V1CreateMemoRequest**](V1CreateMemoRequest.md)| | ### Return type -[**V2CreateMemoResponse**](V2CreateMemoResponse.md) +[**V1Memo**](V1Memo.md) ### Authorization @@ -69,7 +69,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_create_memo_comment** -> V2CreateMemoCommentResponse memo_service_create_memo_comment(id, create_content=create_content, create_visibility=create_visibility) +> V1Memo memo_service_create_memo_comment(body, name) CreateMemoComment creates a comment for a memo. @@ -83,13 +83,12 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | id is the memo id to create comment for. -create_content = 'create_content_example' # str | (optional) -create_visibility = 'VISIBILITY_UNSPECIFIED' # str | (optional) (default to VISIBILITY_UNSPECIFIED) +body = memos.V1CreateMemoRequest() # V1CreateMemoRequest | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # CreateMemoComment creates a comment for a memo. - api_response = api_instance.memo_service_create_memo_comment(id, create_content=create_content, create_visibility=create_visibility) + api_response = api_instance.memo_service_create_memo_comment(body, name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_create_memo_comment: %s\n" % e) @@ -99,13 +98,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| id is the memo id to create comment for. | - **create_content** | **str**| | [optional] - **create_visibility** | **str**| | [optional] [default to VISIBILITY_UNSPECIFIED] + **body** | [**V1CreateMemoRequest**](V1CreateMemoRequest.md)| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2CreateMemoCommentResponse**](V2CreateMemoCommentResponse.md) +[**V1Memo**](V1Memo.md) ### Authorization @@ -113,15 +111,15 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_delete_memo** -> V2DeleteMemoResponse memo_service_delete_memo(id) +> object memo_service_delete_memo(name_4) -DeleteMemo deletes a memo by id. +DeleteMemo deletes a memo. ### Example ```python @@ -133,11 +131,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name_4 = 'name_4_example' # str | The name of the memo. Format: memos/{id} try: - # DeleteMemo deletes a memo by id. - api_response = api_instance.memo_service_delete_memo(id) + # DeleteMemo deletes a memo. + api_response = api_instance.memo_service_delete_memo(name_4) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_delete_memo: %s\n" % e) @@ -147,11 +145,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name_4** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2DeleteMemoResponse**](V2DeleteMemoResponse.md) +**object** ### Authorization @@ -165,7 +163,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_delete_memo_reaction** -> V2DeleteMemoReactionResponse memo_service_delete_memo_reaction(id, reaction_id) +> object memo_service_delete_memo_reaction(reaction_id) DeleteMemoReaction deletes a reaction for a memo. @@ -179,12 +177,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | reaction_id = 56 # int | try: # DeleteMemoReaction deletes a reaction for a memo. - api_response = api_instance.memo_service_delete_memo_reaction(id, reaction_id) + api_response = api_instance.memo_service_delete_memo_reaction(reaction_id) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_delete_memo_reaction: %s\n" % e) @@ -194,12 +191,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | **reaction_id** | **int**| | ### Return type -[**V2DeleteMemoReactionResponse**](V2DeleteMemoReactionResponse.md) +**object** ### Authorization @@ -213,7 +209,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_export_memos** -> V2ExportMemosResponse memo_service_export_memos(filter=filter) +> V1ExportMemosResponse memo_service_export_memos(body) ExportMemos exports memos. @@ -227,11 +223,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -filter = 'filter_example' # str | Same as ListMemosRequest.filter (optional) +body = memos.V1ExportMemosRequest() # V1ExportMemosRequest | try: # ExportMemos exports memos. - api_response = api_instance.memo_service_export_memos(filter=filter) + api_response = api_instance.memo_service_export_memos(body) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_export_memos: %s\n" % e) @@ -241,11 +237,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filter** | **str**| Same as ListMemosRequest.filter | [optional] + **body** | [**V1ExportMemosRequest**](V1ExportMemosRequest.md)| | ### Return type -[**V2ExportMemosResponse**](V2ExportMemosResponse.md) +[**V1ExportMemosResponse**](V1ExportMemosResponse.md) ### Authorization @@ -253,15 +249,15 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_get_memo** -> V2GetMemoResponse memo_service_get_memo(id) +> V1Memo memo_service_get_memo(name_3) -GetMemo gets a memo by id. +GetMemo gets a memo. ### Example ```python @@ -273,11 +269,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name_3 = 'name_3_example' # str | The name of the memo. Format: memos/{id} try: - # GetMemo gets a memo by id. - api_response = api_instance.memo_service_get_memo(id) + # GetMemo gets a memo. + api_response = api_instance.memo_service_get_memo(name_3) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_get_memo: %s\n" % e) @@ -287,57 +283,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name_3** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2GetMemoResponse**](V2GetMemoResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **memo_service_get_memo_by_name** -> V2GetMemoByNameResponse memo_service_get_memo_by_name(name) - -GetMemoByName gets a memo by name. - -### Example -```python -from __future__ import print_function -import time -import memos -from memos.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = memos.MemoServiceApi() -name = 'name_example' # str | - -try: - # GetMemoByName gets a memo by name. - api_response = api_instance.memo_service_get_memo_by_name(name) - pprint(api_response) -except ApiException as e: - print("Exception when calling MemoServiceApi->memo_service_get_memo_by_name: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| | - -### Return type - -[**V2GetMemoByNameResponse**](V2GetMemoByNameResponse.md) +[**V1Memo**](V1Memo.md) ### Authorization @@ -351,7 +301,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_get_user_memos_stats** -> V2GetUserMemosStatsResponse memo_service_get_user_memos_stats(name=name, timezone=timezone, filter=filter) +> V1GetUserMemosStatsResponse memo_service_get_user_memos_stats(name=name, timezone=timezone, filter=filter) GetUserMemosStats gets stats of memos for a user. @@ -365,7 +315,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -name = 'name_example' # str | name is the name of the user to get stats for. Format: users/{username} (optional) +name = 'name_example' # str | name is the name of the user to get stats for. Format: users/{id} (optional) timezone = 'timezone_example' # str | timezone location Format: uses tz identifier https://en.wikipedia.org/wiki/List_of_tz_database_time_zones (optional) filter = 'filter_example' # str | Same as ListMemosRequest.filter (optional) @@ -381,13 +331,13 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| name is the name of the user to get stats for. Format: users/{username} | [optional] + **name** | **str**| name is the name of the user to get stats for. Format: users/{id} | [optional] **timezone** | **str**| timezone location Format: uses tz identifier https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | [optional] **filter** | **str**| Same as ListMemosRequest.filter | [optional] ### Return type -[**V2GetUserMemosStatsResponse**](V2GetUserMemosStatsResponse.md) +[**V1GetUserMemosStatsResponse**](V1GetUserMemosStatsResponse.md) ### Authorization @@ -401,7 +351,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_list_memo_comments** -> V2ListMemoCommentsResponse memo_service_list_memo_comments(id) +> V1ListMemoCommentsResponse memo_service_list_memo_comments(name) ListMemoComments lists comments for a memo. @@ -415,11 +365,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # ListMemoComments lists comments for a memo. - api_response = api_instance.memo_service_list_memo_comments(id) + api_response = api_instance.memo_service_list_memo_comments(name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_list_memo_comments: %s\n" % e) @@ -429,11 +379,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2ListMemoCommentsResponse**](V2ListMemoCommentsResponse.md) +[**V1ListMemoCommentsResponse**](V1ListMemoCommentsResponse.md) ### Authorization @@ -447,7 +397,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_list_memo_reactions** -> V2ListMemoReactionsResponse memo_service_list_memo_reactions(id) +> V1ListMemoReactionsResponse memo_service_list_memo_reactions(name) ListMemoReactions lists reactions for a memo. @@ -461,11 +411,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # ListMemoReactions lists reactions for a memo. - api_response = api_instance.memo_service_list_memo_reactions(id) + api_response = api_instance.memo_service_list_memo_reactions(name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_list_memo_reactions: %s\n" % e) @@ -475,11 +425,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2ListMemoReactionsResponse**](V2ListMemoReactionsResponse.md) +[**V1ListMemoReactionsResponse**](V1ListMemoReactionsResponse.md) ### Authorization @@ -493,7 +443,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_list_memo_relations** -> V2ListMemoRelationsResponse memo_service_list_memo_relations(id) +> V1ListMemoRelationsResponse memo_service_list_memo_relations(name) ListMemoRelations lists relations for a memo. @@ -507,11 +457,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # ListMemoRelations lists relations for a memo. - api_response = api_instance.memo_service_list_memo_relations(id) + api_response = api_instance.memo_service_list_memo_relations(name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_list_memo_relations: %s\n" % e) @@ -521,11 +471,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2ListMemoRelationsResponse**](V2ListMemoRelationsResponse.md) +[**V1ListMemoRelationsResponse**](V1ListMemoRelationsResponse.md) ### Authorization @@ -539,7 +489,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_list_memo_resources** -> V2ListMemoResourcesResponse memo_service_list_memo_resources(id) +> V1ListMemoResourcesResponse memo_service_list_memo_resources(name) ListMemoResources lists resources for a memo. @@ -553,11 +503,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # ListMemoResources lists resources for a memo. - api_response = api_instance.memo_service_list_memo_resources(id) + api_response = api_instance.memo_service_list_memo_resources(name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_list_memo_resources: %s\n" % e) @@ -567,11 +517,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2ListMemoResourcesResponse**](V2ListMemoResourcesResponse.md) +[**V1ListMemoResourcesResponse**](V1ListMemoResourcesResponse.md) ### Authorization @@ -585,7 +535,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_list_memos** -> V2ListMemosResponse memo_service_list_memos(page_size=page_size, page_token=page_token, filter=filter) +> V1ListMemosResponse memo_service_list_memos(page_size=page_size, page_token=page_token, filter=filter) ListMemos lists memos with pagination and filter. @@ -601,7 +551,7 @@ from pprint import pprint api_instance = memos.MemoServiceApi() page_size = 56 # int | The maximum number of memos to return. (optional) page_token = 'page_token_example' # str | A page token, received from a previous `ListMemos` call. Provide this to retrieve the subsequent page. (optional) -filter = 'filter_example' # str | Filter is used to filter memos returned in the list. Format: \"creator == users/{username} && visibilities == ['PUBLIC', 'PROTECTED']\" (optional) +filter = 'filter_example' # str | Filter is used to filter memos returned in the list. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" (optional) try: # ListMemos lists memos with pagination and filter. @@ -617,11 +567,57 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page_size** | **int**| The maximum number of memos to return. | [optional] **page_token** | **str**| A page token, received from a previous `ListMemos` call. Provide this to retrieve the subsequent page. | [optional] - **filter** | **str**| Filter is used to filter memos returned in the list. Format: \"creator == users/{username} && visibilities == ['PUBLIC', 'PROTECTED']\" | [optional] + **filter** | **str**| Filter is used to filter memos returned in the list. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" | [optional] ### Return type -[**V2ListMemosResponse**](V2ListMemosResponse.md) +[**V1ListMemosResponse**](V1ListMemosResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **memo_service_search_memos** +> V1SearchMemosResponse memo_service_search_memos(filter=filter) + +SearchMemos searches memos. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.MemoServiceApi() +filter = 'filter_example' # str | Filter is used to filter memos returned. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" (optional) + +try: + # SearchMemos searches memos. + api_response = api_instance.memo_service_search_memos(filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling MemoServiceApi->memo_service_search_memos: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| Filter is used to filter memos returned. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" | [optional] + +### Return type + +[**V1SearchMemosResponse**](V1SearchMemosResponse.md) ### Authorization @@ -635,7 +631,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_set_memo_relations** -> V2SetMemoRelationsResponse memo_service_set_memo_relations(body, id) +> object memo_service_set_memo_relations(body, name) SetMemoRelations sets relations for a memo. @@ -650,11 +646,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() body = memos.MemoServiceSetMemoRelationsBody() # MemoServiceSetMemoRelationsBody | -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # SetMemoRelations sets relations for a memo. - api_response = api_instance.memo_service_set_memo_relations(body, id) + api_response = api_instance.memo_service_set_memo_relations(body, name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_set_memo_relations: %s\n" % e) @@ -665,11 +661,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**MemoServiceSetMemoRelationsBody**](MemoServiceSetMemoRelationsBody.md)| | - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2SetMemoRelationsResponse**](V2SetMemoRelationsResponse.md) +**object** ### Authorization @@ -683,7 +679,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_set_memo_resources** -> V2SetMemoResourcesResponse memo_service_set_memo_resources(body, id) +> object memo_service_set_memo_resources(body, name) SetMemoResources sets resources for a memo. @@ -698,11 +694,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() body = memos.MemoServiceSetMemoResourcesBody() # MemoServiceSetMemoResourcesBody | -id = 56 # int | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # SetMemoResources sets resources for a memo. - api_response = api_instance.memo_service_set_memo_resources(body, id) + api_response = api_instance.memo_service_set_memo_resources(body, name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_set_memo_resources: %s\n" % e) @@ -713,11 +709,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**MemoServiceSetMemoResourcesBody**](MemoServiceSetMemoResourcesBody.md)| | - **id** | **int**| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2SetMemoResourcesResponse**](V2SetMemoResourcesResponse.md) +**object** ### Authorization @@ -731,7 +727,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_update_memo** -> V2UpdateMemoResponse memo_service_update_memo(body, memo_id) +> V1Memo memo_service_update_memo(body, memo_name) UpdateMemo updates a memo. @@ -745,12 +741,12 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -body = memos.MemosMemoIdBody() # MemosMemoIdBody | -memo_id = 56 # int | id is the system generated unique identifier. +body = memos.V1MemoNameBody() # V1MemoNameBody | +memo_name = 'memo_name_example' # str | The name of the memo. Format: memos/{id} id is the system generated id. try: # UpdateMemo updates a memo. - api_response = api_instance.memo_service_update_memo(body, memo_id) + api_response = api_instance.memo_service_update_memo(body, memo_name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_update_memo: %s\n" % e) @@ -760,12 +756,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**MemosMemoIdBody**](MemosMemoIdBody.md)| | - **memo_id** | **int**| id is the system generated unique identifier. | + **body** | [**V1MemoNameBody**](V1MemoNameBody.md)| | + **memo_name** | **str**| The name of the memo. Format: memos/{id} id is the system generated id. | ### Return type -[**V2UpdateMemoResponse**](V2UpdateMemoResponse.md) +[**V1Memo**](V1Memo.md) ### Authorization @@ -779,7 +775,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **memo_service_upsert_memo_reaction** -> V2UpsertMemoReactionResponse memo_service_upsert_memo_reaction(id, reaction_id=reaction_id, reaction_creator=reaction_creator, reaction_content_id=reaction_content_id, reaction_reaction_type=reaction_reaction_type) +> V1Reaction memo_service_upsert_memo_reaction(body, name) UpsertMemoReaction upserts a reaction for a memo. @@ -793,15 +789,12 @@ from pprint import pprint # create an instance of the API class api_instance = memos.MemoServiceApi() -id = 56 # int | -reaction_id = 56 # int | (optional) -reaction_creator = 'reaction_creator_example' # str | (optional) -reaction_content_id = 'reaction_content_id_example' # str | (optional) -reaction_reaction_type = 'TYPE_UNSPECIFIED' # str | (optional) (default to TYPE_UNSPECIFIED) +body = memos.MemoServiceUpsertMemoReactionBody() # MemoServiceUpsertMemoReactionBody | +name = 'name_example' # str | The name of the memo. Format: memos/{id} try: # UpsertMemoReaction upserts a reaction for a memo. - api_response = api_instance.memo_service_upsert_memo_reaction(id, reaction_id=reaction_id, reaction_creator=reaction_creator, reaction_content_id=reaction_content_id, reaction_reaction_type=reaction_reaction_type) + api_response = api_instance.memo_service_upsert_memo_reaction(body, name) pprint(api_response) except ApiException as e: print("Exception when calling MemoServiceApi->memo_service_upsert_memo_reaction: %s\n" % e) @@ -811,15 +804,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | - **reaction_id** | **int**| | [optional] - **reaction_creator** | **str**| | [optional] - **reaction_content_id** | **str**| | [optional] - **reaction_reaction_type** | **str**| | [optional] [default to TYPE_UNSPECIFIED] + **body** | [**MemoServiceUpsertMemoReactionBody**](MemoServiceUpsertMemoReactionBody.md)| | + **name** | **str**| The name of the memo. Format: memos/{id} | ### Return type -[**V2UpsertMemoReactionResponse**](V2UpsertMemoReactionResponse.md) +[**V1Reaction**](V1Reaction.md) ### Authorization @@ -827,7 +817,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/MemoServiceSetMemoRelationsBody.md b/docs/MemoServiceSetMemoRelationsBody.md index f6c8de3..36e2fb4 100644 --- a/docs/MemoServiceSetMemoRelationsBody.md +++ b/docs/MemoServiceSetMemoRelationsBody.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**relations** | [**list[V2MemoRelation]**](V2MemoRelation.md) | | [optional] +**relations** | [**list[V1MemoRelation]**](V1MemoRelation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MemoServiceSetMemoResourcesBody.md b/docs/MemoServiceSetMemoResourcesBody.md index 387ce8e..6036326 100644 --- a/docs/MemoServiceSetMemoResourcesBody.md +++ b/docs/MemoServiceSetMemoResourcesBody.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**resources** | [**list[V2Resource]**](V2Resource.md) | | [optional] +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/MemoServiceUpsertMemoReactionBody.md b/docs/MemoServiceUpsertMemoReactionBody.md new file mode 100644 index 0000000..d326c10 --- /dev/null +++ b/docs/MemoServiceUpsertMemoReactionBody.md @@ -0,0 +1,9 @@ +# MemoServiceUpsertMemoReactionBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reaction** | [**V1Reaction**](V1Reaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ResourceServiceApi.md b/docs/ResourceServiceApi.md index f84b45e..18e6946 100644 --- a/docs/ResourceServiceApi.md +++ b/docs/ResourceServiceApi.md @@ -4,15 +4,15 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**resource_service_create_resource**](ResourceServiceApi.md#resource_service_create_resource) | **POST** /api/v2/resources | CreateResource creates a new resource. -[**resource_service_delete_resource**](ResourceServiceApi.md#resource_service_delete_resource) | **DELETE** /api/v2/resources/{id} | DeleteResource deletes a resource by id. -[**resource_service_get_resource**](ResourceServiceApi.md#resource_service_get_resource) | **GET** /api/v2/resources/{id} | GetResource returns a resource by id. -[**resource_service_get_resource_by_name**](ResourceServiceApi.md#resource_service_get_resource_by_name) | **GET** /api/v2/resources/name/{name} | GetResourceByName returns a resource by name. -[**resource_service_list_resources**](ResourceServiceApi.md#resource_service_list_resources) | **GET** /api/v2/resources | ListResources lists all resources. -[**resource_service_update_resource**](ResourceServiceApi.md#resource_service_update_resource) | **PATCH** /api/v2/resources/{resource.id} | UpdateResource updates a resource. +[**resource_service_create_resource**](ResourceServiceApi.md#resource_service_create_resource) | **POST** /api/v1/resources | CreateResource creates a new resource. +[**resource_service_delete_resource**](ResourceServiceApi.md#resource_service_delete_resource) | **DELETE** /api/v1/{name_3} | DeleteResource deletes a resource by name. +[**resource_service_get_resource**](ResourceServiceApi.md#resource_service_get_resource) | **GET** /api/v1/{name_2} | GetResource returns a resource by name. +[**resource_service_list_resources**](ResourceServiceApi.md#resource_service_list_resources) | **GET** /api/v1/resources | ListResources lists all resources. +[**resource_service_search_resources**](ResourceServiceApi.md#resource_service_search_resources) | **GET** /api/v1/resources:search | SearchResources searches memos. +[**resource_service_update_resource**](ResourceServiceApi.md#resource_service_update_resource) | **PATCH** /api/v1/{resource.name} | UpdateResource updates a resource. # **resource_service_create_resource** -> V2CreateResourceResponse resource_service_create_resource(filename=filename, external_link=external_link, type=type, memo_id=memo_id) +> V1Resource resource_service_create_resource(body) CreateResource creates a new resource. @@ -26,14 +26,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ResourceServiceApi() -filename = 'filename_example' # str | (optional) -external_link = 'external_link_example' # str | (optional) -type = 'type_example' # str | (optional) -memo_id = 56 # int | (optional) +body = memos.V1Resource() # V1Resource | try: # CreateResource creates a new resource. - api_response = api_instance.resource_service_create_resource(filename=filename, external_link=external_link, type=type, memo_id=memo_id) + api_response = api_instance.resource_service_create_resource(body) pprint(api_response) except ApiException as e: print("Exception when calling ResourceServiceApi->resource_service_create_resource: %s\n" % e) @@ -43,14 +40,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filename** | **str**| | [optional] - **external_link** | **str**| | [optional] - **type** | **str**| | [optional] - **memo_id** | **int**| | [optional] + **body** | [**V1Resource**](V1Resource.md)| | ### Return type -[**V2CreateResourceResponse**](V2CreateResourceResponse.md) +[**V1Resource**](V1Resource.md) ### Authorization @@ -58,15 +52,15 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resource_service_delete_resource** -> V2DeleteResourceResponse resource_service_delete_resource(id) +> object resource_service_delete_resource(name_3) -DeleteResource deletes a resource by id. +DeleteResource deletes a resource by name. ### Example ```python @@ -78,11 +72,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ResourceServiceApi() -id = 56 # int | +name_3 = 'name_3_example' # str | The name of the resource. Format: resources/{id} id is the system generated unique identifier. try: - # DeleteResource deletes a resource by id. - api_response = api_instance.resource_service_delete_resource(id) + # DeleteResource deletes a resource by name. + api_response = api_instance.resource_service_delete_resource(name_3) pprint(api_response) except ApiException as e: print("Exception when calling ResourceServiceApi->resource_service_delete_resource: %s\n" % e) @@ -92,11 +86,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name_3** | **str**| The name of the resource. Format: resources/{id} id is the system generated unique identifier. | ### Return type -[**V2DeleteResourceResponse**](V2DeleteResourceResponse.md) +**object** ### Authorization @@ -110,9 +104,9 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resource_service_get_resource** -> V2GetResourceResponse resource_service_get_resource(id) +> V1Resource resource_service_get_resource(name_2) -GetResource returns a resource by id. +GetResource returns a resource by name. ### Example ```python @@ -124,11 +118,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ResourceServiceApi() -id = 56 # int | +name_2 = 'name_2_example' # str | The name of the resource. Format: resources/{id} id is the system generated unique identifier. try: - # GetResource returns a resource by id. - api_response = api_instance.resource_service_get_resource(id) + # GetResource returns a resource by name. + api_response = api_instance.resource_service_get_resource(name_2) pprint(api_response) except ApiException as e: print("Exception when calling ResourceServiceApi->resource_service_get_resource: %s\n" % e) @@ -138,57 +132,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| | + **name_2** | **str**| The name of the resource. Format: resources/{id} id is the system generated unique identifier. | ### Return type -[**V2GetResourceResponse**](V2GetResourceResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **resource_service_get_resource_by_name** -> V2GetResourceByNameResponse resource_service_get_resource_by_name(name) - -GetResourceByName returns a resource by name. - -### Example -```python -from __future__ import print_function -import time -import memos -from memos.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = memos.ResourceServiceApi() -name = 'name_example' # str | - -try: - # GetResourceByName returns a resource by name. - api_response = api_instance.resource_service_get_resource_by_name(name) - pprint(api_response) -except ApiException as e: - print("Exception when calling ResourceServiceApi->resource_service_get_resource_by_name: %s\n" % e) -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| | - -### Return type - -[**V2GetResourceByNameResponse**](V2GetResourceByNameResponse.md) +[**V1Resource**](V1Resource.md) ### Authorization @@ -202,7 +150,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resource_service_list_resources** -> V2ListResourcesResponse resource_service_list_resources() +> V1ListResourcesResponse resource_service_list_resources() ListResources lists all resources. @@ -230,7 +178,53 @@ This endpoint does not need any parameter. ### Return type -[**V2ListResourcesResponse**](V2ListResourcesResponse.md) +[**V1ListResourcesResponse**](V1ListResourcesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **resource_service_search_resources** +> V1SearchResourcesResponse resource_service_search_resources(filter=filter) + +SearchResources searches memos. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.ResourceServiceApi() +filter = 'filter_example' # str | (optional) + +try: + # SearchResources searches memos. + api_response = api_instance.resource_service_search_resources(filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling ResourceServiceApi->resource_service_search_resources: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| | [optional] + +### Return type + +[**V1SearchResourcesResponse**](V1SearchResourcesResponse.md) ### Authorization @@ -244,7 +238,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resource_service_update_resource** -> V2UpdateResourceResponse resource_service_update_resource(body, resource_id) +> V1Resource resource_service_update_resource(body, resource_name) UpdateResource updates a resource. @@ -258,12 +252,12 @@ from pprint import pprint # create an instance of the API class api_instance = memos.ResourceServiceApi() -body = memos.ResourcesResourceIdBody() # ResourcesResourceIdBody | -resource_id = 56 # int | id is the system generated unique identifier. +body = memos.V1ResourceNameBody() # V1ResourceNameBody | +resource_name = 'resource_name_example' # str | The name of the resource. Format: resources/{id} id is the system generated unique identifier. try: # UpdateResource updates a resource. - api_response = api_instance.resource_service_update_resource(body, resource_id) + api_response = api_instance.resource_service_update_resource(body, resource_name) pprint(api_response) except ApiException as e: print("Exception when calling ResourceServiceApi->resource_service_update_resource: %s\n" % e) @@ -273,12 +267,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**ResourcesResourceIdBody**](ResourcesResourceIdBody.md)| | - **resource_id** | **int**| id is the system generated unique identifier. | + **body** | [**V1ResourceNameBody**](V1ResourceNameBody.md)| | + **resource_name** | **str**| The name of the resource. Format: resources/{id} id is the system generated unique identifier. | ### Return type -[**V2UpdateResourceResponse**](V2UpdateResourceResponse.md) +[**V1Resource**](V1Resource.md) ### Authorization diff --git a/docs/SettingIsTheSettingToUpdate_.md b/docs/SettingIsTheSettingToUpdate_.md index 91e7721..ddaa1b0 100644 --- a/docs/SettingIsTheSettingToUpdate_.md +++ b/docs/SettingIsTheSettingToUpdate_.md @@ -3,7 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**general_setting** | [**Apiv2WorkspaceGeneralSetting**](Apiv2WorkspaceGeneralSetting.md) | | [optional] +**general_setting** | [**Apiv1WorkspaceGeneralSetting**](Apiv1WorkspaceGeneralSetting.md) | | [optional] +**storage_setting** | [**Apiv1WorkspaceStorageSetting**](Apiv1WorkspaceStorageSetting.md) | | [optional] +**memo_related_setting** | [**Apiv1WorkspaceMemoRelatedSetting**](Apiv1WorkspaceMemoRelatedSetting.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TableNodeRow.md b/docs/TableNodeRow.md new file mode 100644 index 0000000..c990cd2 --- /dev/null +++ b/docs/TableNodeRow.md @@ -0,0 +1,9 @@ +# TableNodeRow + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cells** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TagServiceApi.md b/docs/TagServiceApi.md index 37d6989..2675ea3 100644 --- a/docs/TagServiceApi.md +++ b/docs/TagServiceApi.md @@ -4,15 +4,15 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**tag_service_batch_upsert_tag**](TagServiceApi.md#tag_service_batch_upsert_tag) | **POST** /api/v2/tags:batchUpsert | BatchUpsertTag upserts multiple tags. -[**tag_service_delete_tag**](TagServiceApi.md#tag_service_delete_tag) | **DELETE** /api/v2/tags | DeleteTag deletes a tag. -[**tag_service_get_tag_suggestions**](TagServiceApi.md#tag_service_get_tag_suggestions) | **GET** /api/v2/tags/suggestion | GetTagSuggestions gets tag suggestions from the user's memos. -[**tag_service_list_tags**](TagServiceApi.md#tag_service_list_tags) | **GET** /api/v2/tags | ListTags lists tags. -[**tag_service_rename_tag**](TagServiceApi.md#tag_service_rename_tag) | **PATCH** /api/v2/tags:rename | RenameTag renames a tag. All related memos will be updated. -[**tag_service_upsert_tag**](TagServiceApi.md#tag_service_upsert_tag) | **POST** /api/v2/tags | UpsertTag upserts a tag. +[**tag_service_batch_upsert_tag**](TagServiceApi.md#tag_service_batch_upsert_tag) | **POST** /api/v1/tags:batchUpsert | BatchUpsertTag upserts multiple tags. +[**tag_service_delete_tag**](TagServiceApi.md#tag_service_delete_tag) | **DELETE** /api/v1/tags | DeleteTag deletes a tag. +[**tag_service_get_tag_suggestions**](TagServiceApi.md#tag_service_get_tag_suggestions) | **GET** /api/v1/tags/suggestion | GetTagSuggestions gets tag suggestions from the user's memos. +[**tag_service_list_tags**](TagServiceApi.md#tag_service_list_tags) | **GET** /api/v1/tags | ListTags lists tags. +[**tag_service_rename_tag**](TagServiceApi.md#tag_service_rename_tag) | **PATCH** /api/v1/tags:rename | RenameTag renames a tag. All related memos will be updated. +[**tag_service_upsert_tag**](TagServiceApi.md#tag_service_upsert_tag) | **POST** /api/v1/tags | UpsertTag upserts a tag. # **tag_service_batch_upsert_tag** -> V2BatchUpsertTagResponse tag_service_batch_upsert_tag() +> object tag_service_batch_upsert_tag(body) BatchUpsertTag upserts multiple tags. @@ -26,21 +26,25 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() +body = memos.V1BatchUpsertTagRequest() # V1BatchUpsertTagRequest | try: # BatchUpsertTag upserts multiple tags. - api_response = api_instance.tag_service_batch_upsert_tag() + api_response = api_instance.tag_service_batch_upsert_tag(body) pprint(api_response) except ApiException as e: print("Exception when calling TagServiceApi->tag_service_batch_upsert_tag: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1BatchUpsertTagRequest**](V1BatchUpsertTagRequest.md)| | ### Return type -[**V2BatchUpsertTagResponse**](V2BatchUpsertTagResponse.md) +**object** ### Authorization @@ -48,13 +52,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **tag_service_delete_tag** -> V2DeleteTagResponse tag_service_delete_tag(tag_name=tag_name, tag_creator=tag_creator) +> object tag_service_delete_tag(tag_name=tag_name, tag_creator=tag_creator) DeleteTag deletes a tag. @@ -69,7 +73,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() tag_name = 'tag_name_example' # str | (optional) -tag_creator = 'tag_creator_example' # str | The creator of tags. Format: users/{username} (optional) +tag_creator = 'tag_creator_example' # str | The creator of tags. Format: users/{id} (optional) try: # DeleteTag deletes a tag. @@ -84,11 +88,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tag_name** | **str**| | [optional] - **tag_creator** | **str**| The creator of tags. Format: users/{username} | [optional] + **tag_creator** | **str**| The creator of tags. Format: users/{id} | [optional] ### Return type -[**V2DeleteTagResponse**](V2DeleteTagResponse.md) +**object** ### Authorization @@ -102,7 +106,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **tag_service_get_tag_suggestions** -> V2GetTagSuggestionsResponse tag_service_get_tag_suggestions(user=user) +> V1GetTagSuggestionsResponse tag_service_get_tag_suggestions(user=user) GetTagSuggestions gets tag suggestions from the user's memos. @@ -116,7 +120,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() -user = 'user_example' # str | The creator of tags. Format: users/{username} (optional) +user = 'user_example' # str | The creator of tags. Format: users/{id} (optional) try: # GetTagSuggestions gets tag suggestions from the user's memos. @@ -130,11 +134,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | **str**| The creator of tags. Format: users/{username} | [optional] + **user** | **str**| The creator of tags. Format: users/{id} | [optional] ### Return type -[**V2GetTagSuggestionsResponse**](V2GetTagSuggestionsResponse.md) +[**V1GetTagSuggestionsResponse**](V1GetTagSuggestionsResponse.md) ### Authorization @@ -148,7 +152,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **tag_service_list_tags** -> V2ListTagsResponse tag_service_list_tags(user=user) +> V1ListTagsResponse tag_service_list_tags() ListTags lists tags. @@ -162,25 +166,21 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() -user = 'user_example' # str | The creator of tags. Format: users/{username} (optional) try: # ListTags lists tags. - api_response = api_instance.tag_service_list_tags(user=user) + api_response = api_instance.tag_service_list_tags() pprint(api_response) except ApiException as e: print("Exception when calling TagServiceApi->tag_service_list_tags: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | **str**| The creator of tags. Format: users/{username} | [optional] +This endpoint does not need any parameter. ### Return type -[**V2ListTagsResponse**](V2ListTagsResponse.md) +[**V1ListTagsResponse**](V1ListTagsResponse.md) ### Authorization @@ -194,7 +194,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **tag_service_rename_tag** -> V2RenameTagResponse tag_service_rename_tag(user=user, old_name=old_name, new_name=new_name) +> object tag_service_rename_tag(body) RenameTag renames a tag. All related memos will be updated. @@ -208,13 +208,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() -user = 'user_example' # str | The creator of tags. Format: users/{username} (optional) -old_name = 'old_name_example' # str | (optional) -new_name = 'new_name_example' # str | (optional) +body = memos.V1RenameTagRequest() # V1RenameTagRequest | try: # RenameTag renames a tag. All related memos will be updated. - api_response = api_instance.tag_service_rename_tag(user=user, old_name=old_name, new_name=new_name) + api_response = api_instance.tag_service_rename_tag(body) pprint(api_response) except ApiException as e: print("Exception when calling TagServiceApi->tag_service_rename_tag: %s\n" % e) @@ -224,13 +222,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | **str**| The creator of tags. Format: users/{username} | [optional] - **old_name** | **str**| | [optional] - **new_name** | **str**| | [optional] + **body** | [**V1RenameTagRequest**](V1RenameTagRequest.md)| | ### Return type -[**V2RenameTagResponse**](V2RenameTagResponse.md) +**object** ### Authorization @@ -238,13 +234,13 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **tag_service_upsert_tag** -> V2UpsertTagResponse tag_service_upsert_tag(name=name) +> V1Tag tag_service_upsert_tag(body) UpsertTag upserts a tag. @@ -258,11 +254,11 @@ from pprint import pprint # create an instance of the API class api_instance = memos.TagServiceApi() -name = 'name_example' # str | (optional) +body = memos.V1UpsertTagRequest() # V1UpsertTagRequest | try: # UpsertTag upserts a tag. - api_response = api_instance.tag_service_upsert_tag(name=name) + api_response = api_instance.tag_service_upsert_tag(body) pprint(api_response) except ApiException as e: print("Exception when calling TagServiceApi->tag_service_upsert_tag: %s\n" % e) @@ -272,11 +268,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| | [optional] + **body** | [**V1UpsertTagRequest**](V1UpsertTagRequest.md)| | ### Return type -[**V2UpsertTagResponse**](V2UpsertTagResponse.md) +[**V1Tag**](V1Tag.md) ### Authorization @@ -284,7 +280,7 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TheIdentityProviderToUpdate_.md b/docs/TheIdentityProviderToUpdate_.md new file mode 100644 index 0000000..aeaf37f --- /dev/null +++ b/docs/TheIdentityProviderToUpdate_.md @@ -0,0 +1,12 @@ +# TheIdentityProviderToUpdate_ + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**Apiv1IdentityProviderType**](Apiv1IdentityProviderType.md) | | [optional] +**title** | **str** | | [optional] +**identifier_filter** | **str** | | [optional] +**config** | [**Apiv1IdentityProviderConfig**](Apiv1IdentityProviderConfig.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/UserServiceApi.md b/docs/UserServiceApi.md index b220dc2..0a46e14 100644 --- a/docs/UserServiceApi.md +++ b/docs/UserServiceApi.md @@ -4,19 +4,20 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**user_service_create_user**](UserServiceApi.md#user_service_create_user) | **POST** /api/v2/users | CreateUser creates a new user. -[**user_service_create_user_access_token**](UserServiceApi.md#user_service_create_user_access_token) | **POST** /api/v2/{name}/access_tokens | CreateUserAccessToken creates a new access token for a user. -[**user_service_delete_user**](UserServiceApi.md#user_service_delete_user) | **DELETE** /api/v2/{name} | DeleteUser deletes a user. -[**user_service_delete_user_access_token**](UserServiceApi.md#user_service_delete_user_access_token) | **DELETE** /api/v2/{name}/access_tokens/{accessToken} | DeleteUserAccessToken deletes an access token for a user. -[**user_service_get_user**](UserServiceApi.md#user_service_get_user) | **GET** /api/v2/{name} | GetUser gets a user by name. -[**user_service_get_user_setting**](UserServiceApi.md#user_service_get_user_setting) | **GET** /api/v2/{name}/setting | GetUserSetting gets the setting of a user. -[**user_service_list_user_access_tokens**](UserServiceApi.md#user_service_list_user_access_tokens) | **GET** /api/v2/{name}/access_tokens | ListUserAccessTokens returns a list of access tokens for a user. -[**user_service_list_users**](UserServiceApi.md#user_service_list_users) | **GET** /api/v2/users | ListUsers returns a list of users. -[**user_service_update_user**](UserServiceApi.md#user_service_update_user) | **PATCH** /api/v2/{user.name} | UpdateUser updates a user. -[**user_service_update_user_setting**](UserServiceApi.md#user_service_update_user_setting) | **PATCH** /api/v2/{setting.name} | UpdateUserSetting updates the setting of a user. +[**user_service_create_user**](UserServiceApi.md#user_service_create_user) | **POST** /api/v1/users | CreateUser creates a new user. +[**user_service_create_user_access_token**](UserServiceApi.md#user_service_create_user_access_token) | **POST** /api/v1/{name}/access_tokens | CreateUserAccessToken creates a new access token for a user. +[**user_service_delete_user**](UserServiceApi.md#user_service_delete_user) | **DELETE** /api/v1/{name} | DeleteUser deletes a user. +[**user_service_delete_user_access_token**](UserServiceApi.md#user_service_delete_user_access_token) | **DELETE** /api/v1/{name}/access_tokens/{accessToken} | DeleteUserAccessToken deletes an access token for a user. +[**user_service_get_user**](UserServiceApi.md#user_service_get_user) | **GET** /api/v1/{name} | GetUser gets a user by name. +[**user_service_get_user_setting**](UserServiceApi.md#user_service_get_user_setting) | **GET** /api/v1/{name}/setting | GetUserSetting gets the setting of a user. +[**user_service_list_user_access_tokens**](UserServiceApi.md#user_service_list_user_access_tokens) | **GET** /api/v1/{name}/access_tokens | ListUserAccessTokens returns a list of access tokens for a user. +[**user_service_list_users**](UserServiceApi.md#user_service_list_users) | **GET** /api/v1/users | ListUsers returns a list of users. +[**user_service_search_users**](UserServiceApi.md#user_service_search_users) | **GET** /api/v1/users:search | SearchUsers searches users by filter. +[**user_service_update_user**](UserServiceApi.md#user_service_update_user) | **PATCH** /api/v1/{user.name} | UpdateUser updates a user. +[**user_service_update_user_setting**](UserServiceApi.md#user_service_update_user_setting) | **PATCH** /api/v1/{setting.name} | UpdateUserSetting updates the setting of a user. # **user_service_create_user** -> V2CreateUserResponse user_service_create_user(body) +> V1User user_service_create_user(body) CreateUser creates a new user. @@ -30,7 +31,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -body = memos.V2User() # V2User | +body = memos.V1User() # V1User | try: # CreateUser creates a new user. @@ -44,11 +45,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2User**](V2User.md)| | + **body** | [**V1User**](V1User.md)| | ### Return type -[**V2CreateUserResponse**](V2CreateUserResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -62,7 +63,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_create_user_access_token** -> V2CreateUserAccessTokenResponse user_service_create_user_access_token(body, name) +> V1UserAccessToken user_service_create_user_access_token(body, name) CreateUserAccessToken creates a new access token for a user. @@ -77,7 +78,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() body = memos.UserServiceCreateUserAccessTokenBody() # UserServiceCreateUserAccessTokenBody | -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} try: # CreateUserAccessToken creates a new access token for a user. @@ -92,11 +93,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**UserServiceCreateUserAccessTokenBody**](UserServiceCreateUserAccessTokenBody.md)| | - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2CreateUserAccessTokenResponse**](V2CreateUserAccessTokenResponse.md) +[**V1UserAccessToken**](V1UserAccessToken.md) ### Authorization @@ -110,7 +111,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_delete_user** -> V2DeleteUserResponse user_service_delete_user(name) +> object user_service_delete_user(name) DeleteUser deletes a user. @@ -124,7 +125,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} try: # DeleteUser deletes a user. @@ -138,11 +139,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2DeleteUserResponse**](V2DeleteUserResponse.md) +**object** ### Authorization @@ -156,7 +157,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_delete_user_access_token** -> V2DeleteUserAccessTokenResponse user_service_delete_user_access_token(name, access_token) +> object user_service_delete_user_access_token(name, access_token) DeleteUserAccessToken deletes an access token for a user. @@ -170,7 +171,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} access_token = 'access_token_example' # str | access_token is the access token to delete. try: @@ -185,12 +186,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | **access_token** | **str**| access_token is the access token to delete. | ### Return type -[**V2DeleteUserAccessTokenResponse**](V2DeleteUserAccessTokenResponse.md) +**object** ### Authorization @@ -204,7 +205,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_get_user** -> V2GetUserResponse user_service_get_user(name) +> V1User user_service_get_user(name) GetUser gets a user by name. @@ -218,7 +219,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} try: # GetUser gets a user by name. @@ -232,11 +233,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2GetUserResponse**](V2GetUserResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -250,7 +251,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_get_user_setting** -> V2GetUserSettingResponse user_service_get_user_setting(name) +> Apiv1UserSetting user_service_get_user_setting(name) GetUserSetting gets the setting of a user. @@ -264,7 +265,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} try: # GetUserSetting gets the setting of a user. @@ -278,11 +279,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2GetUserSettingResponse**](V2GetUserSettingResponse.md) +[**Apiv1UserSetting**](Apiv1UserSetting.md) ### Authorization @@ -296,7 +297,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_list_user_access_tokens** -> V2ListUserAccessTokensResponse user_service_list_user_access_tokens(name) +> V1ListUserAccessTokensResponse user_service_list_user_access_tokens(name) ListUserAccessTokens returns a list of access tokens for a user. @@ -310,7 +311,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -name = 'name_example' # str | The name of the user. Format: users/{username} +name = 'name_example' # str | The name of the user. Format: users/{id} try: # ListUserAccessTokens returns a list of access tokens for a user. @@ -324,11 +325,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **str**| The name of the user. Format: users/{username} | + **name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2ListUserAccessTokensResponse**](V2ListUserAccessTokensResponse.md) +[**V1ListUserAccessTokensResponse**](V1ListUserAccessTokensResponse.md) ### Authorization @@ -342,7 +343,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_list_users** -> V2ListUsersResponse user_service_list_users() +> V1ListUsersResponse user_service_list_users() ListUsers returns a list of users. @@ -370,7 +371,53 @@ This endpoint does not need any parameter. ### Return type -[**V2ListUsersResponse**](V2ListUsersResponse.md) +[**V1ListUsersResponse**](V1ListUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **user_service_search_users** +> V1SearchUsersResponse user_service_search_users(filter=filter) + +SearchUsers searches users by filter. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.UserServiceApi() +filter = 'filter_example' # str | Filter is used to filter users returned in the list. Format: \"username == frank\" (optional) + +try: + # SearchUsers searches users by filter. + api_response = api_instance.user_service_search_users(filter=filter) + pprint(api_response) +except ApiException as e: + print("Exception when calling UserServiceApi->user_service_search_users: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **str**| Filter is used to filter users returned in the list. Format: \"username == frank\" | [optional] + +### Return type + +[**V1SearchUsersResponse**](V1SearchUsersResponse.md) ### Authorization @@ -384,7 +431,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_update_user** -> V2UpdateUserResponse user_service_update_user(body, user_name) +> V1User user_service_update_user(body, user_name) UpdateUser updates a user. @@ -398,8 +445,8 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -body = memos.V2UserNameBody() # V2UserNameBody | -user_name = 'user_name_example' # str | The name of the user. Format: users/{username} +body = memos.V1UserNameBody() # V1UserNameBody | +user_name = 'user_name_example' # str | The name of the user. Format: users/{id} try: # UpdateUser updates a user. @@ -413,12 +460,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2UserNameBody**](V2UserNameBody.md)| | - **user_name** | **str**| The name of the user. Format: users/{username} | + **body** | [**V1UserNameBody**](V1UserNameBody.md)| | + **user_name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2UpdateUserResponse**](V2UpdateUserResponse.md) +[**V1User**](V1User.md) ### Authorization @@ -432,7 +479,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **user_service_update_user_setting** -> V2UpdateUserSettingResponse user_service_update_user_setting(body, setting_name) +> Apiv1UserSetting user_service_update_user_setting(body, setting_name) UpdateUserSetting updates the setting of a user. @@ -446,8 +493,8 @@ from pprint import pprint # create an instance of the API class api_instance = memos.UserServiceApi() -body = memos.V2SettingNameBody() # V2SettingNameBody | -setting_name = 'setting_name_example' # str | The name of the user. Format: users/{username} +body = memos.V1SettingNameBody() # V1SettingNameBody | +setting_name = 'setting_name_example' # str | The name of the user. Format: users/{id} try: # UpdateUserSetting updates the setting of a user. @@ -461,12 +508,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2SettingNameBody**](V2SettingNameBody.md)| | - **setting_name** | **str**| The name of the user. Format: users/{username} | + **body** | [**V1SettingNameBody**](V1SettingNameBody.md)| | + **setting_name** | **str**| The name of the user. Format: users/{id} | ### Return type -[**V2UpdateUserSettingResponse**](V2UpdateUserSettingResponse.md) +[**Apiv1UserSetting**](Apiv1UserSetting.md) ### Authorization diff --git a/docs/V1Activity.md b/docs/V1Activity.md new file mode 100644 index 0000000..d997a84 --- /dev/null +++ b/docs/V1Activity.md @@ -0,0 +1,14 @@ +# V1Activity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The system-generated unique identifier for the activity. | [optional] +**creator_id** | **int** | The system-generated unique identifier for the user who created the activity. | [optional] +**type** | **str** | The type of the activity. | [optional] +**level** | **str** | The level of the activity. | [optional] +**create_time** | **datetime** | The create time of the activity. | [optional] +**payload** | [**Apiv1ActivityPayload**](Apiv1ActivityPayload.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1AutoLinkNode.md b/docs/V1AutoLinkNode.md new file mode 100644 index 0000000..1038cec --- /dev/null +++ b/docs/V1AutoLinkNode.md @@ -0,0 +1,10 @@ +# V1AutoLinkNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | | [optional] +**is_raw_text** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1BatchUpsertTagRequest.md b/docs/V1BatchUpsertTagRequest.md new file mode 100644 index 0000000..7b44a5a --- /dev/null +++ b/docs/V1BatchUpsertTagRequest.md @@ -0,0 +1,9 @@ +# V1BatchUpsertTagRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**list[V1UpsertTagRequest]**](V1UpsertTagRequest.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1BlockquoteNode.md b/docs/V1BlockquoteNode.md new file mode 100644 index 0000000..4eef63e --- /dev/null +++ b/docs/V1BlockquoteNode.md @@ -0,0 +1,9 @@ +# V1BlockquoteNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1BoldItalicNode.md b/docs/V1BoldItalicNode.md new file mode 100644 index 0000000..c11040d --- /dev/null +++ b/docs/V1BoldItalicNode.md @@ -0,0 +1,10 @@ +# V1BoldItalicNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1BoldNode.md b/docs/V1BoldNode.md new file mode 100644 index 0000000..013dfc9 --- /dev/null +++ b/docs/V1BoldNode.md @@ -0,0 +1,10 @@ +# V1BoldNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1CodeBlockNode.md b/docs/V1CodeBlockNode.md new file mode 100644 index 0000000..c98d730 --- /dev/null +++ b/docs/V1CodeBlockNode.md @@ -0,0 +1,10 @@ +# V1CodeBlockNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**language** | **str** | | [optional] +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1CodeNode.md b/docs/V1CodeNode.md new file mode 100644 index 0000000..7231029 --- /dev/null +++ b/docs/V1CodeNode.md @@ -0,0 +1,9 @@ +# V1CodeNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1CreateMemoRequest.md b/docs/V1CreateMemoRequest.md new file mode 100644 index 0000000..90445ac --- /dev/null +++ b/docs/V1CreateMemoRequest.md @@ -0,0 +1,10 @@ +# V1CreateMemoRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] +**visibility** | [**V1Visibility**](V1Visibility.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1CreateWebhookRequest.md b/docs/V1CreateWebhookRequest.md new file mode 100644 index 0000000..b4667f6 --- /dev/null +++ b/docs/V1CreateWebhookRequest.md @@ -0,0 +1,10 @@ +# V1CreateWebhookRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1EmbeddedContentNode.md b/docs/V1EmbeddedContentNode.md new file mode 100644 index 0000000..92eef9f --- /dev/null +++ b/docs/V1EmbeddedContentNode.md @@ -0,0 +1,10 @@ +# V1EmbeddedContentNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_name** | **str** | | [optional] +**params** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1EscapingCharacterNode.md b/docs/V1EscapingCharacterNode.md new file mode 100644 index 0000000..30a9eda --- /dev/null +++ b/docs/V1EscapingCharacterNode.md @@ -0,0 +1,9 @@ +# V1EscapingCharacterNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ExportMemosRequest.md b/docs/V1ExportMemosRequest.md new file mode 100644 index 0000000..f357964 --- /dev/null +++ b/docs/V1ExportMemosRequest.md @@ -0,0 +1,9 @@ +# V1ExportMemosRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filter** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ExportMemosResponse.md b/docs/V1ExportMemosResponse.md new file mode 100644 index 0000000..3274989 --- /dev/null +++ b/docs/V1ExportMemosResponse.md @@ -0,0 +1,9 @@ +# V1ExportMemosResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1GetTagSuggestionsResponse.md b/docs/V1GetTagSuggestionsResponse.md new file mode 100644 index 0000000..529c160 --- /dev/null +++ b/docs/V1GetTagSuggestionsResponse.md @@ -0,0 +1,9 @@ +# V1GetTagSuggestionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1GetUserMemosStatsResponse.md b/docs/V1GetUserMemosStatsResponse.md new file mode 100644 index 0000000..c385480 --- /dev/null +++ b/docs/V1GetUserMemosStatsResponse.md @@ -0,0 +1,9 @@ +# V1GetUserMemosStatsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stats** | **dict(str, int)** | stats is the stats of memo creating/updating activities. key is the year-month-day string. e.g. \"2020-01-01\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1HeadingNode.md b/docs/V1HeadingNode.md new file mode 100644 index 0000000..88734fe --- /dev/null +++ b/docs/V1HeadingNode.md @@ -0,0 +1,10 @@ +# V1HeadingNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**level** | **int** | | [optional] +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1HighlightNode.md b/docs/V1HighlightNode.md new file mode 100644 index 0000000..297a4e7 --- /dev/null +++ b/docs/V1HighlightNode.md @@ -0,0 +1,9 @@ +# V1HighlightNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1HorizontalRuleNode.md b/docs/V1HorizontalRuleNode.md new file mode 100644 index 0000000..c11e055 --- /dev/null +++ b/docs/V1HorizontalRuleNode.md @@ -0,0 +1,9 @@ +# V1HorizontalRuleNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ImageNode.md b/docs/V1ImageNode.md new file mode 100644 index 0000000..ffd2712 --- /dev/null +++ b/docs/V1ImageNode.md @@ -0,0 +1,10 @@ +# V1ImageNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**alt_text** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Inbox.md b/docs/V1Inbox.md new file mode 100644 index 0000000..df8ee8f --- /dev/null +++ b/docs/V1Inbox.md @@ -0,0 +1,15 @@ +# V1Inbox + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**sender** | **str** | | [optional] +**receiver** | **str** | | [optional] +**status** | [**V1InboxStatus**](V1InboxStatus.md) | | [optional] +**create_time** | **datetime** | | [optional] +**type** | [**V1InboxType**](V1InboxType.md) | | [optional] +**activity_id** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1InboxNameBody.md b/docs/V1InboxNameBody.md new file mode 100644 index 0000000..e3bc6b4 --- /dev/null +++ b/docs/V1InboxNameBody.md @@ -0,0 +1,14 @@ +# V1InboxNameBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sender** | **str** | | [optional] +**receiver** | **str** | | [optional] +**status** | [**V1InboxStatus**](V1InboxStatus.md) | | [optional] +**create_time** | **datetime** | | [optional] +**type** | [**V1InboxType**](V1InboxType.md) | | [optional] +**activity_id** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1InboxStatus.md b/docs/V1InboxStatus.md new file mode 100644 index 0000000..c972dee --- /dev/null +++ b/docs/V1InboxStatus.md @@ -0,0 +1,8 @@ +# V1InboxStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1InboxType.md b/docs/V1InboxType.md new file mode 100644 index 0000000..9922a29 --- /dev/null +++ b/docs/V1InboxType.md @@ -0,0 +1,8 @@ +# V1InboxType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ItalicNode.md b/docs/V1ItalicNode.md new file mode 100644 index 0000000..16cb2d5 --- /dev/null +++ b/docs/V1ItalicNode.md @@ -0,0 +1,10 @@ +# V1ItalicNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1LineBreakNode.md b/docs/V1LineBreakNode.md new file mode 100644 index 0000000..bfca1a1 --- /dev/null +++ b/docs/V1LineBreakNode.md @@ -0,0 +1,8 @@ +# V1LineBreakNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1LinkMetadata.md b/docs/V1LinkMetadata.md new file mode 100644 index 0000000..d5347cd --- /dev/null +++ b/docs/V1LinkMetadata.md @@ -0,0 +1,11 @@ +# V1LinkMetadata + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**description** | **str** | | [optional] +**image** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1LinkNode.md b/docs/V1LinkNode.md new file mode 100644 index 0000000..e47402c --- /dev/null +++ b/docs/V1LinkNode.md @@ -0,0 +1,10 @@ +# V1LinkNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListIdentityProvidersResponse.md b/docs/V1ListIdentityProvidersResponse.md new file mode 100644 index 0000000..719aa7b --- /dev/null +++ b/docs/V1ListIdentityProvidersResponse.md @@ -0,0 +1,9 @@ +# V1ListIdentityProvidersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identity_providers** | [**list[Apiv1IdentityProvider]**](Apiv1IdentityProvider.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListInboxesResponse.md b/docs/V1ListInboxesResponse.md new file mode 100644 index 0000000..f0eb8ed --- /dev/null +++ b/docs/V1ListInboxesResponse.md @@ -0,0 +1,9 @@ +# V1ListInboxesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inboxes** | [**list[V1Inbox]**](V1Inbox.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListMemoCommentsResponse.md b/docs/V1ListMemoCommentsResponse.md new file mode 100644 index 0000000..7d339da --- /dev/null +++ b/docs/V1ListMemoCommentsResponse.md @@ -0,0 +1,9 @@ +# V1ListMemoCommentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memos** | [**list[V1Memo]**](V1Memo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListMemoReactionsResponse.md b/docs/V1ListMemoReactionsResponse.md new file mode 100644 index 0000000..0dc2d6d --- /dev/null +++ b/docs/V1ListMemoReactionsResponse.md @@ -0,0 +1,9 @@ +# V1ListMemoReactionsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reactions** | [**list[V1Reaction]**](V1Reaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListMemoRelationsResponse.md b/docs/V1ListMemoRelationsResponse.md new file mode 100644 index 0000000..37458a9 --- /dev/null +++ b/docs/V1ListMemoRelationsResponse.md @@ -0,0 +1,9 @@ +# V1ListMemoRelationsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**relations** | [**list[V1MemoRelation]**](V1MemoRelation.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListMemoResourcesResponse.md b/docs/V1ListMemoResourcesResponse.md new file mode 100644 index 0000000..460512c --- /dev/null +++ b/docs/V1ListMemoResourcesResponse.md @@ -0,0 +1,9 @@ +# V1ListMemoResourcesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListMemosResponse.md b/docs/V1ListMemosResponse.md new file mode 100644 index 0000000..640cae0 --- /dev/null +++ b/docs/V1ListMemosResponse.md @@ -0,0 +1,10 @@ +# V1ListMemosResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memos** | [**list[V1Memo]**](V1Memo.md) | | [optional] +**next_page_token** | **str** | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListResourcesResponse.md b/docs/V1ListResourcesResponse.md new file mode 100644 index 0000000..2f51791 --- /dev/null +++ b/docs/V1ListResourcesResponse.md @@ -0,0 +1,9 @@ +# V1ListResourcesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListTagsResponse.md b/docs/V1ListTagsResponse.md new file mode 100644 index 0000000..3ff414f --- /dev/null +++ b/docs/V1ListTagsResponse.md @@ -0,0 +1,9 @@ +# V1ListTagsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | [**list[V1Tag]**](V1Tag.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListUserAccessTokensResponse.md b/docs/V1ListUserAccessTokensResponse.md new file mode 100644 index 0000000..48c3c95 --- /dev/null +++ b/docs/V1ListUserAccessTokensResponse.md @@ -0,0 +1,9 @@ +# V1ListUserAccessTokensResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_tokens** | [**list[V1UserAccessToken]**](V1UserAccessToken.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListUsersResponse.md b/docs/V1ListUsersResponse.md new file mode 100644 index 0000000..7ed48f9 --- /dev/null +++ b/docs/V1ListUsersResponse.md @@ -0,0 +1,9 @@ +# V1ListUsersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**list[V1User]**](V1User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListWebhooksResponse.md b/docs/V1ListWebhooksResponse.md new file mode 100644 index 0000000..6439f6a --- /dev/null +++ b/docs/V1ListWebhooksResponse.md @@ -0,0 +1,9 @@ +# V1ListWebhooksResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**webhooks** | [**list[V1Webhook]**](V1Webhook.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ListWorkspaceSettingsResponse.md b/docs/V1ListWorkspaceSettingsResponse.md new file mode 100644 index 0000000..5992e67 --- /dev/null +++ b/docs/V1ListWorkspaceSettingsResponse.md @@ -0,0 +1,9 @@ +# V1ListWorkspaceSettingsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settings** | [**list[Apiv1WorkspaceSetting]**](Apiv1WorkspaceSetting.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1MathBlockNode.md b/docs/V1MathBlockNode.md new file mode 100644 index 0000000..190c238 --- /dev/null +++ b/docs/V1MathBlockNode.md @@ -0,0 +1,9 @@ +# V1MathBlockNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1MathNode.md b/docs/V1MathNode.md new file mode 100644 index 0000000..5f8d4f4 --- /dev/null +++ b/docs/V1MathNode.md @@ -0,0 +1,9 @@ +# V1MathNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Memo.md b/docs/V1Memo.md new file mode 100644 index 0000000..48c42ca --- /dev/null +++ b/docs/V1Memo.md @@ -0,0 +1,23 @@ +# V1Memo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the memo. Format: memos/{id} id is the system generated id. | [optional] +**uid** | **str** | The user defined id of the memo. | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] +**creator** | **str** | | [optional] +**create_time** | **datetime** | | [optional] +**update_time** | **datetime** | | [optional] +**display_time** | **datetime** | | [optional] +**content** | **str** | | [optional] +**nodes** | [**list[V1Node]**](V1Node.md) | | [optional] +**visibility** | [**V1Visibility**](V1Visibility.md) | | [optional] +**pinned** | **bool** | | [optional] +**parent_id** | **int** | | [optional] +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] +**relations** | [**list[V1MemoRelation]**](V1MemoRelation.md) | | [optional] +**reactions** | [**list[V1Reaction]**](V1Reaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1MemoNameBody.md b/docs/V1MemoNameBody.md new file mode 100644 index 0000000..c80e142 --- /dev/null +++ b/docs/V1MemoNameBody.md @@ -0,0 +1,22 @@ +# V1MemoNameBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uid** | **str** | The user defined id of the memo. | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] +**creator** | **str** | | [optional] +**create_time** | **datetime** | | [optional] +**update_time** | **datetime** | | [optional] +**display_time** | **datetime** | | [optional] +**content** | **str** | | [optional] +**nodes** | [**list[V1Node]**](V1Node.md) | | [optional] +**visibility** | [**V1Visibility**](V1Visibility.md) | | [optional] +**pinned** | **bool** | | [optional] +**parent_id** | **int** | | [optional] +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] +**relations** | [**list[V1MemoRelation]**](V1MemoRelation.md) | | [optional] +**reactions** | [**list[V1Reaction]**](V1Reaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1MemoRelation.md b/docs/V1MemoRelation.md new file mode 100644 index 0000000..342145f --- /dev/null +++ b/docs/V1MemoRelation.md @@ -0,0 +1,11 @@ +# V1MemoRelation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memo** | **str** | | [optional] +**related_memo** | **str** | | [optional] +**type** | [**V1MemoRelationType**](V1MemoRelationType.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1MemoRelationType.md b/docs/V1MemoRelationType.md new file mode 100644 index 0000000..bc763c9 --- /dev/null +++ b/docs/V1MemoRelationType.md @@ -0,0 +1,8 @@ +# V1MemoRelationType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Node.md b/docs/V1Node.md new file mode 100644 index 0000000..7a1c116 --- /dev/null +++ b/docs/V1Node.md @@ -0,0 +1,38 @@ +# V1Node + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**V1NodeType**](V1NodeType.md) | | [optional] +**line_break_node** | [**V1LineBreakNode**](V1LineBreakNode.md) | | [optional] +**paragraph_node** | [**V1ParagraphNode**](V1ParagraphNode.md) | | [optional] +**code_block_node** | [**V1CodeBlockNode**](V1CodeBlockNode.md) | | [optional] +**heading_node** | [**V1HeadingNode**](V1HeadingNode.md) | | [optional] +**horizontal_rule_node** | [**V1HorizontalRuleNode**](V1HorizontalRuleNode.md) | | [optional] +**blockquote_node** | [**V1BlockquoteNode**](V1BlockquoteNode.md) | | [optional] +**ordered_list_node** | [**V1OrderedListNode**](V1OrderedListNode.md) | | [optional] +**unordered_list_node** | [**V1UnorderedListNode**](V1UnorderedListNode.md) | | [optional] +**task_list_node** | [**V1TaskListNode**](V1TaskListNode.md) | | [optional] +**math_block_node** | [**V1MathBlockNode**](V1MathBlockNode.md) | | [optional] +**table_node** | [**V1TableNode**](V1TableNode.md) | | [optional] +**embedded_content_node** | [**V1EmbeddedContentNode**](V1EmbeddedContentNode.md) | | [optional] +**text_node** | [**V1TextNode**](V1TextNode.md) | | [optional] +**bold_node** | [**V1BoldNode**](V1BoldNode.md) | | [optional] +**italic_node** | [**V1ItalicNode**](V1ItalicNode.md) | | [optional] +**bold_italic_node** | [**V1BoldItalicNode**](V1BoldItalicNode.md) | | [optional] +**code_node** | [**V1CodeNode**](V1CodeNode.md) | | [optional] +**image_node** | [**V1ImageNode**](V1ImageNode.md) | | [optional] +**link_node** | [**V1LinkNode**](V1LinkNode.md) | | [optional] +**auto_link_node** | [**V1AutoLinkNode**](V1AutoLinkNode.md) | | [optional] +**tag_node** | [**V1TagNode**](V1TagNode.md) | | [optional] +**strikethrough_node** | [**V1StrikethroughNode**](V1StrikethroughNode.md) | | [optional] +**escaping_character_node** | [**V1EscapingCharacterNode**](V1EscapingCharacterNode.md) | | [optional] +**math_node** | [**V1MathNode**](V1MathNode.md) | | [optional] +**highlight_node** | [**V1HighlightNode**](V1HighlightNode.md) | | [optional] +**subscript_node** | [**V1SubscriptNode**](V1SubscriptNode.md) | | [optional] +**superscript_node** | [**V1SuperscriptNode**](V1SuperscriptNode.md) | | [optional] +**referenced_content_node** | [**V1ReferencedContentNode**](V1ReferencedContentNode.md) | | [optional] +**spoiler_node** | [**V1SpoilerNode**](V1SpoilerNode.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1NodeType.md b/docs/V1NodeType.md new file mode 100644 index 0000000..804aab4 --- /dev/null +++ b/docs/V1NodeType.md @@ -0,0 +1,8 @@ +# V1NodeType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1OrderedListNode.md b/docs/V1OrderedListNode.md new file mode 100644 index 0000000..ed19c26 --- /dev/null +++ b/docs/V1OrderedListNode.md @@ -0,0 +1,11 @@ +# V1OrderedListNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**number** | **str** | | [optional] +**indent** | **int** | | [optional] +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ParagraphNode.md b/docs/V1ParagraphNode.md new file mode 100644 index 0000000..213e0db --- /dev/null +++ b/docs/V1ParagraphNode.md @@ -0,0 +1,9 @@ +# V1ParagraphNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ParseMarkdownRequest.md b/docs/V1ParseMarkdownRequest.md new file mode 100644 index 0000000..78eb68b --- /dev/null +++ b/docs/V1ParseMarkdownRequest.md @@ -0,0 +1,9 @@ +# V1ParseMarkdownRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**markdown** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ParseMarkdownResponse.md b/docs/V1ParseMarkdownResponse.md new file mode 100644 index 0000000..d08e31b --- /dev/null +++ b/docs/V1ParseMarkdownResponse.md @@ -0,0 +1,9 @@ +# V1ParseMarkdownResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Reaction.md b/docs/V1Reaction.md new file mode 100644 index 0000000..51f1e1a --- /dev/null +++ b/docs/V1Reaction.md @@ -0,0 +1,12 @@ +# V1Reaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**creator** | **str** | | [optional] +**content_id** | **str** | | [optional] +**reaction_type** | [**V1ReactionType**](V1ReactionType.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ReactionType.md b/docs/V1ReactionType.md new file mode 100644 index 0000000..2a45e50 --- /dev/null +++ b/docs/V1ReactionType.md @@ -0,0 +1,8 @@ +# V1ReactionType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ReferencedContentNode.md b/docs/V1ReferencedContentNode.md new file mode 100644 index 0000000..8f13f6e --- /dev/null +++ b/docs/V1ReferencedContentNode.md @@ -0,0 +1,10 @@ +# V1ReferencedContentNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_name** | **str** | | [optional] +**params** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1RenameTagRequest.md b/docs/V1RenameTagRequest.md new file mode 100644 index 0000000..bd3cb69 --- /dev/null +++ b/docs/V1RenameTagRequest.md @@ -0,0 +1,11 @@ +# V1RenameTagRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user** | **str** | | [optional] +**old_name** | **str** | | [optional] +**new_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Resource.md b/docs/V1Resource.md new file mode 100644 index 0000000..2646f9d --- /dev/null +++ b/docs/V1Resource.md @@ -0,0 +1,17 @@ +# V1Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the resource. Format: resources/{id} id is the system generated unique identifier. | [optional] +**uid** | **str** | The user defined id of the resource. | [optional] +**create_time** | **datetime** | | [optional] +**filename** | **str** | | [optional] +**content** | **str** | | [optional] +**external_link** | **str** | | [optional] +**type** | **str** | | [optional] +**size** | **str** | | [optional] +**memo** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1ResourceNameBody.md b/docs/V1ResourceNameBody.md new file mode 100644 index 0000000..c93c258 --- /dev/null +++ b/docs/V1ResourceNameBody.md @@ -0,0 +1,16 @@ +# V1ResourceNameBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uid** | **str** | The user defined id of the resource. | [optional] +**create_time** | **datetime** | | [optional] +**filename** | **str** | | [optional] +**content** | **str** | | [optional] +**external_link** | **str** | | [optional] +**type** | **str** | | [optional] +**size** | **str** | | [optional] +**memo** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1RestoreMarkdownRequest.md b/docs/V1RestoreMarkdownRequest.md new file mode 100644 index 0000000..202fb09 --- /dev/null +++ b/docs/V1RestoreMarkdownRequest.md @@ -0,0 +1,9 @@ +# V1RestoreMarkdownRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodes** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1RestoreMarkdownResponse.md b/docs/V1RestoreMarkdownResponse.md new file mode 100644 index 0000000..d8aa3b1 --- /dev/null +++ b/docs/V1RestoreMarkdownResponse.md @@ -0,0 +1,9 @@ +# V1RestoreMarkdownResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**markdown** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1RowStatus.md b/docs/V1RowStatus.md new file mode 100644 index 0000000..34482a1 --- /dev/null +++ b/docs/V1RowStatus.md @@ -0,0 +1,8 @@ +# V1RowStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SearchMemosResponse.md b/docs/V1SearchMemosResponse.md new file mode 100644 index 0000000..39b3a64 --- /dev/null +++ b/docs/V1SearchMemosResponse.md @@ -0,0 +1,9 @@ +# V1SearchMemosResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**memos** | [**list[V1Memo]**](V1Memo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SearchResourcesResponse.md b/docs/V1SearchResourcesResponse.md new file mode 100644 index 0000000..d31a8c9 --- /dev/null +++ b/docs/V1SearchResourcesResponse.md @@ -0,0 +1,9 @@ +# V1SearchResourcesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**list[V1Resource]**](V1Resource.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SearchUsersResponse.md b/docs/V1SearchUsersResponse.md new file mode 100644 index 0000000..956ccfe --- /dev/null +++ b/docs/V1SearchUsersResponse.md @@ -0,0 +1,9 @@ +# V1SearchUsersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**list[V1User]**](V1User.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SettingNameBody.md b/docs/V1SettingNameBody.md new file mode 100644 index 0000000..190936d --- /dev/null +++ b/docs/V1SettingNameBody.md @@ -0,0 +1,11 @@ +# V1SettingNameBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**locale** | **str** | The preferred locale of the user. | [optional] +**appearance** | **str** | The preferred appearance of the user. | [optional] +**memo_visibility** | **str** | The default visibility of the memo. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SpoilerNode.md b/docs/V1SpoilerNode.md new file mode 100644 index 0000000..27a4c9a --- /dev/null +++ b/docs/V1SpoilerNode.md @@ -0,0 +1,9 @@ +# V1SpoilerNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1StrikethroughNode.md b/docs/V1StrikethroughNode.md new file mode 100644 index 0000000..9be8454 --- /dev/null +++ b/docs/V1StrikethroughNode.md @@ -0,0 +1,9 @@ +# V1StrikethroughNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SubscriptNode.md b/docs/V1SubscriptNode.md new file mode 100644 index 0000000..0409742 --- /dev/null +++ b/docs/V1SubscriptNode.md @@ -0,0 +1,9 @@ +# V1SubscriptNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1SuperscriptNode.md b/docs/V1SuperscriptNode.md new file mode 100644 index 0000000..956e36c --- /dev/null +++ b/docs/V1SuperscriptNode.md @@ -0,0 +1,9 @@ +# V1SuperscriptNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1TableNode.md b/docs/V1TableNode.md new file mode 100644 index 0000000..7cde0ca --- /dev/null +++ b/docs/V1TableNode.md @@ -0,0 +1,11 @@ +# V1TableNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | **list[str]** | | [optional] +**delimiter** | **list[str]** | | [optional] +**rows** | [**list[TableNodeRow]**](TableNodeRow.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Tag.md b/docs/V1Tag.md new file mode 100644 index 0000000..6fe31ad --- /dev/null +++ b/docs/V1Tag.md @@ -0,0 +1,10 @@ +# V1Tag + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**creator** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1TagNode.md b/docs/V1TagNode.md new file mode 100644 index 0000000..f2504ce --- /dev/null +++ b/docs/V1TagNode.md @@ -0,0 +1,9 @@ +# V1TagNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1TaskListNode.md b/docs/V1TaskListNode.md new file mode 100644 index 0000000..38e28d1 --- /dev/null +++ b/docs/V1TaskListNode.md @@ -0,0 +1,12 @@ +# V1TaskListNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] +**indent** | **int** | | [optional] +**complete** | **bool** | | [optional] +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1TextNode.md b/docs/V1TextNode.md new file mode 100644 index 0000000..cdf5f30 --- /dev/null +++ b/docs/V1TextNode.md @@ -0,0 +1,9 @@ +# V1TextNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1UnorderedListNode.md b/docs/V1UnorderedListNode.md new file mode 100644 index 0000000..ee73dbd --- /dev/null +++ b/docs/V1UnorderedListNode.md @@ -0,0 +1,11 @@ +# V1UnorderedListNode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**symbol** | **str** | | [optional] +**indent** | **int** | | [optional] +**children** | [**list[V1Node]**](V1Node.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1UpsertTagRequest.md b/docs/V1UpsertTagRequest.md new file mode 100644 index 0000000..5d0fc58 --- /dev/null +++ b/docs/V1UpsertTagRequest.md @@ -0,0 +1,9 @@ +# V1UpsertTagRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1User.md b/docs/V1User.md new file mode 100644 index 0000000..bb5ee71 --- /dev/null +++ b/docs/V1User.md @@ -0,0 +1,20 @@ +# V1User + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**id** | **int** | The system generated uid of the user. | [optional] +**role** | [**UserRole**](UserRole.md) | | [optional] +**username** | **str** | | [optional] +**email** | **str** | | [optional] +**nickname** | **str** | | [optional] +**avatar_url** | **str** | | [optional] +**description** | **str** | | [optional] +**password** | **str** | | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] +**create_time** | **datetime** | | [optional] +**update_time** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1UserAccessToken.md b/docs/V1UserAccessToken.md new file mode 100644 index 0000000..2d3ebd8 --- /dev/null +++ b/docs/V1UserAccessToken.md @@ -0,0 +1,12 @@ +# V1UserAccessToken + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**access_token** | **str** | | [optional] +**description** | **str** | | [optional] +**issued_at** | **datetime** | | [optional] +**expires_at** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1UserNameBody.md b/docs/V1UserNameBody.md new file mode 100644 index 0000000..dbdbf59 --- /dev/null +++ b/docs/V1UserNameBody.md @@ -0,0 +1,19 @@ +# V1UserNameBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | The system generated uid of the user. | [optional] +**role** | [**UserRole**](UserRole.md) | | [optional] +**username** | **str** | | [optional] +**email** | **str** | | [optional] +**nickname** | **str** | | [optional] +**avatar_url** | **str** | | [optional] +**description** | **str** | | [optional] +**password** | **str** | | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] +**create_time** | **datetime** | | [optional] +**update_time** | **datetime** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Visibility.md b/docs/V1Visibility.md new file mode 100644 index 0000000..75b069b --- /dev/null +++ b/docs/V1Visibility.md @@ -0,0 +1,8 @@ +# V1Visibility + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1Webhook.md b/docs/V1Webhook.md new file mode 100644 index 0000000..64bce7c --- /dev/null +++ b/docs/V1Webhook.md @@ -0,0 +1,15 @@ +# V1Webhook + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**creator_id** | **int** | | [optional] +**created_time** | **datetime** | | [optional] +**updated_time** | **datetime** | | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] +**name** | **str** | | [optional] +**url** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/V1WorkspaceProfile.md b/docs/V1WorkspaceProfile.md new file mode 100644 index 0000000..955f218 --- /dev/null +++ b/docs/V1WorkspaceProfile.md @@ -0,0 +1,11 @@ +# V1WorkspaceProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**owner** | **str** | | [optional] +**version** | **str** | | [optional] +**mode** | **str** | mode is the instance mode (e.g. \"prod\", \"dev\" or \"demo\"). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/WebhookServiceApi.md b/docs/WebhookServiceApi.md index 480092d..13e9188 100644 --- a/docs/WebhookServiceApi.md +++ b/docs/WebhookServiceApi.md @@ -4,14 +4,14 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**webhook_service_create_webhook**](WebhookServiceApi.md#webhook_service_create_webhook) | **POST** /api/v2/webhooks | CreateWebhook creates a new webhook. -[**webhook_service_delete_webhook**](WebhookServiceApi.md#webhook_service_delete_webhook) | **DELETE** /api/v2/webhooks/{id} | DeleteWebhook deletes a webhook by id. -[**webhook_service_get_webhook**](WebhookServiceApi.md#webhook_service_get_webhook) | **GET** /api/v2/webhooks/{id} | GetWebhook returns a webhook by id. -[**webhook_service_list_webhooks**](WebhookServiceApi.md#webhook_service_list_webhooks) | **GET** /api/v2/webhooks | ListWebhooks returns a list of webhooks. -[**webhook_service_update_webhook**](WebhookServiceApi.md#webhook_service_update_webhook) | **PATCH** /api/v2/webhooks/{webhook.id} | UpdateWebhook updates a webhook. +[**webhook_service_create_webhook**](WebhookServiceApi.md#webhook_service_create_webhook) | **POST** /api/v1/webhooks | CreateWebhook creates a new webhook. +[**webhook_service_delete_webhook**](WebhookServiceApi.md#webhook_service_delete_webhook) | **DELETE** /api/v1/webhooks/{id} | DeleteWebhook deletes a webhook by id. +[**webhook_service_get_webhook**](WebhookServiceApi.md#webhook_service_get_webhook) | **GET** /api/v1/webhooks/{id} | GetWebhook returns a webhook by id. +[**webhook_service_list_webhooks**](WebhookServiceApi.md#webhook_service_list_webhooks) | **GET** /api/v1/webhooks | ListWebhooks returns a list of webhooks. +[**webhook_service_update_webhook**](WebhookServiceApi.md#webhook_service_update_webhook) | **PATCH** /api/v1/webhooks/{webhook.id} | UpdateWebhook updates a webhook. # **webhook_service_create_webhook** -> V2CreateWebhookResponse webhook_service_create_webhook(body) +> V1Webhook webhook_service_create_webhook(body) CreateWebhook creates a new webhook. @@ -25,7 +25,7 @@ from pprint import pprint # create an instance of the API class api_instance = memos.WebhookServiceApi() -body = memos.V2CreateWebhookRequest() # V2CreateWebhookRequest | +body = memos.V1CreateWebhookRequest() # V1CreateWebhookRequest | try: # CreateWebhook creates a new webhook. @@ -39,11 +39,11 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V2CreateWebhookRequest**](V2CreateWebhookRequest.md)| | + **body** | [**V1CreateWebhookRequest**](V1CreateWebhookRequest.md)| | ### Return type -[**V2CreateWebhookResponse**](V2CreateWebhookResponse.md) +[**V1Webhook**](V1Webhook.md) ### Authorization @@ -57,7 +57,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **webhook_service_delete_webhook** -> V2DeleteWebhookResponse webhook_service_delete_webhook(id) +> object webhook_service_delete_webhook(id) DeleteWebhook deletes a webhook by id. @@ -89,7 +89,7 @@ Name | Type | Description | Notes ### Return type -[**V2DeleteWebhookResponse**](V2DeleteWebhookResponse.md) +**object** ### Authorization @@ -103,7 +103,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **webhook_service_get_webhook** -> V2GetWebhookResponse webhook_service_get_webhook(id) +> V1Webhook webhook_service_get_webhook(id) GetWebhook returns a webhook by id. @@ -135,7 +135,7 @@ Name | Type | Description | Notes ### Return type -[**V2GetWebhookResponse**](V2GetWebhookResponse.md) +[**V1Webhook**](V1Webhook.md) ### Authorization @@ -149,7 +149,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **webhook_service_list_webhooks** -> V2ListWebhooksResponse webhook_service_list_webhooks(creator_id=creator_id) +> V1ListWebhooksResponse webhook_service_list_webhooks(creator_id=creator_id) ListWebhooks returns a list of webhooks. @@ -181,7 +181,7 @@ Name | Type | Description | Notes ### Return type -[**V2ListWebhooksResponse**](V2ListWebhooksResponse.md) +[**V1ListWebhooksResponse**](V1ListWebhooksResponse.md) ### Authorization @@ -195,7 +195,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **webhook_service_update_webhook** -> V2UpdateWebhookResponse webhook_service_update_webhook(body, webhook_id) +> V1Webhook webhook_service_update_webhook(body, webhook_id) UpdateWebhook updates a webhook. @@ -229,7 +229,7 @@ Name | Type | Description | Notes ### Return type -[**V2UpdateWebhookResponse**](V2UpdateWebhookResponse.md) +[**V1Webhook**](V1Webhook.md) ### Authorization diff --git a/docs/WebhooksWebhookIdBody.md b/docs/WebhooksWebhookIdBody.md index 6d6f935..9c6856a 100644 --- a/docs/WebhooksWebhookIdBody.md +++ b/docs/WebhooksWebhookIdBody.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **creator_id** | **int** | | [optional] **created_time** | **datetime** | | [optional] **updated_time** | **datetime** | | [optional] -**row_status** | [**Apiv2RowStatus**](Apiv2RowStatus.md) | | [optional] +**row_status** | [**V1RowStatus**](V1RowStatus.md) | | [optional] **name** | **str** | | [optional] **url** | **str** | | [optional] diff --git a/docs/WorkspaceServiceApi.md b/docs/WorkspaceServiceApi.md index 56e610d..720fbb8 100644 --- a/docs/WorkspaceServiceApi.md +++ b/docs/WorkspaceServiceApi.md @@ -4,10 +4,10 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**workspace_service_get_workspace_profile**](WorkspaceServiceApi.md#workspace_service_get_workspace_profile) | **GET** /api/v2/workspace/profile | GetWorkspaceProfile returns the workspace profile. +[**workspace_service_get_workspace_profile**](WorkspaceServiceApi.md#workspace_service_get_workspace_profile) | **GET** /api/v1/workspace/profile | GetWorkspaceProfile returns the workspace profile. # **workspace_service_get_workspace_profile** -> V2GetWorkspaceProfileResponse workspace_service_get_workspace_profile() +> V1WorkspaceProfile workspace_service_get_workspace_profile() GetWorkspaceProfile returns the workspace profile. @@ -35,7 +35,7 @@ This endpoint does not need any parameter. ### Return type -[**V2GetWorkspaceProfileResponse**](V2GetWorkspaceProfileResponse.md) +[**V1WorkspaceProfile**](V1WorkspaceProfile.md) ### Authorization diff --git a/docs/WorkspaceSettingServiceApi.md b/docs/WorkspaceSettingServiceApi.md index 3ffeae5..c2230dc 100644 --- a/docs/WorkspaceSettingServiceApi.md +++ b/docs/WorkspaceSettingServiceApi.md @@ -4,11 +4,12 @@ All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- -[**workspace_setting_service_get_workspace_setting**](WorkspaceSettingServiceApi.md#workspace_setting_service_get_workspace_setting) | **GET** /api/v2/workspace/{name} | GetWorkspaceSetting returns the setting by name. -[**workspace_setting_service_set_workspace_setting**](WorkspaceSettingServiceApi.md#workspace_setting_service_set_workspace_setting) | **PATCH** /api/v2/workspace/{setting.name} | SetWorkspaceSetting updates the setting. +[**workspace_setting_service_get_workspace_setting**](WorkspaceSettingServiceApi.md#workspace_setting_service_get_workspace_setting) | **GET** /api/v1/workspace/{name} | GetWorkspaceSetting returns the setting by name. +[**workspace_setting_service_list_workspace_settings**](WorkspaceSettingServiceApi.md#workspace_setting_service_list_workspace_settings) | **GET** /api/v1/workspace/settings | ListWorkspaceSetting returns the list of settings. +[**workspace_setting_service_set_workspace_setting**](WorkspaceSettingServiceApi.md#workspace_setting_service_set_workspace_setting) | **PATCH** /api/v1/workspace/{setting.name} | SetWorkspaceSetting updates the setting. # **workspace_setting_service_get_workspace_setting** -> V2GetWorkspaceSettingResponse workspace_setting_service_get_workspace_setting(name) +> Apiv1WorkspaceSetting workspace_setting_service_get_workspace_setting(name) GetWorkspaceSetting returns the setting by name. @@ -40,7 +41,49 @@ Name | Type | Description | Notes ### Return type -[**V2GetWorkspaceSettingResponse**](V2GetWorkspaceSettingResponse.md) +[**Apiv1WorkspaceSetting**](Apiv1WorkspaceSetting.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **workspace_setting_service_list_workspace_settings** +> V1ListWorkspaceSettingsResponse workspace_setting_service_list_workspace_settings() + +ListWorkspaceSetting returns the list of settings. + +### Example +```python +from __future__ import print_function +import time +import memos +from memos.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = memos.WorkspaceSettingServiceApi() + +try: + # ListWorkspaceSetting returns the list of settings. + api_response = api_instance.workspace_setting_service_list_workspace_settings() + pprint(api_response) +except ApiException as e: + print("Exception when calling WorkspaceSettingServiceApi->workspace_setting_service_list_workspace_settings: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1ListWorkspaceSettingsResponse**](V1ListWorkspaceSettingsResponse.md) ### Authorization @@ -54,7 +97,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **workspace_setting_service_set_workspace_setting** -> V2SetWorkspaceSettingResponse workspace_setting_service_set_workspace_setting(body, setting_name) +> Apiv1WorkspaceSetting workspace_setting_service_set_workspace_setting(body, setting_name) SetWorkspaceSetting updates the setting. @@ -88,7 +131,7 @@ Name | Type | Description | Notes ### Return type -[**V2SetWorkspaceSettingResponse**](V2SetWorkspaceSettingResponse.md) +[**Apiv1WorkspaceSetting**](Apiv1WorkspaceSetting.md) ### Authorization diff --git a/memos/__init__.py b/memos/__init__.py index 624a54b..4336188 100644 --- a/memos/__init__.py +++ b/memos/__init__.py @@ -3,7 +3,7 @@ # flake8: noqa """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -17,7 +17,9 @@ from __future__ import absolute_import # import apis into sdk package from memos.api.activity_service_api import ActivityServiceApi from memos.api.auth_service_api import AuthServiceApi +from memos.api.identity_provider_service_api import IdentityProviderServiceApi from memos.api.inbox_service_api import InboxServiceApi +from memos.api.markdown_service_api import MarkdownServiceApi from memos.api.memo_service_api import MemoServiceApi from memos.api.resource_service_api import ResourceServiceApi from memos.api.tag_service_api import TagServiceApi @@ -29,98 +31,113 @@ from memos.api.workspace_setting_service_api import WorkspaceSettingServiceApi from memos.api_client import ApiClient from memos.configuration import Configuration # import models into sdk package -from memos.models.apiv2_activity_memo_comment_payload import Apiv2ActivityMemoCommentPayload -from memos.models.apiv2_activity_payload import Apiv2ActivityPayload -from memos.models.apiv2_activity_version_update_payload import Apiv2ActivityVersionUpdatePayload -from memos.models.apiv2_reaction import Apiv2Reaction -from memos.models.apiv2_reaction_type import Apiv2ReactionType -from memos.models.apiv2_row_status import Apiv2RowStatus -from memos.models.apiv2_user_setting import Apiv2UserSetting -from memos.models.apiv2_webhook import Apiv2Webhook -from memos.models.apiv2_workspace_general_setting import Apiv2WorkspaceGeneralSetting -from memos.models.apiv2_workspace_setting import Apiv2WorkspaceSetting +from memos.models.apiv1_activity_memo_comment_payload import Apiv1ActivityMemoCommentPayload +from memos.models.apiv1_activity_payload import Apiv1ActivityPayload +from memos.models.apiv1_activity_version_update_payload import Apiv1ActivityVersionUpdatePayload +from memos.models.apiv1_field_mapping import Apiv1FieldMapping +from memos.models.apiv1_identity_provider import Apiv1IdentityProvider +from memos.models.apiv1_identity_provider_config import Apiv1IdentityProviderConfig +from memos.models.apiv1_identity_provider_type import Apiv1IdentityProviderType +from memos.models.apiv1_o_auth2_config import Apiv1OAuth2Config +from memos.models.apiv1_user_setting import Apiv1UserSetting +from memos.models.apiv1_workspace_custom_profile import Apiv1WorkspaceCustomProfile +from memos.models.apiv1_workspace_general_setting import Apiv1WorkspaceGeneralSetting +from memos.models.apiv1_workspace_memo_related_setting import Apiv1WorkspaceMemoRelatedSetting +from memos.models.apiv1_workspace_setting import Apiv1WorkspaceSetting +from memos.models.apiv1_workspace_storage_setting import Apiv1WorkspaceStorageSetting +from memos.models.apiv1_workspace_storage_setting_s3_config import Apiv1WorkspaceStorageSettingS3Config +from memos.models.apiv1_workspace_storage_setting_storage_type import Apiv1WorkspaceStorageSettingStorageType from memos.models.googlerpc_status import GooglerpcStatus from memos.models.memo_service_set_memo_relations_body import MemoServiceSetMemoRelationsBody from memos.models.memo_service_set_memo_resources_body import MemoServiceSetMemoResourcesBody -from memos.models.memos_memo_id_body import MemosMemoIdBody +from memos.models.memo_service_upsert_memo_reaction_body import MemoServiceUpsertMemoReactionBody from memos.models.protobuf_any import ProtobufAny -from memos.models.resources_resource_id_body import ResourcesResourceIdBody from memos.models.setting_is_the_setting_to_update_ import SettingIsTheSettingToUpdate_ +from memos.models.table_node_row import TableNodeRow +from memos.models.the_identity_provider_to_update_ import TheIdentityProviderToUpdate_ from memos.models.user_role import UserRole from memos.models.user_service_create_user_access_token_body import UserServiceCreateUserAccessTokenBody -from memos.models.v2_activity import V2Activity -from memos.models.v2_batch_upsert_tag_response import V2BatchUpsertTagResponse -from memos.models.v2_create_memo_comment_response import V2CreateMemoCommentResponse -from memos.models.v2_create_memo_request import V2CreateMemoRequest -from memos.models.v2_create_memo_response import V2CreateMemoResponse -from memos.models.v2_create_resource_response import V2CreateResourceResponse -from memos.models.v2_create_user_access_token_response import V2CreateUserAccessTokenResponse -from memos.models.v2_create_user_response import V2CreateUserResponse -from memos.models.v2_create_webhook_request import V2CreateWebhookRequest -from memos.models.v2_create_webhook_response import V2CreateWebhookResponse -from memos.models.v2_delete_inbox_response import V2DeleteInboxResponse -from memos.models.v2_delete_memo_reaction_response import V2DeleteMemoReactionResponse -from memos.models.v2_delete_memo_response import V2DeleteMemoResponse -from memos.models.v2_delete_resource_response import V2DeleteResourceResponse -from memos.models.v2_delete_tag_response import V2DeleteTagResponse -from memos.models.v2_delete_user_access_token_response import V2DeleteUserAccessTokenResponse -from memos.models.v2_delete_user_response import V2DeleteUserResponse -from memos.models.v2_delete_webhook_response import V2DeleteWebhookResponse -from memos.models.v2_export_memos_response import V2ExportMemosResponse -from memos.models.v2_get_activity_response import V2GetActivityResponse -from memos.models.v2_get_auth_status_response import V2GetAuthStatusResponse -from memos.models.v2_get_memo_by_name_response import V2GetMemoByNameResponse -from memos.models.v2_get_memo_response import V2GetMemoResponse -from memos.models.v2_get_resource_by_name_response import V2GetResourceByNameResponse -from memos.models.v2_get_resource_response import V2GetResourceResponse -from memos.models.v2_get_tag_suggestions_response import V2GetTagSuggestionsResponse -from memos.models.v2_get_user_memos_stats_response import V2GetUserMemosStatsResponse -from memos.models.v2_get_user_response import V2GetUserResponse -from memos.models.v2_get_user_setting_response import V2GetUserSettingResponse -from memos.models.v2_get_webhook_response import V2GetWebhookResponse -from memos.models.v2_get_workspace_profile_response import V2GetWorkspaceProfileResponse -from memos.models.v2_get_workspace_setting_response import V2GetWorkspaceSettingResponse -from memos.models.v2_inbox import V2Inbox -from memos.models.v2_inbox_name_body import V2InboxNameBody -from memos.models.v2_inbox_status import V2InboxStatus -from memos.models.v2_inbox_type import V2InboxType -from memos.models.v2_list_inboxes_response import V2ListInboxesResponse -from memos.models.v2_list_memo_comments_response import V2ListMemoCommentsResponse -from memos.models.v2_list_memo_reactions_response import V2ListMemoReactionsResponse -from memos.models.v2_list_memo_relations_response import V2ListMemoRelationsResponse -from memos.models.v2_list_memo_resources_response import V2ListMemoResourcesResponse -from memos.models.v2_list_memos_response import V2ListMemosResponse -from memos.models.v2_list_resources_response import V2ListResourcesResponse -from memos.models.v2_list_tags_response import V2ListTagsResponse -from memos.models.v2_list_user_access_tokens_response import V2ListUserAccessTokensResponse -from memos.models.v2_list_users_response import V2ListUsersResponse -from memos.models.v2_list_webhooks_response import V2ListWebhooksResponse -from memos.models.v2_memo import V2Memo -from memos.models.v2_memo_relation import V2MemoRelation -from memos.models.v2_memo_relation_type import V2MemoRelationType -from memos.models.v2_rename_tag_response import V2RenameTagResponse -from memos.models.v2_resource import V2Resource -from memos.models.v2_set_memo_relations_response import V2SetMemoRelationsResponse -from memos.models.v2_set_memo_resources_response import V2SetMemoResourcesResponse -from memos.models.v2_set_workspace_setting_response import V2SetWorkspaceSettingResponse -from memos.models.v2_setting_name_body import V2SettingNameBody -from memos.models.v2_sign_in_response import V2SignInResponse -from memos.models.v2_sign_in_with_sso_response import V2SignInWithSSOResponse -from memos.models.v2_sign_out_response import V2SignOutResponse -from memos.models.v2_sign_up_response import V2SignUpResponse -from memos.models.v2_tag import V2Tag -from memos.models.v2_update_inbox_response import V2UpdateInboxResponse -from memos.models.v2_update_memo_response import V2UpdateMemoResponse -from memos.models.v2_update_resource_response import V2UpdateResourceResponse -from memos.models.v2_update_user_response import V2UpdateUserResponse -from memos.models.v2_update_user_setting_response import V2UpdateUserSettingResponse -from memos.models.v2_update_webhook_response import V2UpdateWebhookResponse -from memos.models.v2_upsert_memo_reaction_response import V2UpsertMemoReactionResponse -from memos.models.v2_upsert_tag_request import V2UpsertTagRequest -from memos.models.v2_upsert_tag_response import V2UpsertTagResponse -from memos.models.v2_user import V2User -from memos.models.v2_user_access_token import V2UserAccessToken -from memos.models.v2_user_name_body import V2UserNameBody -from memos.models.v2_visibility import V2Visibility -from memos.models.v2_workspace_profile import V2WorkspaceProfile +from memos.models.v1_activity import V1Activity +from memos.models.v1_auto_link_node import V1AutoLinkNode +from memos.models.v1_batch_upsert_tag_request import V1BatchUpsertTagRequest +from memos.models.v1_blockquote_node import V1BlockquoteNode +from memos.models.v1_bold_italic_node import V1BoldItalicNode +from memos.models.v1_bold_node import V1BoldNode +from memos.models.v1_code_block_node import V1CodeBlockNode +from memos.models.v1_code_node import V1CodeNode +from memos.models.v1_create_memo_request import V1CreateMemoRequest +from memos.models.v1_create_webhook_request import V1CreateWebhookRequest +from memos.models.v1_embedded_content_node import V1EmbeddedContentNode +from memos.models.v1_escaping_character_node import V1EscapingCharacterNode +from memos.models.v1_export_memos_request import V1ExportMemosRequest +from memos.models.v1_export_memos_response import V1ExportMemosResponse +from memos.models.v1_get_tag_suggestions_response import V1GetTagSuggestionsResponse +from memos.models.v1_get_user_memos_stats_response import V1GetUserMemosStatsResponse +from memos.models.v1_heading_node import V1HeadingNode +from memos.models.v1_highlight_node import V1HighlightNode +from memos.models.v1_horizontal_rule_node import V1HorizontalRuleNode +from memos.models.v1_image_node import V1ImageNode +from memos.models.v1_inbox import V1Inbox +from memos.models.v1_inbox_name_body import V1InboxNameBody +from memos.models.v1_inbox_status import V1InboxStatus +from memos.models.v1_inbox_type import V1InboxType +from memos.models.v1_italic_node import V1ItalicNode +from memos.models.v1_line_break_node import V1LineBreakNode +from memos.models.v1_link_metadata import V1LinkMetadata +from memos.models.v1_link_node import V1LinkNode +from memos.models.v1_list_identity_providers_response import V1ListIdentityProvidersResponse +from memos.models.v1_list_inboxes_response import V1ListInboxesResponse +from memos.models.v1_list_memo_comments_response import V1ListMemoCommentsResponse +from memos.models.v1_list_memo_reactions_response import V1ListMemoReactionsResponse +from memos.models.v1_list_memo_relations_response import V1ListMemoRelationsResponse +from memos.models.v1_list_memo_resources_response import V1ListMemoResourcesResponse +from memos.models.v1_list_memos_response import V1ListMemosResponse +from memos.models.v1_list_resources_response import V1ListResourcesResponse +from memos.models.v1_list_tags_response import V1ListTagsResponse +from memos.models.v1_list_user_access_tokens_response import V1ListUserAccessTokensResponse +from memos.models.v1_list_users_response import V1ListUsersResponse +from memos.models.v1_list_webhooks_response import V1ListWebhooksResponse +from memos.models.v1_list_workspace_settings_response import V1ListWorkspaceSettingsResponse +from memos.models.v1_math_block_node import V1MathBlockNode +from memos.models.v1_math_node import V1MathNode +from memos.models.v1_memo import V1Memo +from memos.models.v1_memo_name_body import V1MemoNameBody +from memos.models.v1_memo_relation import V1MemoRelation +from memos.models.v1_memo_relation_type import V1MemoRelationType +from memos.models.v1_node import V1Node +from memos.models.v1_node_type import V1NodeType +from memos.models.v1_ordered_list_node import V1OrderedListNode +from memos.models.v1_paragraph_node import V1ParagraphNode +from memos.models.v1_parse_markdown_request import V1ParseMarkdownRequest +from memos.models.v1_parse_markdown_response import V1ParseMarkdownResponse +from memos.models.v1_reaction import V1Reaction +from memos.models.v1_reaction_type import V1ReactionType +from memos.models.v1_referenced_content_node import V1ReferencedContentNode +from memos.models.v1_rename_tag_request import V1RenameTagRequest +from memos.models.v1_resource import V1Resource +from memos.models.v1_resource_name_body import V1ResourceNameBody +from memos.models.v1_restore_markdown_request import V1RestoreMarkdownRequest +from memos.models.v1_restore_markdown_response import V1RestoreMarkdownResponse +from memos.models.v1_row_status import V1RowStatus +from memos.models.v1_search_memos_response import V1SearchMemosResponse +from memos.models.v1_search_resources_response import V1SearchResourcesResponse +from memos.models.v1_search_users_response import V1SearchUsersResponse +from memos.models.v1_setting_name_body import V1SettingNameBody +from memos.models.v1_spoiler_node import V1SpoilerNode +from memos.models.v1_strikethrough_node import V1StrikethroughNode +from memos.models.v1_subscript_node import V1SubscriptNode +from memos.models.v1_superscript_node import V1SuperscriptNode +from memos.models.v1_table_node import V1TableNode +from memos.models.v1_tag import V1Tag +from memos.models.v1_tag_node import V1TagNode +from memos.models.v1_task_list_node import V1TaskListNode +from memos.models.v1_text_node import V1TextNode +from memos.models.v1_unordered_list_node import V1UnorderedListNode +from memos.models.v1_upsert_tag_request import V1UpsertTagRequest +from memos.models.v1_user import V1User +from memos.models.v1_user_access_token import V1UserAccessToken +from memos.models.v1_user_name_body import V1UserNameBody +from memos.models.v1_visibility import V1Visibility +from memos.models.v1_webhook import V1Webhook +from memos.models.v1_workspace_profile import V1WorkspaceProfile from memos.models.webhooks_webhook_id_body import WebhooksWebhookIdBody diff --git a/memos/api/__init__.py b/memos/api/__init__.py index 68de4f2..63bf026 100644 --- a/memos/api/__init__.py +++ b/memos/api/__init__.py @@ -5,7 +5,9 @@ from __future__ import absolute_import # import apis into api package from memos.api.activity_service_api import ActivityServiceApi from memos.api.auth_service_api import AuthServiceApi +from memos.api.identity_provider_service_api import IdentityProviderServiceApi from memos.api.inbox_service_api import InboxServiceApi +from memos.api.markdown_service_api import MarkdownServiceApi from memos.api.memo_service_api import MemoServiceApi from memos.api.resource_service_api import ResourceServiceApi from memos.api.tag_service_api import TagServiceApi diff --git a/memos/api/activity_service_api.py b/memos/api/activity_service_api.py index 53e8584..4c7b738 100644 --- a/memos/api/activity_service_api.py +++ b/memos/api/activity_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,8 +41,8 @@ class ActivityServiceApi(object): >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetActivityResponse + :param int id: The system-generated unique identifier for the activity. (required) + :return: V1Activity If the method is called asynchronously, returns the request thread. """ @@ -62,8 +62,8 @@ class ActivityServiceApi(object): >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetActivityResponse + :param int id: The system-generated unique identifier for the activity. (required) + :return: V1Activity If the method is called asynchronously, returns the request thread. """ @@ -110,14 +110,14 @@ class ActivityServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/v2/activities/{id}', 'GET', + '/api/v1/activities/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetActivityResponse', # noqa: E501 + response_type='V1Activity', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/auth_service_api.py b/memos/api/auth_service_api.py index e53a4fe..8a1d7a2 100644 --- a/memos/api/auth_service_api.py +++ b/memos/api/auth_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,7 +41,7 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2GetAuthStatusResponse + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -61,7 +61,7 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2GetAuthStatusResponse + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -102,14 +102,14 @@ class AuthServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/auth/status', 'POST', + '/api/v1/auth/status', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetAuthStatusResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -126,10 +126,10 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param str username: - :param str password: - :param bool never_expire: - :return: V2SignInResponse + :param str username: The username to sign in with. + :param str password: The password to sign in with. + :param bool never_expire: Whether the session should never expire. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -149,10 +149,10 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param str username: - :param str password: - :param bool never_expire: - :return: V2SignInResponse + :param str username: The username to sign in with. + :param str password: The password to sign in with. + :param bool never_expire: Whether the session should never expire. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -199,14 +199,14 @@ class AuthServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/auth/signin', 'POST', + '/api/v1/auth/signin', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SignInResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -223,10 +223,10 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param int idp_id: - :param str code: - :param str redirect_uri: - :return: V2SignInWithSSOResponse + :param int idp_id: The ID of the SSO provider. + :param str code: The code to sign in with. + :param str redirect_uri: The redirect URI. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -246,10 +246,10 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param int idp_id: - :param str code: - :param str redirect_uri: - :return: V2SignInWithSSOResponse + :param int idp_id: The ID of the SSO provider. + :param str code: The code to sign in with. + :param str redirect_uri: The redirect URI. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -296,14 +296,14 @@ class AuthServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/auth/signin/sso', 'POST', + '/api/v1/auth/signin/sso', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SignInWithSSOResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -320,7 +320,7 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2SignOutResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -340,7 +340,7 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2SignOutResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -381,14 +381,14 @@ class AuthServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/auth/signout', 'POST', + '/api/v1/auth/signout', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SignOutResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -405,9 +405,9 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param str username: - :param str password: - :return: V2SignUpResponse + :param str username: The username to sign up with. + :param str password: The password to sign up with. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -427,9 +427,9 @@ class AuthServiceApi(object): >>> result = thread.get() :param async_req bool - :param str username: - :param str password: - :return: V2SignUpResponse + :param str username: The username to sign up with. + :param str password: The password to sign up with. + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -474,14 +474,14 @@ class AuthServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/auth/signup', 'POST', + '/api/v1/auth/signup', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SignUpResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/identity_provider_service_api.py b/memos/api/identity_provider_service_api.py new file mode 100644 index 0000000..3c37c5b --- /dev/null +++ b/memos/api/identity_provider_service_api.py @@ -0,0 +1,506 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from memos.api_client import ApiClient + + +class IdentityProviderServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def identity_provider_service_create_identity_provider(self, body, **kwargs): # noqa: E501 + """CreateIdentityProvider creates an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_create_identity_provider(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Apiv1IdentityProvider body: The identityProvider to create. (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.identity_provider_service_create_identity_provider_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.identity_provider_service_create_identity_provider_with_http_info(body, **kwargs) # noqa: E501 + return data + + def identity_provider_service_create_identity_provider_with_http_info(self, body, **kwargs): # noqa: E501 + """CreateIdentityProvider creates an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_create_identity_provider_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Apiv1IdentityProvider body: The identityProvider to create. (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method identity_provider_service_create_identity_provider" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `identity_provider_service_create_identity_provider`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/identityProviders', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Apiv1IdentityProvider', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def identity_provider_service_delete_identity_provider(self, name_1, **kwargs): # noqa: E501 + """DeleteIdentityProvider deletes an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_delete_identity_provider(name_1, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name_1: The name of the identityProvider to delete. Format: identityProviders/{id} (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.identity_provider_service_delete_identity_provider_with_http_info(name_1, **kwargs) # noqa: E501 + else: + (data) = self.identity_provider_service_delete_identity_provider_with_http_info(name_1, **kwargs) # noqa: E501 + return data + + def identity_provider_service_delete_identity_provider_with_http_info(self, name_1, **kwargs): # noqa: E501 + """DeleteIdentityProvider deletes an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_delete_identity_provider_with_http_info(name_1, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name_1: The name of the identityProvider to delete. Format: identityProviders/{id} (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name_1'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method identity_provider_service_delete_identity_provider" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name_1' is set + if ('name_1' not in params or + params['name_1'] is None): + raise ValueError("Missing the required parameter `name_1` when calling `identity_provider_service_delete_identity_provider`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name_1' in params: + path_params['name_1'] = params['name_1'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/{name_1}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def identity_provider_service_get_identity_provider(self, name_1, **kwargs): # noqa: E501 + """GetIdentityProvider gets an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_get_identity_provider(name_1, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name_1: The name of the identityProvider to get. Format: identityProviders/{id} (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.identity_provider_service_get_identity_provider_with_http_info(name_1, **kwargs) # noqa: E501 + else: + (data) = self.identity_provider_service_get_identity_provider_with_http_info(name_1, **kwargs) # noqa: E501 + return data + + def identity_provider_service_get_identity_provider_with_http_info(self, name_1, **kwargs): # noqa: E501 + """GetIdentityProvider gets an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_get_identity_provider_with_http_info(name_1, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str name_1: The name of the identityProvider to get. Format: identityProviders/{id} (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name_1'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method identity_provider_service_get_identity_provider" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name_1' is set + if ('name_1' not in params or + params['name_1'] is None): + raise ValueError("Missing the required parameter `name_1` when calling `identity_provider_service_get_identity_provider`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'name_1' in params: + path_params['name_1'] = params['name_1'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/{name_1}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Apiv1IdentityProvider', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def identity_provider_service_list_identity_providers(self, **kwargs): # noqa: E501 + """ListIdentityProviders lists identity providers. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_list_identity_providers(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1ListIdentityProvidersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.identity_provider_service_list_identity_providers_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.identity_provider_service_list_identity_providers_with_http_info(**kwargs) # noqa: E501 + return data + + def identity_provider_service_list_identity_providers_with_http_info(self, **kwargs): # noqa: E501 + """ListIdentityProviders lists identity providers. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_list_identity_providers_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1ListIdentityProvidersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method identity_provider_service_list_identity_providers" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/identityProviders', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ListIdentityProvidersResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def identity_provider_service_update_identity_provider(self, body, identity_provider_name, **kwargs): # noqa: E501 + """UpdateIdentityProvider updates an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_update_identity_provider(body, identity_provider_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TheIdentityProviderToUpdate_ body: The identityProvider to update. (required) + :param str identity_provider_name: The name of the identityProvider. Format: identityProviders/{id} (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.identity_provider_service_update_identity_provider_with_http_info(body, identity_provider_name, **kwargs) # noqa: E501 + else: + (data) = self.identity_provider_service_update_identity_provider_with_http_info(body, identity_provider_name, **kwargs) # noqa: E501 + return data + + def identity_provider_service_update_identity_provider_with_http_info(self, body, identity_provider_name, **kwargs): # noqa: E501 + """UpdateIdentityProvider updates an identity provider. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.identity_provider_service_update_identity_provider_with_http_info(body, identity_provider_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TheIdentityProviderToUpdate_ body: The identityProvider to update. (required) + :param str identity_provider_name: The name of the identityProvider. Format: identityProviders/{id} (required) + :return: Apiv1IdentityProvider + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'identity_provider_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method identity_provider_service_update_identity_provider" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `identity_provider_service_update_identity_provider`") # noqa: E501 + # verify the required parameter 'identity_provider_name' is set + if ('identity_provider_name' not in params or + params['identity_provider_name'] is None): + raise ValueError("Missing the required parameter `identity_provider_name` when calling `identity_provider_service_update_identity_provider`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'identity_provider_name' in params: + path_params['identityProvider.name'] = params['identity_provider_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/{identityProvider.name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Apiv1IdentityProvider', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/memos/api/inbox_service_api.py b/memos/api/inbox_service_api.py index 31a452d..11fb41f 100644 --- a/memos/api/inbox_service_api.py +++ b/memos/api/inbox_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -32,43 +32,43 @@ class InboxServiceApi(object): api_client = ApiClient() self.api_client = api_client - def inbox_service_delete_inbox(self, name_1, **kwargs): # noqa: E501 + def inbox_service_delete_inbox(self, name_2, **kwargs): # noqa: E501 """DeleteInbox deletes an inbox. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.inbox_service_delete_inbox(name_1, async_req=True) + >>> thread = api.inbox_service_delete_inbox(name_2, async_req=True) >>> result = thread.get() :param async_req bool - :param str name_1: The name of the inbox to delete. Format: inboxes/{uid} (required) - :return: V2DeleteInboxResponse + :param str name_2: The name of the inbox to delete. Format: inboxes/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.inbox_service_delete_inbox_with_http_info(name_1, **kwargs) # noqa: E501 + return self.inbox_service_delete_inbox_with_http_info(name_2, **kwargs) # noqa: E501 else: - (data) = self.inbox_service_delete_inbox_with_http_info(name_1, **kwargs) # noqa: E501 + (data) = self.inbox_service_delete_inbox_with_http_info(name_2, **kwargs) # noqa: E501 return data - def inbox_service_delete_inbox_with_http_info(self, name_1, **kwargs): # noqa: E501 + def inbox_service_delete_inbox_with_http_info(self, name_2, **kwargs): # noqa: E501 """DeleteInbox deletes an inbox. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.inbox_service_delete_inbox_with_http_info(name_1, async_req=True) + >>> thread = api.inbox_service_delete_inbox_with_http_info(name_2, async_req=True) >>> result = thread.get() :param async_req bool - :param str name_1: The name of the inbox to delete. Format: inboxes/{uid} (required) - :return: V2DeleteInboxResponse + :param str name_2: The name of the inbox to delete. Format: inboxes/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['name_1'] # noqa: E501 + all_params = ['name_2'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -83,16 +83,16 @@ class InboxServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'name_1' is set - if ('name_1' not in params or - params['name_1'] is None): - raise ValueError("Missing the required parameter `name_1` when calling `inbox_service_delete_inbox`") # noqa: E501 + # verify the required parameter 'name_2' is set + if ('name_2' not in params or + params['name_2'] is None): + raise ValueError("Missing the required parameter `name_2` when calling `inbox_service_delete_inbox`") # noqa: E501 collection_formats = {} path_params = {} - if 'name_1' in params: - path_params['name_1'] = params['name_1'] # noqa: E501 + if 'name_2' in params: + path_params['name_2'] = params['name_2'] # noqa: E501 query_params = [] @@ -110,14 +110,14 @@ class InboxServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name_1}', 'DELETE', + '/api/v1/{name_2}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteInboxResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -134,8 +134,8 @@ class InboxServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: Format: users/{username} - :return: V2ListInboxesResponse + :param str user: Format: users/{id} + :return: V1ListInboxesResponse If the method is called asynchronously, returns the request thread. """ @@ -155,8 +155,8 @@ class InboxServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: Format: users/{username} - :return: V2ListInboxesResponse + :param str user: Format: users/{id} + :return: V1ListInboxesResponse If the method is called asynchronously, returns the request thread. """ @@ -199,14 +199,14 @@ class InboxServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/inboxes', 'GET', + '/api/v1/inboxes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListInboxesResponse', # noqa: E501 + response_type='V1ListInboxesResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -223,9 +223,9 @@ class InboxServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2InboxNameBody body: (required) - :param str inbox_name: The name of the inbox. Format: inboxes/{uid} (required) - :return: V2UpdateInboxResponse + :param V1InboxNameBody body: (required) + :param str inbox_name: The name of the inbox. Format: inboxes/{id} (required) + :return: V1Inbox If the method is called asynchronously, returns the request thread. """ @@ -245,9 +245,9 @@ class InboxServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2InboxNameBody body: (required) - :param str inbox_name: The name of the inbox. Format: inboxes/{uid} (required) - :return: V2UpdateInboxResponse + :param V1InboxNameBody body: (required) + :param str inbox_name: The name of the inbox. Format: inboxes/{id} (required) + :return: V1Inbox If the method is called asynchronously, returns the request thread. """ @@ -304,14 +304,14 @@ class InboxServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{inbox.name}', 'PATCH', + '/api/v1/{inbox.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateInboxResponse', # noqa: E501 + response_type='V1Inbox', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/markdown_service_api.py b/memos/api/markdown_service_api.py new file mode 100644 index 0000000..7260c05 --- /dev/null +++ b/memos/api/markdown_service_api.py @@ -0,0 +1,316 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from memos.api_client import ApiClient + + +class MarkdownServiceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def markdown_service_get_link_metadata(self, **kwargs): # noqa: E501 + """GetLinkMetadata returns metadata for a given link. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_get_link_metadata(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str link: + :return: V1LinkMetadata + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.markdown_service_get_link_metadata_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.markdown_service_get_link_metadata_with_http_info(**kwargs) # noqa: E501 + return data + + def markdown_service_get_link_metadata_with_http_info(self, **kwargs): # noqa: E501 + """GetLinkMetadata returns metadata for a given link. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_get_link_metadata_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str link: + :return: V1LinkMetadata + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['link'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method markdown_service_get_link_metadata" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'link' in params: + query_params.append(('link', params['link'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/markdown/link:metadata', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1LinkMetadata', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def markdown_service_parse_markdown(self, body, **kwargs): # noqa: E501 + """Parses the given markdown content and returns a list of nodes. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_parse_markdown(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1ParseMarkdownRequest body: (required) + :return: V1ParseMarkdownResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.markdown_service_parse_markdown_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.markdown_service_parse_markdown_with_http_info(body, **kwargs) # noqa: E501 + return data + + def markdown_service_parse_markdown_with_http_info(self, body, **kwargs): # noqa: E501 + """Parses the given markdown content and returns a list of nodes. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_parse_markdown_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1ParseMarkdownRequest body: (required) + :return: V1ParseMarkdownResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method markdown_service_parse_markdown" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `markdown_service_parse_markdown`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/markdown/parse', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ParseMarkdownResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def markdown_service_restore_markdown(self, body, **kwargs): # noqa: E501 + """Restores the given nodes to markdown content. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_restore_markdown(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1RestoreMarkdownRequest body: (required) + :return: V1RestoreMarkdownResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.markdown_service_restore_markdown_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.markdown_service_restore_markdown_with_http_info(body, **kwargs) # noqa: E501 + return data + + def markdown_service_restore_markdown_with_http_info(self, body, **kwargs): # noqa: E501 + """Restores the given nodes to markdown content. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.markdown_service_restore_markdown_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1RestoreMarkdownRequest body: (required) + :return: V1RestoreMarkdownResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method markdown_service_restore_markdown" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `markdown_service_restore_markdown`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/markdown:restore', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1RestoreMarkdownResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/memos/api/memo_service_api.py b/memos/api/memo_service_api.py index 6227c2e..62aef47 100644 --- a/memos/api/memo_service_api.py +++ b/memos/api/memo_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,8 +41,8 @@ class MemoServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2CreateMemoRequest body: (required) - :return: V2CreateMemoResponse + :param V1CreateMemoRequest body: (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ @@ -62,8 +62,8 @@ class MemoServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2CreateMemoRequest body: (required) - :return: V2CreateMemoResponse + :param V1CreateMemoRequest body: (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ @@ -114,14 +114,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos', 'POST', + '/api/v1/memos', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateMemoResponse', # noqa: E501 + response_type='V1Memo', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -129,47 +129,45 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_create_memo_comment(self, id, **kwargs): # noqa: E501 + def memo_service_create_memo_comment(self, body, name, **kwargs): # noqa: E501 """CreateMemoComment creates a comment for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_create_memo_comment(id, async_req=True) + >>> thread = api.memo_service_create_memo_comment(body, name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: id is the memo id to create comment for. (required) - :param str create_content: - :param str create_visibility: - :return: V2CreateMemoCommentResponse + :param V1CreateMemoRequest body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_create_memo_comment_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_create_memo_comment_with_http_info(body, name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_create_memo_comment_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_create_memo_comment_with_http_info(body, name, **kwargs) # noqa: E501 return data - def memo_service_create_memo_comment_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_create_memo_comment_with_http_info(self, body, name, **kwargs): # noqa: E501 """CreateMemoComment creates a comment for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_create_memo_comment_with_http_info(id, async_req=True) + >>> thread = api.memo_service_create_memo_comment_with_http_info(body, name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: id is the memo id to create comment for. (required) - :param str create_content: - :param str create_visibility: - :return: V2CreateMemoCommentResponse + :param V1CreateMemoRequest body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'create_content', 'create_visibility'] # noqa: E501 + all_params = ['body', 'name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -184,22 +182,22 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_create_memo_comment`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `memo_service_create_memo_comment`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_create_memo_comment`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] - if 'create_content' in params: - query_params.append(('create.content', params['create_content'])) # noqa: E501 - if 'create_visibility' in params: - query_params.append(('create.visibility', params['create_visibility'])) # noqa: E501 header_params = {} @@ -207,22 +205,28 @@ class MemoServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/comments', 'POST', + '/api/v1/{name}/comments', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateMemoCommentResponse', # noqa: E501 + response_type='V1Memo', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -230,43 +234,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_delete_memo(self, id, **kwargs): # noqa: E501 - """DeleteMemo deletes a memo by id. # noqa: E501 + def memo_service_delete_memo(self, name_4, **kwargs): # noqa: E501 + """DeleteMemo deletes a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_delete_memo(id, async_req=True) + >>> thread = api.memo_service_delete_memo(name_4, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2DeleteMemoResponse + :param str name_4: The name of the memo. Format: memos/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_delete_memo_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_delete_memo_with_http_info(name_4, **kwargs) # noqa: E501 else: - (data) = self.memo_service_delete_memo_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_delete_memo_with_http_info(name_4, **kwargs) # noqa: E501 return data - def memo_service_delete_memo_with_http_info(self, id, **kwargs): # noqa: E501 - """DeleteMemo deletes a memo by id. # noqa: E501 + def memo_service_delete_memo_with_http_info(self, name_4, **kwargs): # noqa: E501 + """DeleteMemo deletes a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_delete_memo_with_http_info(id, async_req=True) + >>> thread = api.memo_service_delete_memo_with_http_info(name_4, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2DeleteMemoResponse + :param str name_4: The name of the memo. Format: memos/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name_4'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -281,16 +285,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_delete_memo`") # noqa: E501 + # verify the required parameter 'name_4' is set + if ('name_4' not in params or + params['name_4'] is None): + raise ValueError("Missing the required parameter `name_4` when calling `memo_service_delete_memo`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name_4' in params: + path_params['name_4'] = params['name_4'] # noqa: E501 query_params = [] @@ -308,14 +312,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}', 'DELETE', + '/api/v1/{name_4}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteMemoResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -323,45 +327,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_delete_memo_reaction(self, id, reaction_id, **kwargs): # noqa: E501 + def memo_service_delete_memo_reaction(self, reaction_id, **kwargs): # noqa: E501 """DeleteMemoReaction deletes a reaction for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_delete_memo_reaction(id, reaction_id, async_req=True) + >>> thread = api.memo_service_delete_memo_reaction(reaction_id, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) :param int reaction_id: (required) - :return: V2DeleteMemoReactionResponse + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_delete_memo_reaction_with_http_info(id, reaction_id, **kwargs) # noqa: E501 + return self.memo_service_delete_memo_reaction_with_http_info(reaction_id, **kwargs) # noqa: E501 else: - (data) = self.memo_service_delete_memo_reaction_with_http_info(id, reaction_id, **kwargs) # noqa: E501 + (data) = self.memo_service_delete_memo_reaction_with_http_info(reaction_id, **kwargs) # noqa: E501 return data - def memo_service_delete_memo_reaction_with_http_info(self, id, reaction_id, **kwargs): # noqa: E501 + def memo_service_delete_memo_reaction_with_http_info(self, reaction_id, **kwargs): # noqa: E501 """DeleteMemoReaction deletes a reaction for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_delete_memo_reaction_with_http_info(id, reaction_id, async_req=True) + >>> thread = api.memo_service_delete_memo_reaction_with_http_info(reaction_id, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) :param int reaction_id: (required) - :return: V2DeleteMemoReactionResponse + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'reaction_id'] # noqa: E501 + all_params = ['reaction_id'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -376,10 +378,6 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_delete_memo_reaction`") # noqa: E501 # verify the required parameter 'reaction_id' is set if ('reaction_id' not in params or params['reaction_id'] is None): @@ -388,8 +386,6 @@ class MemoServiceApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 if 'reaction_id' in params: path_params['reactionId'] = params['reaction_id'] # noqa: E501 @@ -409,14 +405,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/reactions/{reactionId}', 'DELETE', + '/api/v1/reactions/{reactionId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteMemoReactionResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -424,43 +420,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_export_memos(self, **kwargs): # noqa: E501 + def memo_service_export_memos(self, body, **kwargs): # noqa: E501 """ExportMemos exports memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_export_memos(async_req=True) + >>> thread = api.memo_service_export_memos(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str filter: Same as ListMemosRequest.filter - :return: V2ExportMemosResponse + :param V1ExportMemosRequest body: (required) + :return: V1ExportMemosResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_export_memos_with_http_info(**kwargs) # noqa: E501 + return self.memo_service_export_memos_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.memo_service_export_memos_with_http_info(**kwargs) # noqa: E501 + (data) = self.memo_service_export_memos_with_http_info(body, **kwargs) # noqa: E501 return data - def memo_service_export_memos_with_http_info(self, **kwargs): # noqa: E501 + def memo_service_export_memos_with_http_info(self, body, **kwargs): # noqa: E501 """ExportMemos exports memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_export_memos_with_http_info(async_req=True) + >>> thread = api.memo_service_export_memos_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str filter: Same as ListMemosRequest.filter - :return: V2ExportMemosResponse + :param V1ExportMemosRequest body: (required) + :return: V1ExportMemosResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['filter'] # noqa: E501 + all_params = ['body'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -475,14 +471,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `memo_service_export_memos`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'filter' in params: - query_params.append(('filter', params['filter'])) # noqa: E501 header_params = {} @@ -490,22 +488,28 @@ class MemoServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos:export', 'POST', + '/api/v1/memos:export', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ExportMemosResponse', # noqa: E501 + response_type='V1ExportMemosResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -513,43 +517,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_get_memo(self, id, **kwargs): # noqa: E501 - """GetMemo gets a memo by id. # noqa: E501 + def memo_service_get_memo(self, name_3, **kwargs): # noqa: E501 + """GetMemo gets a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_get_memo(id, async_req=True) + >>> thread = api.memo_service_get_memo(name_3, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetMemoResponse + :param str name_3: The name of the memo. Format: memos/{id} (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_get_memo_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_get_memo_with_http_info(name_3, **kwargs) # noqa: E501 else: - (data) = self.memo_service_get_memo_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_get_memo_with_http_info(name_3, **kwargs) # noqa: E501 return data - def memo_service_get_memo_with_http_info(self, id, **kwargs): # noqa: E501 - """GetMemo gets a memo by id. # noqa: E501 + def memo_service_get_memo_with_http_info(self, name_3, **kwargs): # noqa: E501 + """GetMemo gets a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_get_memo_with_http_info(id, async_req=True) + >>> thread = api.memo_service_get_memo_with_http_info(name_3, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetMemoResponse + :param str name_3: The name of the memo. Format: memos/{id} (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name_3'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -564,16 +568,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_get_memo`") # noqa: E501 + # verify the required parameter 'name_3' is set + if ('name_3' not in params or + params['name_3'] is None): + raise ValueError("Missing the required parameter `name_3` when calling `memo_service_get_memo`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name_3' in params: + path_params['name_3'] = params['name_3'] # noqa: E501 query_params = [] @@ -591,107 +595,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}', 'GET', + '/api/v1/{name_3}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetMemoResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def memo_service_get_memo_by_name(self, name, **kwargs): # noqa: E501 - """GetMemoByName gets a memo by name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_get_memo_by_name(name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str name: (required) - :return: V2GetMemoByNameResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.memo_service_get_memo_by_name_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.memo_service_get_memo_by_name_with_http_info(name, **kwargs) # noqa: E501 - return data - - def memo_service_get_memo_by_name_with_http_info(self, name, **kwargs): # noqa: E501 - """GetMemoByName gets a memo by name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_get_memo_by_name_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str name: (required) - :return: V2GetMemoByNameResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method memo_service_get_memo_by_name" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params or - params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `memo_service_get_memo_by_name`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/memos/name/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2GetMemoByNameResponse', # noqa: E501 + response_type='V1Memo', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -708,10 +619,10 @@ class MemoServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: name is the name of the user to get stats for. Format: users/{username} + :param str name: name is the name of the user to get stats for. Format: users/{id} :param str timezone: timezone location Format: uses tz identifier https://en.wikipedia.org/wiki/List_of_tz_database_time_zones :param str filter: Same as ListMemosRequest.filter - :return: V2GetUserMemosStatsResponse + :return: V1GetUserMemosStatsResponse If the method is called asynchronously, returns the request thread. """ @@ -731,10 +642,10 @@ class MemoServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: name is the name of the user to get stats for. Format: users/{username} + :param str name: name is the name of the user to get stats for. Format: users/{id} :param str timezone: timezone location Format: uses tz identifier https://en.wikipedia.org/wiki/List_of_tz_database_time_zones :param str filter: Same as ListMemosRequest.filter - :return: V2GetUserMemosStatsResponse + :return: V1GetUserMemosStatsResponse If the method is called asynchronously, returns the request thread. """ @@ -781,14 +692,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/stats', 'GET', + '/api/v1/memos/stats', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetUserMemosStatsResponse', # noqa: E501 + response_type='V1GetUserMemosStatsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -796,43 +707,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_list_memo_comments(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_comments(self, name, **kwargs): # noqa: E501 """ListMemoComments lists comments for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_comments(id, async_req=True) + >>> thread = api.memo_service_list_memo_comments(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoCommentsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoCommentsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_list_memo_comments_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_list_memo_comments_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_list_memo_comments_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_list_memo_comments_with_http_info(name, **kwargs) # noqa: E501 return data - def memo_service_list_memo_comments_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_comments_with_http_info(self, name, **kwargs): # noqa: E501 """ListMemoComments lists comments for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_comments_with_http_info(id, async_req=True) + >>> thread = api.memo_service_list_memo_comments_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoCommentsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoCommentsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -847,16 +758,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_list_memo_comments`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_list_memo_comments`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -874,14 +785,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/comments', 'GET', + '/api/v1/{name}/comments', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListMemoCommentsResponse', # noqa: E501 + response_type='V1ListMemoCommentsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -889,43 +800,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_list_memo_reactions(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_reactions(self, name, **kwargs): # noqa: E501 """ListMemoReactions lists reactions for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_reactions(id, async_req=True) + >>> thread = api.memo_service_list_memo_reactions(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoReactionsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoReactionsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_list_memo_reactions_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_list_memo_reactions_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_list_memo_reactions_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_list_memo_reactions_with_http_info(name, **kwargs) # noqa: E501 return data - def memo_service_list_memo_reactions_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_reactions_with_http_info(self, name, **kwargs): # noqa: E501 """ListMemoReactions lists reactions for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_reactions_with_http_info(id, async_req=True) + >>> thread = api.memo_service_list_memo_reactions_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoReactionsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoReactionsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -940,16 +851,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_list_memo_reactions`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_list_memo_reactions`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -967,14 +878,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/reactions', 'GET', + '/api/v1/{name}/reactions', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListMemoReactionsResponse', # noqa: E501 + response_type='V1ListMemoReactionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -982,43 +893,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_list_memo_relations(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_relations(self, name, **kwargs): # noqa: E501 """ListMemoRelations lists relations for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_relations(id, async_req=True) + >>> thread = api.memo_service_list_memo_relations(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoRelationsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoRelationsResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_list_memo_relations_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_list_memo_relations_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_list_memo_relations_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_list_memo_relations_with_http_info(name, **kwargs) # noqa: E501 return data - def memo_service_list_memo_relations_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_relations_with_http_info(self, name, **kwargs): # noqa: E501 """ListMemoRelations lists relations for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_relations_with_http_info(id, async_req=True) + >>> thread = api.memo_service_list_memo_relations_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoRelationsResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoRelationsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1033,16 +944,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_list_memo_relations`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_list_memo_relations`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -1060,14 +971,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/relations', 'GET', + '/api/v1/{name}/relations', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListMemoRelationsResponse', # noqa: E501 + response_type='V1ListMemoRelationsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1075,43 +986,43 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_list_memo_resources(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_resources(self, name, **kwargs): # noqa: E501 """ListMemoResources lists resources for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_resources(id, async_req=True) + >>> thread = api.memo_service_list_memo_resources(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoResourcesResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoResourcesResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_list_memo_resources_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_list_memo_resources_with_http_info(name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_list_memo_resources_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_list_memo_resources_with_http_info(name, **kwargs) # noqa: E501 return data - def memo_service_list_memo_resources_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_list_memo_resources_with_http_info(self, name, **kwargs): # noqa: E501 """ListMemoResources lists resources for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_list_memo_resources_with_http_info(id, async_req=True) + >>> thread = api.memo_service_list_memo_resources_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2ListMemoResourcesResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1ListMemoResourcesResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1126,16 +1037,16 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_list_memo_resources`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_list_memo_resources`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -1153,14 +1064,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/resources', 'GET', + '/api/v1/{name}/resources', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListMemoResourcesResponse', # noqa: E501 + response_type='V1ListMemoResourcesResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1179,8 +1090,8 @@ class MemoServiceApi(object): :param async_req bool :param int page_size: The maximum number of memos to return. :param str page_token: A page token, received from a previous `ListMemos` call. Provide this to retrieve the subsequent page. - :param str filter: Filter is used to filter memos returned in the list. Format: \"creator == users/{username} && visibilities == ['PUBLIC', 'PROTECTED']\" - :return: V2ListMemosResponse + :param str filter: Filter is used to filter memos returned in the list. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" + :return: V1ListMemosResponse If the method is called asynchronously, returns the request thread. """ @@ -1202,8 +1113,8 @@ class MemoServiceApi(object): :param async_req bool :param int page_size: The maximum number of memos to return. :param str page_token: A page token, received from a previous `ListMemos` call. Provide this to retrieve the subsequent page. - :param str filter: Filter is used to filter memos returned in the list. Format: \"creator == users/{username} && visibilities == ['PUBLIC', 'PROTECTED']\" - :return: V2ListMemosResponse + :param str filter: Filter is used to filter memos returned in the list. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" + :return: V1ListMemosResponse If the method is called asynchronously, returns the request thread. """ @@ -1250,14 +1161,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos', 'GET', + '/api/v1/memos', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListMemosResponse', # noqa: E501 + response_type='V1ListMemosResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1265,45 +1176,134 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_set_memo_relations(self, body, id, **kwargs): # noqa: E501 - """SetMemoRelations sets relations for a memo. # noqa: E501 + def memo_service_search_memos(self, **kwargs): # noqa: E501 + """SearchMemos searches memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_set_memo_relations(body, id, async_req=True) + >>> thread = api.memo_service_search_memos(async_req=True) >>> result = thread.get() :param async_req bool - :param MemoServiceSetMemoRelationsBody body: (required) - :param int id: (required) - :return: V2SetMemoRelationsResponse + :param str filter: Filter is used to filter memos returned. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" + :return: V1SearchMemosResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_set_memo_relations_with_http_info(body, id, **kwargs) # noqa: E501 + return self.memo_service_search_memos_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.memo_service_set_memo_relations_with_http_info(body, id, **kwargs) # noqa: E501 + (data) = self.memo_service_search_memos_with_http_info(**kwargs) # noqa: E501 return data - def memo_service_set_memo_relations_with_http_info(self, body, id, **kwargs): # noqa: E501 - """SetMemoRelations sets relations for a memo. # noqa: E501 + def memo_service_search_memos_with_http_info(self, **kwargs): # noqa: E501 + """SearchMemos searches memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_set_memo_relations_with_http_info(body, id, async_req=True) + >>> thread = api.memo_service_search_memos_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param MemoServiceSetMemoRelationsBody body: (required) - :param int id: (required) - :return: V2SetMemoRelationsResponse + :param str filter: Filter is used to filter memos returned. Format: \"creator == users/{uid} && visibilities == ['PUBLIC', 'PROTECTED']\" + :return: V1SearchMemosResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'id'] # noqa: E501 + all_params = ['filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method memo_service_search_memos" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/memos:search', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SearchMemosResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def memo_service_set_memo_relations(self, body, name, **kwargs): # noqa: E501 + """SetMemoRelations sets relations for a memo. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.memo_service_set_memo_relations(body, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param MemoServiceSetMemoRelationsBody body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.memo_service_set_memo_relations_with_http_info(body, name, **kwargs) # noqa: E501 + else: + (data) = self.memo_service_set_memo_relations_with_http_info(body, name, **kwargs) # noqa: E501 + return data + + def memo_service_set_memo_relations_with_http_info(self, body, name, **kwargs): # noqa: E501 + """SetMemoRelations sets relations for a memo. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.memo_service_set_memo_relations_with_http_info(body, name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param MemoServiceSetMemoRelationsBody body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: object + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1322,16 +1322,16 @@ class MemoServiceApi(object): if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `memo_service_set_memo_relations`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_set_memo_relations`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_set_memo_relations`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -1355,14 +1355,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/relations', 'POST', + '/api/v1/{name}/relations', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SetMemoRelationsResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1370,45 +1370,45 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_set_memo_resources(self, body, id, **kwargs): # noqa: E501 + def memo_service_set_memo_resources(self, body, name, **kwargs): # noqa: E501 """SetMemoResources sets resources for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_set_memo_resources(body, id, async_req=True) + >>> thread = api.memo_service_set_memo_resources(body, name, async_req=True) >>> result = thread.get() :param async_req bool :param MemoServiceSetMemoResourcesBody body: (required) - :param int id: (required) - :return: V2SetMemoResourcesResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_set_memo_resources_with_http_info(body, id, **kwargs) # noqa: E501 + return self.memo_service_set_memo_resources_with_http_info(body, name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_set_memo_resources_with_http_info(body, id, **kwargs) # noqa: E501 + (data) = self.memo_service_set_memo_resources_with_http_info(body, name, **kwargs) # noqa: E501 return data - def memo_service_set_memo_resources_with_http_info(self, body, id, **kwargs): # noqa: E501 + def memo_service_set_memo_resources_with_http_info(self, body, name, **kwargs): # noqa: E501 """SetMemoResources sets resources for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_set_memo_resources_with_http_info(body, id, async_req=True) + >>> thread = api.memo_service_set_memo_resources_with_http_info(body, name, async_req=True) >>> result = thread.get() :param async_req bool :param MemoServiceSetMemoResourcesBody body: (required) - :param int id: (required) - :return: V2SetMemoResourcesResponse + :param str name: The name of the memo. Format: memos/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'id'] # noqa: E501 + all_params = ['body', 'name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1427,16 +1427,16 @@ class MemoServiceApi(object): if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `memo_service_set_memo_resources`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_set_memo_resources`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_set_memo_resources`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] @@ -1460,14 +1460,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/resources', 'POST', + '/api/v1/{name}/resources', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SetMemoResourcesResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1475,45 +1475,45 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_update_memo(self, body, memo_id, **kwargs): # noqa: E501 + def memo_service_update_memo(self, body, memo_name, **kwargs): # noqa: E501 """UpdateMemo updates a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_update_memo(body, memo_id, async_req=True) + >>> thread = api.memo_service_update_memo(body, memo_name, async_req=True) >>> result = thread.get() :param async_req bool - :param MemosMemoIdBody body: (required) - :param int memo_id: id is the system generated unique identifier. (required) - :return: V2UpdateMemoResponse + :param V1MemoNameBody body: (required) + :param str memo_name: The name of the memo. Format: memos/{id} id is the system generated id. (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_update_memo_with_http_info(body, memo_id, **kwargs) # noqa: E501 + return self.memo_service_update_memo_with_http_info(body, memo_name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_update_memo_with_http_info(body, memo_id, **kwargs) # noqa: E501 + (data) = self.memo_service_update_memo_with_http_info(body, memo_name, **kwargs) # noqa: E501 return data - def memo_service_update_memo_with_http_info(self, body, memo_id, **kwargs): # noqa: E501 + def memo_service_update_memo_with_http_info(self, body, memo_name, **kwargs): # noqa: E501 """UpdateMemo updates a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_update_memo_with_http_info(body, memo_id, async_req=True) + >>> thread = api.memo_service_update_memo_with_http_info(body, memo_name, async_req=True) >>> result = thread.get() :param async_req bool - :param MemosMemoIdBody body: (required) - :param int memo_id: id is the system generated unique identifier. (required) - :return: V2UpdateMemoResponse + :param V1MemoNameBody body: (required) + :param str memo_name: The name of the memo. Format: memos/{id} id is the system generated id. (required) + :return: V1Memo If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'memo_id'] # noqa: E501 + all_params = ['body', 'memo_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1532,16 +1532,16 @@ class MemoServiceApi(object): if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `memo_service_update_memo`") # noqa: E501 - # verify the required parameter 'memo_id' is set - if ('memo_id' not in params or - params['memo_id'] is None): - raise ValueError("Missing the required parameter `memo_id` when calling `memo_service_update_memo`") # noqa: E501 + # verify the required parameter 'memo_name' is set + if ('memo_name' not in params or + params['memo_name'] is None): + raise ValueError("Missing the required parameter `memo_name` when calling `memo_service_update_memo`") # noqa: E501 collection_formats = {} path_params = {} - if 'memo_id' in params: - path_params['memo.id'] = params['memo_id'] # noqa: E501 + if 'memo_name' in params: + path_params['memo.name'] = params['memo_name'] # noqa: E501 query_params = [] @@ -1565,14 +1565,14 @@ class MemoServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{memo.id}', 'PATCH', + '/api/v1/{memo.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateMemoResponse', # noqa: E501 + response_type='V1Memo', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1580,51 +1580,45 @@ class MemoServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def memo_service_upsert_memo_reaction(self, id, **kwargs): # noqa: E501 + def memo_service_upsert_memo_reaction(self, body, name, **kwargs): # noqa: E501 """UpsertMemoReaction upserts a reaction for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_upsert_memo_reaction(id, async_req=True) + >>> thread = api.memo_service_upsert_memo_reaction(body, name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :param int reaction_id: - :param str reaction_creator: - :param str reaction_content_id: - :param str reaction_reaction_type: - :return: V2UpsertMemoReactionResponse + :param MemoServiceUpsertMemoReactionBody body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1Reaction If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.memo_service_upsert_memo_reaction_with_http_info(id, **kwargs) # noqa: E501 + return self.memo_service_upsert_memo_reaction_with_http_info(body, name, **kwargs) # noqa: E501 else: - (data) = self.memo_service_upsert_memo_reaction_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.memo_service_upsert_memo_reaction_with_http_info(body, name, **kwargs) # noqa: E501 return data - def memo_service_upsert_memo_reaction_with_http_info(self, id, **kwargs): # noqa: E501 + def memo_service_upsert_memo_reaction_with_http_info(self, body, name, **kwargs): # noqa: E501 """UpsertMemoReaction upserts a reaction for a memo. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.memo_service_upsert_memo_reaction_with_http_info(id, async_req=True) + >>> thread = api.memo_service_upsert_memo_reaction_with_http_info(body, name, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :param int reaction_id: - :param str reaction_creator: - :param str reaction_content_id: - :param str reaction_reaction_type: - :return: V2UpsertMemoReactionResponse + :param MemoServiceUpsertMemoReactionBody body: (required) + :param str name: The name of the memo. Format: memos/{id} (required) + :return: V1Reaction If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'reaction_id', 'reaction_creator', 'reaction_content_id', 'reaction_reaction_type'] # noqa: E501 + all_params = ['body', 'name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1639,26 +1633,22 @@ class MemoServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `memo_service_upsert_memo_reaction`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `memo_service_upsert_memo_reaction`") # noqa: E501 + # verify the required parameter 'name' is set + if ('name' not in params or + params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `memo_service_upsert_memo_reaction`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name' in params: + path_params['name'] = params['name'] # noqa: E501 query_params = [] - if 'reaction_id' in params: - query_params.append(('reaction.id', params['reaction_id'])) # noqa: E501 - if 'reaction_creator' in params: - query_params.append(('reaction.creator', params['reaction_creator'])) # noqa: E501 - if 'reaction_content_id' in params: - query_params.append(('reaction.contentId', params['reaction_content_id'])) # noqa: E501 - if 'reaction_reaction_type' in params: - query_params.append(('reaction.reactionType', params['reaction_reaction_type'])) # noqa: E501 header_params = {} @@ -1666,22 +1656,28 @@ class MemoServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/memos/{id}/reactions', 'POST', + '/api/v1/{name}/reactions', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpsertMemoReactionResponse', # noqa: E501 + response_type='V1Reaction', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/resource_service_api.py b/memos/api/resource_service_api.py index 60c3d13..9847333 100644 --- a/memos/api/resource_service_api.py +++ b/memos/api/resource_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -32,49 +32,43 @@ class ResourceServiceApi(object): api_client = ApiClient() self.api_client = api_client - def resource_service_create_resource(self, **kwargs): # noqa: E501 + def resource_service_create_resource(self, body, **kwargs): # noqa: E501 """CreateResource creates a new resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_create_resource(async_req=True) + >>> thread = api.resource_service_create_resource(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str filename: - :param str external_link: - :param str type: - :param int memo_id: - :return: V2CreateResourceResponse + :param V1Resource body: (required) + :return: V1Resource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.resource_service_create_resource_with_http_info(**kwargs) # noqa: E501 + return self.resource_service_create_resource_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.resource_service_create_resource_with_http_info(**kwargs) # noqa: E501 + (data) = self.resource_service_create_resource_with_http_info(body, **kwargs) # noqa: E501 return data - def resource_service_create_resource_with_http_info(self, **kwargs): # noqa: E501 + def resource_service_create_resource_with_http_info(self, body, **kwargs): # noqa: E501 """CreateResource creates a new resource. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_create_resource_with_http_info(async_req=True) + >>> thread = api.resource_service_create_resource_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str filename: - :param str external_link: - :param str type: - :param int memo_id: - :return: V2CreateResourceResponse + :param V1Resource body: (required) + :return: V1Resource If the method is called asynchronously, returns the request thread. """ - all_params = ['filename', 'external_link', 'type', 'memo_id'] # noqa: E501 + all_params = ['body'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -89,20 +83,16 @@ class ResourceServiceApi(object): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `resource_service_create_resource`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'filename' in params: - query_params.append(('filename', params['filename'])) # noqa: E501 - if 'external_link' in params: - query_params.append(('externalLink', params['external_link'])) # noqa: E501 - if 'type' in params: - query_params.append(('type', params['type'])) # noqa: E501 - if 'memo_id' in params: - query_params.append(('memoId', params['memo_id'])) # noqa: E501 header_params = {} @@ -110,22 +100,28 @@ class ResourceServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/resources', 'POST', + '/api/v1/resources', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateResourceResponse', # noqa: E501 + response_type='V1Resource', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -133,43 +129,43 @@ class ResourceServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def resource_service_delete_resource(self, id, **kwargs): # noqa: E501 - """DeleteResource deletes a resource by id. # noqa: E501 + def resource_service_delete_resource(self, name_3, **kwargs): # noqa: E501 + """DeleteResource deletes a resource by name. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_delete_resource(id, async_req=True) + >>> thread = api.resource_service_delete_resource(name_3, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2DeleteResourceResponse + :param str name_3: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.resource_service_delete_resource_with_http_info(id, **kwargs) # noqa: E501 + return self.resource_service_delete_resource_with_http_info(name_3, **kwargs) # noqa: E501 else: - (data) = self.resource_service_delete_resource_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.resource_service_delete_resource_with_http_info(name_3, **kwargs) # noqa: E501 return data - def resource_service_delete_resource_with_http_info(self, id, **kwargs): # noqa: E501 - """DeleteResource deletes a resource by id. # noqa: E501 + def resource_service_delete_resource_with_http_info(self, name_3, **kwargs): # noqa: E501 + """DeleteResource deletes a resource by name. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_delete_resource_with_http_info(id, async_req=True) + >>> thread = api.resource_service_delete_resource_with_http_info(name_3, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2DeleteResourceResponse + :param str name_3: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name_3'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -184,16 +180,16 @@ class ResourceServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `resource_service_delete_resource`") # noqa: E501 + # verify the required parameter 'name_3' is set + if ('name_3' not in params or + params['name_3'] is None): + raise ValueError("Missing the required parameter `name_3` when calling `resource_service_delete_resource`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name_3' in params: + path_params['name_3'] = params['name_3'] # noqa: E501 query_params = [] @@ -211,14 +207,14 @@ class ResourceServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/resources/{id}', 'DELETE', + '/api/v1/{name_3}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteResourceResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -226,43 +222,43 @@ class ResourceServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def resource_service_get_resource(self, id, **kwargs): # noqa: E501 - """GetResource returns a resource by id. # noqa: E501 + def resource_service_get_resource(self, name_2, **kwargs): # noqa: E501 + """GetResource returns a resource by name. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_get_resource(id, async_req=True) + >>> thread = api.resource_service_get_resource(name_2, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetResourceResponse + :param str name_2: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: V1Resource If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.resource_service_get_resource_with_http_info(id, **kwargs) # noqa: E501 + return self.resource_service_get_resource_with_http_info(name_2, **kwargs) # noqa: E501 else: - (data) = self.resource_service_get_resource_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.resource_service_get_resource_with_http_info(name_2, **kwargs) # noqa: E501 return data - def resource_service_get_resource_with_http_info(self, id, **kwargs): # noqa: E501 - """GetResource returns a resource by id. # noqa: E501 + def resource_service_get_resource_with_http_info(self, name_2, **kwargs): # noqa: E501 + """GetResource returns a resource by name. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_get_resource_with_http_info(id, async_req=True) + >>> thread = api.resource_service_get_resource_with_http_info(name_2, async_req=True) >>> result = thread.get() :param async_req bool - :param int id: (required) - :return: V2GetResourceResponse + :param str name_2: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: V1Resource If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['name_2'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -277,16 +273,16 @@ class ResourceServiceApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `resource_service_get_resource`") # noqa: E501 + # verify the required parameter 'name_2' is set + if ('name_2' not in params or + params['name_2'] is None): + raise ValueError("Missing the required parameter `name_2` when calling `resource_service_get_resource`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'name_2' in params: + path_params['name_2'] = params['name_2'] # noqa: E501 query_params = [] @@ -304,107 +300,14 @@ class ResourceServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/resources/{id}', 'GET', + '/api/v1/{name_2}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetResourceResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def resource_service_get_resource_by_name(self, name, **kwargs): # noqa: E501 - """GetResourceByName returns a resource by name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_get_resource_by_name(name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str name: (required) - :return: V2GetResourceByNameResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.resource_service_get_resource_by_name_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.resource_service_get_resource_by_name_with_http_info(name, **kwargs) # noqa: E501 - return data - - def resource_service_get_resource_by_name_with_http_info(self, name, **kwargs): # noqa: E501 - """GetResourceByName returns a resource by name. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_get_resource_by_name_with_http_info(name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str name: (required) - :return: V2GetResourceByNameResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method resource_service_get_resource_by_name" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params or - params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `resource_service_get_resource_by_name`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'name' in params: - path_params['name'] = params['name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v2/resources/name/{name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='V2GetResourceByNameResponse', # noqa: E501 + response_type='V1Resource', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -421,7 +324,7 @@ class ResourceServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2ListResourcesResponse + :return: V1ListResourcesResponse If the method is called asynchronously, returns the request thread. """ @@ -441,7 +344,7 @@ class ResourceServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2ListResourcesResponse + :return: V1ListResourcesResponse If the method is called asynchronously, returns the request thread. """ @@ -482,14 +385,14 @@ class ResourceServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/resources', 'GET', + '/api/v1/resources', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListResourcesResponse', # noqa: E501 + response_type='V1ListResourcesResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -497,45 +400,134 @@ class ResourceServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def resource_service_update_resource(self, body, resource_id, **kwargs): # noqa: E501 - """UpdateResource updates a resource. # noqa: E501 + def resource_service_search_resources(self, **kwargs): # noqa: E501 + """SearchResources searches memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_update_resource(body, resource_id, async_req=True) + >>> thread = api.resource_service_search_resources(async_req=True) >>> result = thread.get() :param async_req bool - :param ResourcesResourceIdBody body: (required) - :param int resource_id: id is the system generated unique identifier. (required) - :return: V2UpdateResourceResponse + :param str filter: + :return: V1SearchResourcesResponse If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.resource_service_update_resource_with_http_info(body, resource_id, **kwargs) # noqa: E501 + return self.resource_service_search_resources_with_http_info(**kwargs) # noqa: E501 else: - (data) = self.resource_service_update_resource_with_http_info(body, resource_id, **kwargs) # noqa: E501 + (data) = self.resource_service_search_resources_with_http_info(**kwargs) # noqa: E501 return data - def resource_service_update_resource_with_http_info(self, body, resource_id, **kwargs): # noqa: E501 - """UpdateResource updates a resource. # noqa: E501 + def resource_service_search_resources_with_http_info(self, **kwargs): # noqa: E501 + """SearchResources searches memos. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.resource_service_update_resource_with_http_info(body, resource_id, async_req=True) + >>> thread = api.resource_service_search_resources_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool - :param ResourcesResourceIdBody body: (required) - :param int resource_id: id is the system generated unique identifier. (required) - :return: V2UpdateResourceResponse + :param str filter: + :return: V1SearchResourcesResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'resource_id'] # noqa: E501 + all_params = ['filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method resource_service_search_resources" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/resources:search', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SearchResourcesResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def resource_service_update_resource(self, body, resource_name, **kwargs): # noqa: E501 + """UpdateResource updates a resource. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resource_service_update_resource(body, resource_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1ResourceNameBody body: (required) + :param str resource_name: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: V1Resource + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.resource_service_update_resource_with_http_info(body, resource_name, **kwargs) # noqa: E501 + else: + (data) = self.resource_service_update_resource_with_http_info(body, resource_name, **kwargs) # noqa: E501 + return data + + def resource_service_update_resource_with_http_info(self, body, resource_name, **kwargs): # noqa: E501 + """UpdateResource updates a resource. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resource_service_update_resource_with_http_info(body, resource_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param V1ResourceNameBody body: (required) + :param str resource_name: The name of the resource. Format: resources/{id} id is the system generated unique identifier. (required) + :return: V1Resource + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'resource_name'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -554,16 +546,16 @@ class ResourceServiceApi(object): if ('body' not in params or params['body'] is None): raise ValueError("Missing the required parameter `body` when calling `resource_service_update_resource`") # noqa: E501 - # verify the required parameter 'resource_id' is set - if ('resource_id' not in params or - params['resource_id'] is None): - raise ValueError("Missing the required parameter `resource_id` when calling `resource_service_update_resource`") # noqa: E501 + # verify the required parameter 'resource_name' is set + if ('resource_name' not in params or + params['resource_name'] is None): + raise ValueError("Missing the required parameter `resource_name` when calling `resource_service_update_resource`") # noqa: E501 collection_formats = {} path_params = {} - if 'resource_id' in params: - path_params['resource.id'] = params['resource_id'] # noqa: E501 + if 'resource_name' in params: + path_params['resource.name'] = params['resource_name'] # noqa: E501 query_params = [] @@ -587,14 +579,14 @@ class ResourceServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/resources/{resource.id}', 'PATCH', + '/api/v1/{resource.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateResourceResponse', # noqa: E501 + response_type='V1Resource', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/tag_service_api.py b/memos/api/tag_service_api.py index 4f2ceb8..2f79f06 100644 --- a/memos/api/tag_service_api.py +++ b/memos/api/tag_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -32,41 +32,43 @@ class TagServiceApi(object): api_client = ApiClient() self.api_client = api_client - def tag_service_batch_upsert_tag(self, **kwargs): # noqa: E501 + def tag_service_batch_upsert_tag(self, body, **kwargs): # noqa: E501 """BatchUpsertTag upserts multiple tags. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_batch_upsert_tag(async_req=True) + >>> thread = api.tag_service_batch_upsert_tag(body, async_req=True) >>> result = thread.get() :param async_req bool - :return: V2BatchUpsertTagResponse + :param V1BatchUpsertTagRequest body: (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.tag_service_batch_upsert_tag_with_http_info(**kwargs) # noqa: E501 + return self.tag_service_batch_upsert_tag_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.tag_service_batch_upsert_tag_with_http_info(**kwargs) # noqa: E501 + (data) = self.tag_service_batch_upsert_tag_with_http_info(body, **kwargs) # noqa: E501 return data - def tag_service_batch_upsert_tag_with_http_info(self, **kwargs): # noqa: E501 + def tag_service_batch_upsert_tag_with_http_info(self, body, **kwargs): # noqa: E501 """BatchUpsertTag upserts multiple tags. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_batch_upsert_tag_with_http_info(async_req=True) + >>> thread = api.tag_service_batch_upsert_tag_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool - :return: V2BatchUpsertTagResponse + :param V1BatchUpsertTagRequest body: (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = [] # noqa: E501 + all_params = ['body'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -81,6 +83,10 @@ class TagServiceApi(object): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tag_service_batch_upsert_tag`") # noqa: E501 collection_formats = {} @@ -94,22 +100,28 @@ class TagServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags:batchUpsert', 'POST', + '/api/v1/tags:batchUpsert', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2BatchUpsertTagResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -127,8 +139,8 @@ class TagServiceApi(object): :param async_req bool :param str tag_name: - :param str tag_creator: The creator of tags. Format: users/{username} - :return: V2DeleteTagResponse + :param str tag_creator: The creator of tags. Format: users/{id} + :return: object If the method is called asynchronously, returns the request thread. """ @@ -149,8 +161,8 @@ class TagServiceApi(object): :param async_req bool :param str tag_name: - :param str tag_creator: The creator of tags. Format: users/{username} - :return: V2DeleteTagResponse + :param str tag_creator: The creator of tags. Format: users/{id} + :return: object If the method is called asynchronously, returns the request thread. """ @@ -195,14 +207,14 @@ class TagServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags', 'DELETE', + '/api/v1/tags', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteTagResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -219,8 +231,8 @@ class TagServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :return: V2GetTagSuggestionsResponse + :param str user: The creator of tags. Format: users/{id} + :return: V1GetTagSuggestionsResponse If the method is called asynchronously, returns the request thread. """ @@ -240,8 +252,8 @@ class TagServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :return: V2GetTagSuggestionsResponse + :param str user: The creator of tags. Format: users/{id} + :return: V1GetTagSuggestionsResponse If the method is called asynchronously, returns the request thread. """ @@ -284,14 +296,14 @@ class TagServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags/suggestion', 'GET', + '/api/v1/tags/suggestion', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetTagSuggestionsResponse', # noqa: E501 + response_type='V1GetTagSuggestionsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -308,8 +320,7 @@ class TagServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :return: V2ListTagsResponse + :return: V1ListTagsResponse If the method is called asynchronously, returns the request thread. """ @@ -329,13 +340,12 @@ class TagServiceApi(object): >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :return: V2ListTagsResponse + :return: V1ListTagsResponse If the method is called asynchronously, returns the request thread. """ - all_params = ['user'] # noqa: E501 + all_params = [] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -356,8 +366,6 @@ class TagServiceApi(object): path_params = {} query_params = [] - if 'user' in params: - query_params.append(('user', params['user'])) # noqa: E501 header_params = {} @@ -373,14 +381,14 @@ class TagServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags', 'GET', + '/api/v1/tags', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListTagsResponse', # noqa: E501 + response_type='V1ListTagsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -388,47 +396,43 @@ class TagServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def tag_service_rename_tag(self, **kwargs): # noqa: E501 + def tag_service_rename_tag(self, body, **kwargs): # noqa: E501 """RenameTag renames a tag. All related memos will be updated. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_rename_tag(async_req=True) + >>> thread = api.tag_service_rename_tag(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :param str old_name: - :param str new_name: - :return: V2RenameTagResponse + :param V1RenameTagRequest body: (required) + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.tag_service_rename_tag_with_http_info(**kwargs) # noqa: E501 + return self.tag_service_rename_tag_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.tag_service_rename_tag_with_http_info(**kwargs) # noqa: E501 + (data) = self.tag_service_rename_tag_with_http_info(body, **kwargs) # noqa: E501 return data - def tag_service_rename_tag_with_http_info(self, **kwargs): # noqa: E501 + def tag_service_rename_tag_with_http_info(self, body, **kwargs): # noqa: E501 """RenameTag renames a tag. All related memos will be updated. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_rename_tag_with_http_info(async_req=True) + >>> thread = api.tag_service_rename_tag_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str user: The creator of tags. Format: users/{username} - :param str old_name: - :param str new_name: - :return: V2RenameTagResponse + :param V1RenameTagRequest body: (required) + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['user', 'old_name', 'new_name'] # noqa: E501 + all_params = ['body'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -443,18 +447,16 @@ class TagServiceApi(object): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tag_service_rename_tag`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'user' in params: - query_params.append(('user', params['user'])) # noqa: E501 - if 'old_name' in params: - query_params.append(('oldName', params['old_name'])) # noqa: E501 - if 'new_name' in params: - query_params.append(('newName', params['new_name'])) # noqa: E501 header_params = {} @@ -462,22 +464,28 @@ class TagServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags:rename', 'PATCH', + '/api/v1/tags:rename', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2RenameTagResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -485,43 +493,43 @@ class TagServiceApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def tag_service_upsert_tag(self, **kwargs): # noqa: E501 + def tag_service_upsert_tag(self, body, **kwargs): # noqa: E501 """UpsertTag upserts a tag. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_upsert_tag(async_req=True) + >>> thread = api.tag_service_upsert_tag(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str name: - :return: V2UpsertTagResponse + :param V1UpsertTagRequest body: (required) + :return: V1Tag If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.tag_service_upsert_tag_with_http_info(**kwargs) # noqa: E501 + return self.tag_service_upsert_tag_with_http_info(body, **kwargs) # noqa: E501 else: - (data) = self.tag_service_upsert_tag_with_http_info(**kwargs) # noqa: E501 + (data) = self.tag_service_upsert_tag_with_http_info(body, **kwargs) # noqa: E501 return data - def tag_service_upsert_tag_with_http_info(self, **kwargs): # noqa: E501 + def tag_service_upsert_tag_with_http_info(self, body, **kwargs): # noqa: E501 """UpsertTag upserts a tag. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.tag_service_upsert_tag_with_http_info(async_req=True) + >>> thread = api.tag_service_upsert_tag_with_http_info(body, async_req=True) >>> result = thread.get() :param async_req bool - :param str name: - :return: V2UpsertTagResponse + :param V1UpsertTagRequest body: (required) + :return: V1Tag If the method is called asynchronously, returns the request thread. """ - all_params = ['name'] # noqa: E501 + all_params = ['body'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -536,14 +544,16 @@ class TagServiceApi(object): ) params[key] = val del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `tag_service_upsert_tag`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'name' in params: - query_params.append(('name', params['name'])) # noqa: E501 header_params = {} @@ -551,22 +561,28 @@ class TagServiceApi(object): local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/tags', 'POST', + '/api/v1/tags', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpsertTagResponse', # noqa: E501 + response_type='V1Tag', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/user_service_api.py b/memos/api/user_service_api.py index 4cde456..c89806b 100644 --- a/memos/api/user_service_api.py +++ b/memos/api/user_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,8 +41,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2User body: (required) - :return: V2CreateUserResponse + :param V1User body: (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -62,8 +62,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2User body: (required) - :return: V2CreateUserResponse + :param V1User body: (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -114,14 +114,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/users', 'POST', + '/api/v1/users', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateUserResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -139,8 +139,8 @@ class UserServiceApi(object): :param async_req bool :param UserServiceCreateUserAccessTokenBody body: (required) - :param str name: The name of the user. Format: users/{username} (required) - :return: V2CreateUserAccessTokenResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1UserAccessToken If the method is called asynchronously, returns the request thread. """ @@ -161,8 +161,8 @@ class UserServiceApi(object): :param async_req bool :param UserServiceCreateUserAccessTokenBody body: (required) - :param str name: The name of the user. Format: users/{username} (required) - :return: V2CreateUserAccessTokenResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1UserAccessToken If the method is called asynchronously, returns the request thread. """ @@ -219,14 +219,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}/access_tokens', 'POST', + '/api/v1/{name}/access_tokens', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateUserAccessTokenResponse', # noqa: E501 + response_type='V1UserAccessToken', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -243,8 +243,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2DeleteUserResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ @@ -264,8 +264,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2DeleteUserResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: object If the method is called asynchronously, returns the request thread. """ @@ -312,14 +312,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}', 'DELETE', + '/api/v1/{name}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteUserResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -336,9 +336,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) + :param str name: The name of the user. Format: users/{id} (required) :param str access_token: access_token is the access token to delete. (required) - :return: V2DeleteUserAccessTokenResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -358,9 +358,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) + :param str name: The name of the user. Format: users/{id} (required) :param str access_token: access_token is the access token to delete. (required) - :return: V2DeleteUserAccessTokenResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -413,14 +413,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}/access_tokens/{accessToken}', 'DELETE', + '/api/v1/{name}/access_tokens/{accessToken}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteUserAccessTokenResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -437,8 +437,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2GetUserResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -458,8 +458,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2GetUserResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -506,14 +506,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}', 'GET', + '/api/v1/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetUserResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -530,8 +530,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2GetUserSettingResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: Apiv1UserSetting If the method is called asynchronously, returns the request thread. """ @@ -551,8 +551,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2GetUserSettingResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: Apiv1UserSetting If the method is called asynchronously, returns the request thread. """ @@ -599,14 +599,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}/setting', 'GET', + '/api/v1/{name}/setting', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetUserSettingResponse', # noqa: E501 + response_type='Apiv1UserSetting', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -623,8 +623,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2ListUserAccessTokensResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1ListUserAccessTokensResponse If the method is called asynchronously, returns the request thread. """ @@ -644,8 +644,8 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param str name: The name of the user. Format: users/{username} (required) - :return: V2ListUserAccessTokensResponse + :param str name: The name of the user. Format: users/{id} (required) + :return: V1ListUserAccessTokensResponse If the method is called asynchronously, returns the request thread. """ @@ -692,14 +692,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{name}/access_tokens', 'GET', + '/api/v1/{name}/access_tokens', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListUserAccessTokensResponse', # noqa: E501 + response_type='V1ListUserAccessTokensResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -716,7 +716,7 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2ListUsersResponse + :return: V1ListUsersResponse If the method is called asynchronously, returns the request thread. """ @@ -736,7 +736,7 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2ListUsersResponse + :return: V1ListUsersResponse If the method is called asynchronously, returns the request thread. """ @@ -777,14 +777,103 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/users', 'GET', + '/api/v1/users', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListUsersResponse', # noqa: E501 + response_type='V1ListUsersResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def user_service_search_users(self, **kwargs): # noqa: E501 + """SearchUsers searches users by filter. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_service_search_users(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filter: Filter is used to filter users returned in the list. Format: \"username == frank\" + :return: V1SearchUsersResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.user_service_search_users_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.user_service_search_users_with_http_info(**kwargs) # noqa: E501 + return data + + def user_service_search_users_with_http_info(self, **kwargs): # noqa: E501 + """SearchUsers searches users by filter. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_service_search_users_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filter: Filter is used to filter users returned in the list. Format: \"username == frank\" + :return: V1SearchUsersResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['filter'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method user_service_search_users" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter' in params: + query_params.append(('filter', params['filter'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/users:search', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SearchUsersResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -801,9 +890,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2UserNameBody body: (required) - :param str user_name: The name of the user. Format: users/{username} (required) - :return: V2UpdateUserResponse + :param V1UserNameBody body: (required) + :param str user_name: The name of the user. Format: users/{id} (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -823,9 +912,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2UserNameBody body: (required) - :param str user_name: The name of the user. Format: users/{username} (required) - :return: V2UpdateUserResponse + :param V1UserNameBody body: (required) + :param str user_name: The name of the user. Format: users/{id} (required) + :return: V1User If the method is called asynchronously, returns the request thread. """ @@ -882,14 +971,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{user.name}', 'PATCH', + '/api/v1/{user.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateUserResponse', # noqa: E501 + response_type='V1User', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -906,9 +995,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2SettingNameBody body: (required) - :param str setting_name: The name of the user. Format: users/{username} (required) - :return: V2UpdateUserSettingResponse + :param V1SettingNameBody body: (required) + :param str setting_name: The name of the user. Format: users/{id} (required) + :return: Apiv1UserSetting If the method is called asynchronously, returns the request thread. """ @@ -928,9 +1017,9 @@ class UserServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2SettingNameBody body: (required) - :param str setting_name: The name of the user. Format: users/{username} (required) - :return: V2UpdateUserSettingResponse + :param V1SettingNameBody body: (required) + :param str setting_name: The name of the user. Format: users/{id} (required) + :return: Apiv1UserSetting If the method is called asynchronously, returns the request thread. """ @@ -987,14 +1076,14 @@ class UserServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/{setting.name}', 'PATCH', + '/api/v1/{setting.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateUserSettingResponse', # noqa: E501 + response_type='Apiv1UserSetting', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/webhook_service_api.py b/memos/api/webhook_service_api.py index 2a2152d..ebce4fe 100644 --- a/memos/api/webhook_service_api.py +++ b/memos/api/webhook_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,8 +41,8 @@ class WebhookServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2CreateWebhookRequest body: (required) - :return: V2CreateWebhookResponse + :param V1CreateWebhookRequest body: (required) + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -62,8 +62,8 @@ class WebhookServiceApi(object): >>> result = thread.get() :param async_req bool - :param V2CreateWebhookRequest body: (required) - :return: V2CreateWebhookResponse + :param V1CreateWebhookRequest body: (required) + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -114,14 +114,14 @@ class WebhookServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/webhooks', 'POST', + '/api/v1/webhooks', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2CreateWebhookResponse', # noqa: E501 + response_type='V1Webhook', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -139,7 +139,7 @@ class WebhookServiceApi(object): :param async_req bool :param int id: (required) - :return: V2DeleteWebhookResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -160,7 +160,7 @@ class WebhookServiceApi(object): :param async_req bool :param int id: (required) - :return: V2DeleteWebhookResponse + :return: object If the method is called asynchronously, returns the request thread. """ @@ -207,14 +207,14 @@ class WebhookServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/webhooks/{id}', 'DELETE', + '/api/v1/webhooks/{id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2DeleteWebhookResponse', # noqa: E501 + response_type='object', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -232,7 +232,7 @@ class WebhookServiceApi(object): :param async_req bool :param int id: (required) - :return: V2GetWebhookResponse + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -253,7 +253,7 @@ class WebhookServiceApi(object): :param async_req bool :param int id: (required) - :return: V2GetWebhookResponse + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -300,14 +300,14 @@ class WebhookServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/webhooks/{id}', 'GET', + '/api/v1/webhooks/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetWebhookResponse', # noqa: E501 + response_type='V1Webhook', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -325,7 +325,7 @@ class WebhookServiceApi(object): :param async_req bool :param int creator_id: - :return: V2ListWebhooksResponse + :return: V1ListWebhooksResponse If the method is called asynchronously, returns the request thread. """ @@ -346,7 +346,7 @@ class WebhookServiceApi(object): :param async_req bool :param int creator_id: - :return: V2ListWebhooksResponse + :return: V1ListWebhooksResponse If the method is called asynchronously, returns the request thread. """ @@ -389,14 +389,14 @@ class WebhookServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/webhooks', 'GET', + '/api/v1/webhooks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2ListWebhooksResponse', # noqa: E501 + response_type='V1ListWebhooksResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -415,7 +415,7 @@ class WebhookServiceApi(object): :param async_req bool :param WebhooksWebhookIdBody body: (required) :param int webhook_id: (required) - :return: V2UpdateWebhookResponse + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -437,7 +437,7 @@ class WebhookServiceApi(object): :param async_req bool :param WebhooksWebhookIdBody body: (required) :param int webhook_id: (required) - :return: V2UpdateWebhookResponse + :return: V1Webhook If the method is called asynchronously, returns the request thread. """ @@ -494,14 +494,14 @@ class WebhookServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/webhooks/{webhook.id}', 'PATCH', + '/api/v1/webhooks/{webhook.id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2UpdateWebhookResponse', # noqa: E501 + response_type='V1Webhook', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/workspace_service_api.py b/memos/api/workspace_service_api.py index 3f34f83..f27a42f 100644 --- a/memos/api/workspace_service_api.py +++ b/memos/api/workspace_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -41,7 +41,7 @@ class WorkspaceServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2GetWorkspaceProfileResponse + :return: V1WorkspaceProfile If the method is called asynchronously, returns the request thread. """ @@ -61,7 +61,7 @@ class WorkspaceServiceApi(object): >>> result = thread.get() :param async_req bool - :return: V2GetWorkspaceProfileResponse + :return: V1WorkspaceProfile If the method is called asynchronously, returns the request thread. """ @@ -102,14 +102,14 @@ class WorkspaceServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/workspace/profile', 'GET', + '/api/v1/workspace/profile', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetWorkspaceProfileResponse', # noqa: E501 + response_type='V1WorkspaceProfile', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api/workspace_setting_service_api.py b/memos/api/workspace_setting_service_api.py index 7155a20..7a6e9c0 100644 --- a/memos/api/workspace_setting_service_api.py +++ b/memos/api/workspace_setting_service_api.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -42,7 +42,7 @@ class WorkspaceSettingServiceApi(object): :param async_req bool :param str name: The resource name of the workspace setting. Format: settings/{setting} (required) - :return: V2GetWorkspaceSettingResponse + :return: Apiv1WorkspaceSetting If the method is called asynchronously, returns the request thread. """ @@ -63,7 +63,7 @@ class WorkspaceSettingServiceApi(object): :param async_req bool :param str name: The resource name of the workspace setting. Format: settings/{setting} (required) - :return: V2GetWorkspaceSettingResponse + :return: Apiv1WorkspaceSetting If the method is called asynchronously, returns the request thread. """ @@ -110,14 +110,99 @@ class WorkspaceSettingServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/workspace/{name}', 'GET', + '/api/v1/workspace/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2GetWorkspaceSettingResponse', # noqa: E501 + response_type='Apiv1WorkspaceSetting', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def workspace_setting_service_list_workspace_settings(self, **kwargs): # noqa: E501 + """ListWorkspaceSetting returns the list of settings. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.workspace_setting_service_list_workspace_settings(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1ListWorkspaceSettingsResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.workspace_setting_service_list_workspace_settings_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.workspace_setting_service_list_workspace_settings_with_http_info(**kwargs) # noqa: E501 + return data + + def workspace_setting_service_list_workspace_settings_with_http_info(self, **kwargs): # noqa: E501 + """ListWorkspaceSetting returns the list of settings. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.workspace_setting_service_list_workspace_settings_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: V1ListWorkspaceSettingsResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workspace_setting_service_list_workspace_settings" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/workspace/settings', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1ListWorkspaceSettingsResponse', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -136,7 +221,7 @@ class WorkspaceSettingServiceApi(object): :param async_req bool :param SettingIsTheSettingToUpdate_ body: setting is the setting to update. (required) :param str setting_name: name is the name of the setting. Format: settings/{setting} (required) - :return: V2SetWorkspaceSettingResponse + :return: Apiv1WorkspaceSetting If the method is called asynchronously, returns the request thread. """ @@ -158,7 +243,7 @@ class WorkspaceSettingServiceApi(object): :param async_req bool :param SettingIsTheSettingToUpdate_ body: setting is the setting to update. (required) :param str setting_name: name is the name of the setting. Format: settings/{setting} (required) - :return: V2SetWorkspaceSettingResponse + :return: Apiv1WorkspaceSetting If the method is called asynchronously, returns the request thread. """ @@ -215,14 +300,14 @@ class WorkspaceSettingServiceApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/api/v2/workspace/{setting.name}', 'PATCH', + '/api/v1/workspace/{setting.name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V2SetWorkspaceSettingResponse', # noqa: E501 + response_type='Apiv1WorkspaceSetting', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/memos/api_client.py b/memos/api_client.py index ce3db24..314b980 100644 --- a/memos/api_client.py +++ b/memos/api_client.py @@ -1,6 +1,6 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/configuration.py b/memos/configuration.py index 7c593a3..03692e5 100644 --- a/memos/configuration.py +++ b/memos/configuration.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/models/__init__.py b/memos/models/__init__.py index f64dc5e..5b0c76b 100644 --- a/memos/models/__init__.py +++ b/memos/models/__init__.py @@ -2,7 +2,7 @@ # flake8: noqa """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -14,98 +14,113 @@ from __future__ import absolute_import # import models into model package -from memos.models.apiv2_activity_memo_comment_payload import Apiv2ActivityMemoCommentPayload -from memos.models.apiv2_activity_payload import Apiv2ActivityPayload -from memos.models.apiv2_activity_version_update_payload import Apiv2ActivityVersionUpdatePayload -from memos.models.apiv2_reaction import Apiv2Reaction -from memos.models.apiv2_reaction_type import Apiv2ReactionType -from memos.models.apiv2_row_status import Apiv2RowStatus -from memos.models.apiv2_user_setting import Apiv2UserSetting -from memos.models.apiv2_webhook import Apiv2Webhook -from memos.models.apiv2_workspace_general_setting import Apiv2WorkspaceGeneralSetting -from memos.models.apiv2_workspace_setting import Apiv2WorkspaceSetting +from memos.models.apiv1_activity_memo_comment_payload import Apiv1ActivityMemoCommentPayload +from memos.models.apiv1_activity_payload import Apiv1ActivityPayload +from memos.models.apiv1_activity_version_update_payload import Apiv1ActivityVersionUpdatePayload +from memos.models.apiv1_field_mapping import Apiv1FieldMapping +from memos.models.apiv1_identity_provider import Apiv1IdentityProvider +from memos.models.apiv1_identity_provider_config import Apiv1IdentityProviderConfig +from memos.models.apiv1_identity_provider_type import Apiv1IdentityProviderType +from memos.models.apiv1_o_auth2_config import Apiv1OAuth2Config +from memos.models.apiv1_user_setting import Apiv1UserSetting +from memos.models.apiv1_workspace_custom_profile import Apiv1WorkspaceCustomProfile +from memos.models.apiv1_workspace_general_setting import Apiv1WorkspaceGeneralSetting +from memos.models.apiv1_workspace_memo_related_setting import Apiv1WorkspaceMemoRelatedSetting +from memos.models.apiv1_workspace_setting import Apiv1WorkspaceSetting +from memos.models.apiv1_workspace_storage_setting import Apiv1WorkspaceStorageSetting +from memos.models.apiv1_workspace_storage_setting_s3_config import Apiv1WorkspaceStorageSettingS3Config +from memos.models.apiv1_workspace_storage_setting_storage_type import Apiv1WorkspaceStorageSettingStorageType from memos.models.googlerpc_status import GooglerpcStatus from memos.models.memo_service_set_memo_relations_body import MemoServiceSetMemoRelationsBody from memos.models.memo_service_set_memo_resources_body import MemoServiceSetMemoResourcesBody -from memos.models.memos_memo_id_body import MemosMemoIdBody +from memos.models.memo_service_upsert_memo_reaction_body import MemoServiceUpsertMemoReactionBody from memos.models.protobuf_any import ProtobufAny -from memos.models.resources_resource_id_body import ResourcesResourceIdBody from memos.models.setting_is_the_setting_to_update_ import SettingIsTheSettingToUpdate_ +from memos.models.table_node_row import TableNodeRow +from memos.models.the_identity_provider_to_update_ import TheIdentityProviderToUpdate_ from memos.models.user_role import UserRole from memos.models.user_service_create_user_access_token_body import UserServiceCreateUserAccessTokenBody -from memos.models.v2_activity import V2Activity -from memos.models.v2_batch_upsert_tag_response import V2BatchUpsertTagResponse -from memos.models.v2_create_memo_comment_response import V2CreateMemoCommentResponse -from memos.models.v2_create_memo_request import V2CreateMemoRequest -from memos.models.v2_create_memo_response import V2CreateMemoResponse -from memos.models.v2_create_resource_response import V2CreateResourceResponse -from memos.models.v2_create_user_access_token_response import V2CreateUserAccessTokenResponse -from memos.models.v2_create_user_response import V2CreateUserResponse -from memos.models.v2_create_webhook_request import V2CreateWebhookRequest -from memos.models.v2_create_webhook_response import V2CreateWebhookResponse -from memos.models.v2_delete_inbox_response import V2DeleteInboxResponse -from memos.models.v2_delete_memo_reaction_response import V2DeleteMemoReactionResponse -from memos.models.v2_delete_memo_response import V2DeleteMemoResponse -from memos.models.v2_delete_resource_response import V2DeleteResourceResponse -from memos.models.v2_delete_tag_response import V2DeleteTagResponse -from memos.models.v2_delete_user_access_token_response import V2DeleteUserAccessTokenResponse -from memos.models.v2_delete_user_response import V2DeleteUserResponse -from memos.models.v2_delete_webhook_response import V2DeleteWebhookResponse -from memos.models.v2_export_memos_response import V2ExportMemosResponse -from memos.models.v2_get_activity_response import V2GetActivityResponse -from memos.models.v2_get_auth_status_response import V2GetAuthStatusResponse -from memos.models.v2_get_memo_by_name_response import V2GetMemoByNameResponse -from memos.models.v2_get_memo_response import V2GetMemoResponse -from memos.models.v2_get_resource_by_name_response import V2GetResourceByNameResponse -from memos.models.v2_get_resource_response import V2GetResourceResponse -from memos.models.v2_get_tag_suggestions_response import V2GetTagSuggestionsResponse -from memos.models.v2_get_user_memos_stats_response import V2GetUserMemosStatsResponse -from memos.models.v2_get_user_response import V2GetUserResponse -from memos.models.v2_get_user_setting_response import V2GetUserSettingResponse -from memos.models.v2_get_webhook_response import V2GetWebhookResponse -from memos.models.v2_get_workspace_profile_response import V2GetWorkspaceProfileResponse -from memos.models.v2_get_workspace_setting_response import V2GetWorkspaceSettingResponse -from memos.models.v2_inbox import V2Inbox -from memos.models.v2_inbox_name_body import V2InboxNameBody -from memos.models.v2_inbox_status import V2InboxStatus -from memos.models.v2_inbox_type import V2InboxType -from memos.models.v2_list_inboxes_response import V2ListInboxesResponse -from memos.models.v2_list_memo_comments_response import V2ListMemoCommentsResponse -from memos.models.v2_list_memo_reactions_response import V2ListMemoReactionsResponse -from memos.models.v2_list_memo_relations_response import V2ListMemoRelationsResponse -from memos.models.v2_list_memo_resources_response import V2ListMemoResourcesResponse -from memos.models.v2_list_memos_response import V2ListMemosResponse -from memos.models.v2_list_resources_response import V2ListResourcesResponse -from memos.models.v2_list_tags_response import V2ListTagsResponse -from memos.models.v2_list_user_access_tokens_response import V2ListUserAccessTokensResponse -from memos.models.v2_list_users_response import V2ListUsersResponse -from memos.models.v2_list_webhooks_response import V2ListWebhooksResponse -from memos.models.v2_memo import V2Memo -from memos.models.v2_memo_relation import V2MemoRelation -from memos.models.v2_memo_relation_type import V2MemoRelationType -from memos.models.v2_rename_tag_response import V2RenameTagResponse -from memos.models.v2_resource import V2Resource -from memos.models.v2_set_memo_relations_response import V2SetMemoRelationsResponse -from memos.models.v2_set_memo_resources_response import V2SetMemoResourcesResponse -from memos.models.v2_set_workspace_setting_response import V2SetWorkspaceSettingResponse -from memos.models.v2_setting_name_body import V2SettingNameBody -from memos.models.v2_sign_in_response import V2SignInResponse -from memos.models.v2_sign_in_with_sso_response import V2SignInWithSSOResponse -from memos.models.v2_sign_out_response import V2SignOutResponse -from memos.models.v2_sign_up_response import V2SignUpResponse -from memos.models.v2_tag import V2Tag -from memos.models.v2_update_inbox_response import V2UpdateInboxResponse -from memos.models.v2_update_memo_response import V2UpdateMemoResponse -from memos.models.v2_update_resource_response import V2UpdateResourceResponse -from memos.models.v2_update_user_response import V2UpdateUserResponse -from memos.models.v2_update_user_setting_response import V2UpdateUserSettingResponse -from memos.models.v2_update_webhook_response import V2UpdateWebhookResponse -from memos.models.v2_upsert_memo_reaction_response import V2UpsertMemoReactionResponse -from memos.models.v2_upsert_tag_request import V2UpsertTagRequest -from memos.models.v2_upsert_tag_response import V2UpsertTagResponse -from memos.models.v2_user import V2User -from memos.models.v2_user_access_token import V2UserAccessToken -from memos.models.v2_user_name_body import V2UserNameBody -from memos.models.v2_visibility import V2Visibility -from memos.models.v2_workspace_profile import V2WorkspaceProfile +from memos.models.v1_activity import V1Activity +from memos.models.v1_auto_link_node import V1AutoLinkNode +from memos.models.v1_batch_upsert_tag_request import V1BatchUpsertTagRequest +from memos.models.v1_blockquote_node import V1BlockquoteNode +from memos.models.v1_bold_italic_node import V1BoldItalicNode +from memos.models.v1_bold_node import V1BoldNode +from memos.models.v1_code_block_node import V1CodeBlockNode +from memos.models.v1_code_node import V1CodeNode +from memos.models.v1_create_memo_request import V1CreateMemoRequest +from memos.models.v1_create_webhook_request import V1CreateWebhookRequest +from memos.models.v1_embedded_content_node import V1EmbeddedContentNode +from memos.models.v1_escaping_character_node import V1EscapingCharacterNode +from memos.models.v1_export_memos_request import V1ExportMemosRequest +from memos.models.v1_export_memos_response import V1ExportMemosResponse +from memos.models.v1_get_tag_suggestions_response import V1GetTagSuggestionsResponse +from memos.models.v1_get_user_memos_stats_response import V1GetUserMemosStatsResponse +from memos.models.v1_heading_node import V1HeadingNode +from memos.models.v1_highlight_node import V1HighlightNode +from memos.models.v1_horizontal_rule_node import V1HorizontalRuleNode +from memos.models.v1_image_node import V1ImageNode +from memos.models.v1_inbox import V1Inbox +from memos.models.v1_inbox_name_body import V1InboxNameBody +from memos.models.v1_inbox_status import V1InboxStatus +from memos.models.v1_inbox_type import V1InboxType +from memos.models.v1_italic_node import V1ItalicNode +from memos.models.v1_line_break_node import V1LineBreakNode +from memos.models.v1_link_metadata import V1LinkMetadata +from memos.models.v1_link_node import V1LinkNode +from memos.models.v1_list_identity_providers_response import V1ListIdentityProvidersResponse +from memos.models.v1_list_inboxes_response import V1ListInboxesResponse +from memos.models.v1_list_memo_comments_response import V1ListMemoCommentsResponse +from memos.models.v1_list_memo_reactions_response import V1ListMemoReactionsResponse +from memos.models.v1_list_memo_relations_response import V1ListMemoRelationsResponse +from memos.models.v1_list_memo_resources_response import V1ListMemoResourcesResponse +from memos.models.v1_list_memos_response import V1ListMemosResponse +from memos.models.v1_list_resources_response import V1ListResourcesResponse +from memos.models.v1_list_tags_response import V1ListTagsResponse +from memos.models.v1_list_user_access_tokens_response import V1ListUserAccessTokensResponse +from memos.models.v1_list_users_response import V1ListUsersResponse +from memos.models.v1_list_webhooks_response import V1ListWebhooksResponse +from memos.models.v1_list_workspace_settings_response import V1ListWorkspaceSettingsResponse +from memos.models.v1_math_block_node import V1MathBlockNode +from memos.models.v1_math_node import V1MathNode +from memos.models.v1_memo import V1Memo +from memos.models.v1_memo_name_body import V1MemoNameBody +from memos.models.v1_memo_relation import V1MemoRelation +from memos.models.v1_memo_relation_type import V1MemoRelationType +from memos.models.v1_node import V1Node +from memos.models.v1_node_type import V1NodeType +from memos.models.v1_ordered_list_node import V1OrderedListNode +from memos.models.v1_paragraph_node import V1ParagraphNode +from memos.models.v1_parse_markdown_request import V1ParseMarkdownRequest +from memos.models.v1_parse_markdown_response import V1ParseMarkdownResponse +from memos.models.v1_reaction import V1Reaction +from memos.models.v1_reaction_type import V1ReactionType +from memos.models.v1_referenced_content_node import V1ReferencedContentNode +from memos.models.v1_rename_tag_request import V1RenameTagRequest +from memos.models.v1_resource import V1Resource +from memos.models.v1_resource_name_body import V1ResourceNameBody +from memos.models.v1_restore_markdown_request import V1RestoreMarkdownRequest +from memos.models.v1_restore_markdown_response import V1RestoreMarkdownResponse +from memos.models.v1_row_status import V1RowStatus +from memos.models.v1_search_memos_response import V1SearchMemosResponse +from memos.models.v1_search_resources_response import V1SearchResourcesResponse +from memos.models.v1_search_users_response import V1SearchUsersResponse +from memos.models.v1_setting_name_body import V1SettingNameBody +from memos.models.v1_spoiler_node import V1SpoilerNode +from memos.models.v1_strikethrough_node import V1StrikethroughNode +from memos.models.v1_subscript_node import V1SubscriptNode +from memos.models.v1_superscript_node import V1SuperscriptNode +from memos.models.v1_table_node import V1TableNode +from memos.models.v1_tag import V1Tag +from memos.models.v1_tag_node import V1TagNode +from memos.models.v1_task_list_node import V1TaskListNode +from memos.models.v1_text_node import V1TextNode +from memos.models.v1_unordered_list_node import V1UnorderedListNode +from memos.models.v1_upsert_tag_request import V1UpsertTagRequest +from memos.models.v1_user import V1User +from memos.models.v1_user_access_token import V1UserAccessToken +from memos.models.v1_user_name_body import V1UserNameBody +from memos.models.v1_visibility import V1Visibility +from memos.models.v1_webhook import V1Webhook +from memos.models.v1_workspace_profile import V1WorkspaceProfile from memos.models.webhooks_webhook_id_body import WebhooksWebhookIdBody diff --git a/memos/models/apiv1_activity_memo_comment_payload.py b/memos/models/apiv1_activity_memo_comment_payload.py new file mode 100644 index 0000000..5565806 --- /dev/null +++ b/memos/models/apiv1_activity_memo_comment_payload.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1ActivityMemoCommentPayload(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memo_id': 'int', + 'related_memo_id': 'int' + } + + attribute_map = { + 'memo_id': 'memoId', + 'related_memo_id': 'relatedMemoId' + } + + def __init__(self, memo_id=None, related_memo_id=None): # noqa: E501 + """Apiv1ActivityMemoCommentPayload - a model defined in Swagger""" # noqa: E501 + self._memo_id = None + self._related_memo_id = None + self.discriminator = None + if memo_id is not None: + self.memo_id = memo_id + if related_memo_id is not None: + self.related_memo_id = related_memo_id + + @property + def memo_id(self): + """Gets the memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + + The memo id of comment. # noqa: E501 + + :return: The memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + :rtype: int + """ + return self._memo_id + + @memo_id.setter + def memo_id(self, memo_id): + """Sets the memo_id of this Apiv1ActivityMemoCommentPayload. + + The memo id of comment. # noqa: E501 + + :param memo_id: The memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + :type: int + """ + + self._memo_id = memo_id + + @property + def related_memo_id(self): + """Gets the related_memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + + The memo id of related memo. # noqa: E501 + + :return: The related_memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + :rtype: int + """ + return self._related_memo_id + + @related_memo_id.setter + def related_memo_id(self, related_memo_id): + """Sets the related_memo_id of this Apiv1ActivityMemoCommentPayload. + + The memo id of related memo. # noqa: E501 + + :param related_memo_id: The related_memo_id of this Apiv1ActivityMemoCommentPayload. # noqa: E501 + :type: int + """ + + self._related_memo_id = related_memo_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1ActivityMemoCommentPayload, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1ActivityMemoCommentPayload): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_activity_payload.py b/memos/models/apiv1_activity_payload.py new file mode 100644 index 0000000..c799369 --- /dev/null +++ b/memos/models/apiv1_activity_payload.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1ActivityPayload(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memo_comment': 'Apiv1ActivityMemoCommentPayload', + 'version_update': 'Apiv1ActivityVersionUpdatePayload' + } + + attribute_map = { + 'memo_comment': 'memoComment', + 'version_update': 'versionUpdate' + } + + def __init__(self, memo_comment=None, version_update=None): # noqa: E501 + """Apiv1ActivityPayload - a model defined in Swagger""" # noqa: E501 + self._memo_comment = None + self._version_update = None + self.discriminator = None + if memo_comment is not None: + self.memo_comment = memo_comment + if version_update is not None: + self.version_update = version_update + + @property + def memo_comment(self): + """Gets the memo_comment of this Apiv1ActivityPayload. # noqa: E501 + + + :return: The memo_comment of this Apiv1ActivityPayload. # noqa: E501 + :rtype: Apiv1ActivityMemoCommentPayload + """ + return self._memo_comment + + @memo_comment.setter + def memo_comment(self, memo_comment): + """Sets the memo_comment of this Apiv1ActivityPayload. + + + :param memo_comment: The memo_comment of this Apiv1ActivityPayload. # noqa: E501 + :type: Apiv1ActivityMemoCommentPayload + """ + + self._memo_comment = memo_comment + + @property + def version_update(self): + """Gets the version_update of this Apiv1ActivityPayload. # noqa: E501 + + + :return: The version_update of this Apiv1ActivityPayload. # noqa: E501 + :rtype: Apiv1ActivityVersionUpdatePayload + """ + return self._version_update + + @version_update.setter + def version_update(self, version_update): + """Sets the version_update of this Apiv1ActivityPayload. + + + :param version_update: The version_update of this Apiv1ActivityPayload. # noqa: E501 + :type: Apiv1ActivityVersionUpdatePayload + """ + + self._version_update = version_update + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1ActivityPayload, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1ActivityPayload): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_activity_version_update_payload.py b/memos/models/apiv1_activity_version_update_payload.py new file mode 100644 index 0000000..89ed862 --- /dev/null +++ b/memos/models/apiv1_activity_version_update_payload.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1ActivityVersionUpdatePayload(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'version': 'str' + } + + attribute_map = { + 'version': 'version' + } + + def __init__(self, version=None): # noqa: E501 + """Apiv1ActivityVersionUpdatePayload - a model defined in Swagger""" # noqa: E501 + self._version = None + self.discriminator = None + if version is not None: + self.version = version + + @property + def version(self): + """Gets the version of this Apiv1ActivityVersionUpdatePayload. # noqa: E501 + + The updated version of memos. # noqa: E501 + + :return: The version of this Apiv1ActivityVersionUpdatePayload. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this Apiv1ActivityVersionUpdatePayload. + + The updated version of memos. # noqa: E501 + + :param version: The version of this Apiv1ActivityVersionUpdatePayload. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1ActivityVersionUpdatePayload, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1ActivityVersionUpdatePayload): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_field_mapping.py b/memos/models/apiv1_field_mapping.py new file mode 100644 index 0000000..ab95cb8 --- /dev/null +++ b/memos/models/apiv1_field_mapping.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1FieldMapping(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'identifier': 'str', + 'display_name': 'str', + 'email': 'str' + } + + attribute_map = { + 'identifier': 'identifier', + 'display_name': 'displayName', + 'email': 'email' + } + + def __init__(self, identifier=None, display_name=None, email=None): # noqa: E501 + """Apiv1FieldMapping - a model defined in Swagger""" # noqa: E501 + self._identifier = None + self._display_name = None + self._email = None + self.discriminator = None + if identifier is not None: + self.identifier = identifier + if display_name is not None: + self.display_name = display_name + if email is not None: + self.email = email + + @property + def identifier(self): + """Gets the identifier of this Apiv1FieldMapping. # noqa: E501 + + + :return: The identifier of this Apiv1FieldMapping. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this Apiv1FieldMapping. + + + :param identifier: The identifier of this Apiv1FieldMapping. # noqa: E501 + :type: str + """ + + self._identifier = identifier + + @property + def display_name(self): + """Gets the display_name of this Apiv1FieldMapping. # noqa: E501 + + + :return: The display_name of this Apiv1FieldMapping. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this Apiv1FieldMapping. + + + :param display_name: The display_name of this Apiv1FieldMapping. # noqa: E501 + :type: str + """ + + self._display_name = display_name + + @property + def email(self): + """Gets the email of this Apiv1FieldMapping. # noqa: E501 + + + :return: The email of this Apiv1FieldMapping. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Apiv1FieldMapping. + + + :param email: The email of this Apiv1FieldMapping. # noqa: E501 + :type: str + """ + + self._email = email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1FieldMapping, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1FieldMapping): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_identity_provider.py b/memos/models/apiv1_identity_provider.py new file mode 100644 index 0000000..553bf0e --- /dev/null +++ b/memos/models/apiv1_identity_provider.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1IdentityProvider(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'type': 'Apiv1IdentityProviderType', + 'title': 'str', + 'identifier_filter': 'str', + 'config': 'Apiv1IdentityProviderConfig' + } + + attribute_map = { + 'name': 'name', + 'type': 'type', + 'title': 'title', + 'identifier_filter': 'identifierFilter', + 'config': 'config' + } + + def __init__(self, name=None, type=None, title=None, identifier_filter=None, config=None): # noqa: E501 + """Apiv1IdentityProvider - a model defined in Swagger""" # noqa: E501 + self._name = None + self._type = None + self._title = None + self._identifier_filter = None + self._config = None + self.discriminator = None + if name is not None: + self.name = name + if type is not None: + self.type = type + if title is not None: + self.title = title + if identifier_filter is not None: + self.identifier_filter = identifier_filter + if config is not None: + self.config = config + + @property + def name(self): + """Gets the name of this Apiv1IdentityProvider. # noqa: E501 + + + :return: The name of this Apiv1IdentityProvider. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Apiv1IdentityProvider. + + + :param name: The name of this Apiv1IdentityProvider. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def type(self): + """Gets the type of this Apiv1IdentityProvider. # noqa: E501 + + + :return: The type of this Apiv1IdentityProvider. # noqa: E501 + :rtype: Apiv1IdentityProviderType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Apiv1IdentityProvider. + + + :param type: The type of this Apiv1IdentityProvider. # noqa: E501 + :type: Apiv1IdentityProviderType + """ + + self._type = type + + @property + def title(self): + """Gets the title of this Apiv1IdentityProvider. # noqa: E501 + + + :return: The title of this Apiv1IdentityProvider. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this Apiv1IdentityProvider. + + + :param title: The title of this Apiv1IdentityProvider. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def identifier_filter(self): + """Gets the identifier_filter of this Apiv1IdentityProvider. # noqa: E501 + + + :return: The identifier_filter of this Apiv1IdentityProvider. # noqa: E501 + :rtype: str + """ + return self._identifier_filter + + @identifier_filter.setter + def identifier_filter(self, identifier_filter): + """Sets the identifier_filter of this Apiv1IdentityProvider. + + + :param identifier_filter: The identifier_filter of this Apiv1IdentityProvider. # noqa: E501 + :type: str + """ + + self._identifier_filter = identifier_filter + + @property + def config(self): + """Gets the config of this Apiv1IdentityProvider. # noqa: E501 + + + :return: The config of this Apiv1IdentityProvider. # noqa: E501 + :rtype: Apiv1IdentityProviderConfig + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this Apiv1IdentityProvider. + + + :param config: The config of this Apiv1IdentityProvider. # noqa: E501 + :type: Apiv1IdentityProviderConfig + """ + + self._config = config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1IdentityProvider, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1IdentityProvider): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_identity_provider_config.py b/memos/models/apiv1_identity_provider_config.py new file mode 100644 index 0000000..cd83997 --- /dev/null +++ b/memos/models/apiv1_identity_provider_config.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1IdentityProviderConfig(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'oauth2_config': 'Apiv1OAuth2Config' + } + + attribute_map = { + 'oauth2_config': 'oauth2Config' + } + + def __init__(self, oauth2_config=None): # noqa: E501 + """Apiv1IdentityProviderConfig - a model defined in Swagger""" # noqa: E501 + self._oauth2_config = None + self.discriminator = None + if oauth2_config is not None: + self.oauth2_config = oauth2_config + + @property + def oauth2_config(self): + """Gets the oauth2_config of this Apiv1IdentityProviderConfig. # noqa: E501 + + + :return: The oauth2_config of this Apiv1IdentityProviderConfig. # noqa: E501 + :rtype: Apiv1OAuth2Config + """ + return self._oauth2_config + + @oauth2_config.setter + def oauth2_config(self, oauth2_config): + """Sets the oauth2_config of this Apiv1IdentityProviderConfig. + + + :param oauth2_config: The oauth2_config of this Apiv1IdentityProviderConfig. # noqa: E501 + :type: Apiv1OAuth2Config + """ + + self._oauth2_config = oauth2_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1IdentityProviderConfig, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1IdentityProviderConfig): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_identity_provider_type.py b/memos/models/apiv1_identity_provider_type.py new file mode 100644 index 0000000..03f4385 --- /dev/null +++ b/memos/models/apiv1_identity_provider_type.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1IdentityProviderType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED" + OAUTH2 = "OAUTH2" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """Apiv1IdentityProviderType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1IdentityProviderType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1IdentityProviderType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_o_auth2_config.py b/memos/models/apiv1_o_auth2_config.py new file mode 100644 index 0000000..ab82f75 --- /dev/null +++ b/memos/models/apiv1_o_auth2_config.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1OAuth2Config(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'client_id': 'str', + 'client_secret': 'str', + 'auth_url': 'str', + 'token_url': 'str', + 'user_info_url': 'str', + 'scopes': 'list[str]', + 'field_mapping': 'Apiv1FieldMapping' + } + + attribute_map = { + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'auth_url': 'authUrl', + 'token_url': 'tokenUrl', + 'user_info_url': 'userInfoUrl', + 'scopes': 'scopes', + 'field_mapping': 'fieldMapping' + } + + def __init__(self, client_id=None, client_secret=None, auth_url=None, token_url=None, user_info_url=None, scopes=None, field_mapping=None): # noqa: E501 + """Apiv1OAuth2Config - a model defined in Swagger""" # noqa: E501 + self._client_id = None + self._client_secret = None + self._auth_url = None + self._token_url = None + self._user_info_url = None + self._scopes = None + self._field_mapping = None + self.discriminator = None + if client_id is not None: + self.client_id = client_id + if client_secret is not None: + self.client_secret = client_secret + if auth_url is not None: + self.auth_url = auth_url + if token_url is not None: + self.token_url = token_url + if user_info_url is not None: + self.user_info_url = user_info_url + if scopes is not None: + self.scopes = scopes + if field_mapping is not None: + self.field_mapping = field_mapping + + @property + def client_id(self): + """Gets the client_id of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The client_id of this Apiv1OAuth2Config. # noqa: E501 + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """Sets the client_id of this Apiv1OAuth2Config. + + + :param client_id: The client_id of this Apiv1OAuth2Config. # noqa: E501 + :type: str + """ + + self._client_id = client_id + + @property + def client_secret(self): + """Gets the client_secret of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The client_secret of this Apiv1OAuth2Config. # noqa: E501 + :rtype: str + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """Sets the client_secret of this Apiv1OAuth2Config. + + + :param client_secret: The client_secret of this Apiv1OAuth2Config. # noqa: E501 + :type: str + """ + + self._client_secret = client_secret + + @property + def auth_url(self): + """Gets the auth_url of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The auth_url of this Apiv1OAuth2Config. # noqa: E501 + :rtype: str + """ + return self._auth_url + + @auth_url.setter + def auth_url(self, auth_url): + """Sets the auth_url of this Apiv1OAuth2Config. + + + :param auth_url: The auth_url of this Apiv1OAuth2Config. # noqa: E501 + :type: str + """ + + self._auth_url = auth_url + + @property + def token_url(self): + """Gets the token_url of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The token_url of this Apiv1OAuth2Config. # noqa: E501 + :rtype: str + """ + return self._token_url + + @token_url.setter + def token_url(self, token_url): + """Sets the token_url of this Apiv1OAuth2Config. + + + :param token_url: The token_url of this Apiv1OAuth2Config. # noqa: E501 + :type: str + """ + + self._token_url = token_url + + @property + def user_info_url(self): + """Gets the user_info_url of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The user_info_url of this Apiv1OAuth2Config. # noqa: E501 + :rtype: str + """ + return self._user_info_url + + @user_info_url.setter + def user_info_url(self, user_info_url): + """Sets the user_info_url of this Apiv1OAuth2Config. + + + :param user_info_url: The user_info_url of this Apiv1OAuth2Config. # noqa: E501 + :type: str + """ + + self._user_info_url = user_info_url + + @property + def scopes(self): + """Gets the scopes of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The scopes of this Apiv1OAuth2Config. # noqa: E501 + :rtype: list[str] + """ + return self._scopes + + @scopes.setter + def scopes(self, scopes): + """Sets the scopes of this Apiv1OAuth2Config. + + + :param scopes: The scopes of this Apiv1OAuth2Config. # noqa: E501 + :type: list[str] + """ + + self._scopes = scopes + + @property + def field_mapping(self): + """Gets the field_mapping of this Apiv1OAuth2Config. # noqa: E501 + + + :return: The field_mapping of this Apiv1OAuth2Config. # noqa: E501 + :rtype: Apiv1FieldMapping + """ + return self._field_mapping + + @field_mapping.setter + def field_mapping(self, field_mapping): + """Sets the field_mapping of this Apiv1OAuth2Config. + + + :param field_mapping: The field_mapping of this Apiv1OAuth2Config. # noqa: E501 + :type: Apiv1FieldMapping + """ + + self._field_mapping = field_mapping + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1OAuth2Config, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1OAuth2Config): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_user_setting.py b/memos/models/apiv1_user_setting.py new file mode 100644 index 0000000..371fd34 --- /dev/null +++ b/memos/models/apiv1_user_setting.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1UserSetting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'locale': 'str', + 'appearance': 'str', + 'memo_visibility': 'str' + } + + attribute_map = { + 'name': 'name', + 'locale': 'locale', + 'appearance': 'appearance', + 'memo_visibility': 'memoVisibility' + } + + def __init__(self, name=None, locale=None, appearance=None, memo_visibility=None): # noqa: E501 + """Apiv1UserSetting - a model defined in Swagger""" # noqa: E501 + self._name = None + self._locale = None + self._appearance = None + self._memo_visibility = None + self.discriminator = None + if name is not None: + self.name = name + if locale is not None: + self.locale = locale + if appearance is not None: + self.appearance = appearance + if memo_visibility is not None: + self.memo_visibility = memo_visibility + + @property + def name(self): + """Gets the name of this Apiv1UserSetting. # noqa: E501 + + + :return: The name of this Apiv1UserSetting. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Apiv1UserSetting. + + + :param name: The name of this Apiv1UserSetting. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def locale(self): + """Gets the locale of this Apiv1UserSetting. # noqa: E501 + + The preferred locale of the user. # noqa: E501 + + :return: The locale of this Apiv1UserSetting. # noqa: E501 + :rtype: str + """ + return self._locale + + @locale.setter + def locale(self, locale): + """Sets the locale of this Apiv1UserSetting. + + The preferred locale of the user. # noqa: E501 + + :param locale: The locale of this Apiv1UserSetting. # noqa: E501 + :type: str + """ + + self._locale = locale + + @property + def appearance(self): + """Gets the appearance of this Apiv1UserSetting. # noqa: E501 + + The preferred appearance of the user. # noqa: E501 + + :return: The appearance of this Apiv1UserSetting. # noqa: E501 + :rtype: str + """ + return self._appearance + + @appearance.setter + def appearance(self, appearance): + """Sets the appearance of this Apiv1UserSetting. + + The preferred appearance of the user. # noqa: E501 + + :param appearance: The appearance of this Apiv1UserSetting. # noqa: E501 + :type: str + """ + + self._appearance = appearance + + @property + def memo_visibility(self): + """Gets the memo_visibility of this Apiv1UserSetting. # noqa: E501 + + The default visibility of the memo. # noqa: E501 + + :return: The memo_visibility of this Apiv1UserSetting. # noqa: E501 + :rtype: str + """ + return self._memo_visibility + + @memo_visibility.setter + def memo_visibility(self, memo_visibility): + """Sets the memo_visibility of this Apiv1UserSetting. + + The default visibility of the memo. # noqa: E501 + + :param memo_visibility: The memo_visibility of this Apiv1UserSetting. # noqa: E501 + :type: str + """ + + self._memo_visibility = memo_visibility + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1UserSetting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1UserSetting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_custom_profile.py b/memos/models/apiv1_workspace_custom_profile.py new file mode 100644 index 0000000..fd88187 --- /dev/null +++ b/memos/models/apiv1_workspace_custom_profile.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceCustomProfile(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'title': 'str', + 'description': 'str', + 'logo_url': 'str', + 'locale': 'str', + 'appearance': 'str' + } + + attribute_map = { + 'title': 'title', + 'description': 'description', + 'logo_url': 'logoUrl', + 'locale': 'locale', + 'appearance': 'appearance' + } + + def __init__(self, title=None, description=None, logo_url=None, locale=None, appearance=None): # noqa: E501 + """Apiv1WorkspaceCustomProfile - a model defined in Swagger""" # noqa: E501 + self._title = None + self._description = None + self._logo_url = None + self._locale = None + self._appearance = None + self.discriminator = None + if title is not None: + self.title = title + if description is not None: + self.description = description + if logo_url is not None: + self.logo_url = logo_url + if locale is not None: + self.locale = locale + if appearance is not None: + self.appearance = appearance + + @property + def title(self): + """Gets the title of this Apiv1WorkspaceCustomProfile. # noqa: E501 + + + :return: The title of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this Apiv1WorkspaceCustomProfile. + + + :param title: The title of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def description(self): + """Gets the description of this Apiv1WorkspaceCustomProfile. # noqa: E501 + + + :return: The description of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this Apiv1WorkspaceCustomProfile. + + + :param description: The description of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def logo_url(self): + """Gets the logo_url of this Apiv1WorkspaceCustomProfile. # noqa: E501 + + + :return: The logo_url of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :rtype: str + """ + return self._logo_url + + @logo_url.setter + def logo_url(self, logo_url): + """Sets the logo_url of this Apiv1WorkspaceCustomProfile. + + + :param logo_url: The logo_url of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :type: str + """ + + self._logo_url = logo_url + + @property + def locale(self): + """Gets the locale of this Apiv1WorkspaceCustomProfile. # noqa: E501 + + + :return: The locale of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :rtype: str + """ + return self._locale + + @locale.setter + def locale(self, locale): + """Sets the locale of this Apiv1WorkspaceCustomProfile. + + + :param locale: The locale of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :type: str + """ + + self._locale = locale + + @property + def appearance(self): + """Gets the appearance of this Apiv1WorkspaceCustomProfile. # noqa: E501 + + + :return: The appearance of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :rtype: str + """ + return self._appearance + + @appearance.setter + def appearance(self, appearance): + """Sets the appearance of this Apiv1WorkspaceCustomProfile. + + + :param appearance: The appearance of this Apiv1WorkspaceCustomProfile. # noqa: E501 + :type: str + """ + + self._appearance = appearance + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceCustomProfile, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceCustomProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_general_setting.py b/memos/models/apiv1_workspace_general_setting.py new file mode 100644 index 0000000..6c1307d --- /dev/null +++ b/memos/models/apiv1_workspace_general_setting.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceGeneralSetting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'instance_url': 'str', + 'disallow_signup': 'bool', + 'disallow_password_login': 'bool', + 'additional_script': 'str', + 'additional_style': 'str', + 'custom_profile': 'Apiv1WorkspaceCustomProfile' + } + + attribute_map = { + 'instance_url': 'instanceUrl', + 'disallow_signup': 'disallowSignup', + 'disallow_password_login': 'disallowPasswordLogin', + 'additional_script': 'additionalScript', + 'additional_style': 'additionalStyle', + 'custom_profile': 'customProfile' + } + + def __init__(self, instance_url=None, disallow_signup=None, disallow_password_login=None, additional_script=None, additional_style=None, custom_profile=None): # noqa: E501 + """Apiv1WorkspaceGeneralSetting - a model defined in Swagger""" # noqa: E501 + self._instance_url = None + self._disallow_signup = None + self._disallow_password_login = None + self._additional_script = None + self._additional_style = None + self._custom_profile = None + self.discriminator = None + if instance_url is not None: + self.instance_url = instance_url + if disallow_signup is not None: + self.disallow_signup = disallow_signup + if disallow_password_login is not None: + self.disallow_password_login = disallow_password_login + if additional_script is not None: + self.additional_script = additional_script + if additional_style is not None: + self.additional_style = additional_style + if custom_profile is not None: + self.custom_profile = custom_profile + + @property + def instance_url(self): + """Gets the instance_url of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + instance_url is the instance URL. # noqa: E501 + + :return: The instance_url of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: str + """ + return self._instance_url + + @instance_url.setter + def instance_url(self, instance_url): + """Sets the instance_url of this Apiv1WorkspaceGeneralSetting. + + instance_url is the instance URL. # noqa: E501 + + :param instance_url: The instance_url of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: str + """ + + self._instance_url = instance_url + + @property + def disallow_signup(self): + """Gets the disallow_signup of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + disallow_signup is the flag to disallow signup. # noqa: E501 + + :return: The disallow_signup of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: bool + """ + return self._disallow_signup + + @disallow_signup.setter + def disallow_signup(self, disallow_signup): + """Sets the disallow_signup of this Apiv1WorkspaceGeneralSetting. + + disallow_signup is the flag to disallow signup. # noqa: E501 + + :param disallow_signup: The disallow_signup of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: bool + """ + + self._disallow_signup = disallow_signup + + @property + def disallow_password_login(self): + """Gets the disallow_password_login of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + disallow_password_login is the flag to disallow password login. # noqa: E501 + + :return: The disallow_password_login of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: bool + """ + return self._disallow_password_login + + @disallow_password_login.setter + def disallow_password_login(self, disallow_password_login): + """Sets the disallow_password_login of this Apiv1WorkspaceGeneralSetting. + + disallow_password_login is the flag to disallow password login. # noqa: E501 + + :param disallow_password_login: The disallow_password_login of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: bool + """ + + self._disallow_password_login = disallow_password_login + + @property + def additional_script(self): + """Gets the additional_script of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + additional_script is the additional script. # noqa: E501 + + :return: The additional_script of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: str + """ + return self._additional_script + + @additional_script.setter + def additional_script(self, additional_script): + """Sets the additional_script of this Apiv1WorkspaceGeneralSetting. + + additional_script is the additional script. # noqa: E501 + + :param additional_script: The additional_script of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: str + """ + + self._additional_script = additional_script + + @property + def additional_style(self): + """Gets the additional_style of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + additional_style is the additional style. # noqa: E501 + + :return: The additional_style of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: str + """ + return self._additional_style + + @additional_style.setter + def additional_style(self, additional_style): + """Sets the additional_style of this Apiv1WorkspaceGeneralSetting. + + additional_style is the additional style. # noqa: E501 + + :param additional_style: The additional_style of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: str + """ + + self._additional_style = additional_style + + @property + def custom_profile(self): + """Gets the custom_profile of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + + + :return: The custom_profile of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :rtype: Apiv1WorkspaceCustomProfile + """ + return self._custom_profile + + @custom_profile.setter + def custom_profile(self, custom_profile): + """Sets the custom_profile of this Apiv1WorkspaceGeneralSetting. + + + :param custom_profile: The custom_profile of this Apiv1WorkspaceGeneralSetting. # noqa: E501 + :type: Apiv1WorkspaceCustomProfile + """ + + self._custom_profile = custom_profile + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceGeneralSetting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceGeneralSetting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_memo_related_setting.py b/memos/models/apiv1_workspace_memo_related_setting.py new file mode 100644 index 0000000..f1c3de2 --- /dev/null +++ b/memos/models/apiv1_workspace_memo_related_setting.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceMemoRelatedSetting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'disallow_public_visible': 'bool', + 'display_with_update_time': 'bool' + } + + attribute_map = { + 'disallow_public_visible': 'disallowPublicVisible', + 'display_with_update_time': 'displayWithUpdateTime' + } + + def __init__(self, disallow_public_visible=None, display_with_update_time=None): # noqa: E501 + """Apiv1WorkspaceMemoRelatedSetting - a model defined in Swagger""" # noqa: E501 + self._disallow_public_visible = None + self._display_with_update_time = None + self.discriminator = None + if disallow_public_visible is not None: + self.disallow_public_visible = disallow_public_visible + if display_with_update_time is not None: + self.display_with_update_time = display_with_update_time + + @property + def disallow_public_visible(self): + """Gets the disallow_public_visible of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + + disallow_public_share disallows set memo as public visible. # noqa: E501 + + :return: The disallow_public_visible of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + :rtype: bool + """ + return self._disallow_public_visible + + @disallow_public_visible.setter + def disallow_public_visible(self, disallow_public_visible): + """Sets the disallow_public_visible of this Apiv1WorkspaceMemoRelatedSetting. + + disallow_public_share disallows set memo as public visible. # noqa: E501 + + :param disallow_public_visible: The disallow_public_visible of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + :type: bool + """ + + self._disallow_public_visible = disallow_public_visible + + @property + def display_with_update_time(self): + """Gets the display_with_update_time of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + + display_with_update_time orders and displays memo with update time. # noqa: E501 + + :return: The display_with_update_time of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + :rtype: bool + """ + return self._display_with_update_time + + @display_with_update_time.setter + def display_with_update_time(self, display_with_update_time): + """Sets the display_with_update_time of this Apiv1WorkspaceMemoRelatedSetting. + + display_with_update_time orders and displays memo with update time. # noqa: E501 + + :param display_with_update_time: The display_with_update_time of this Apiv1WorkspaceMemoRelatedSetting. # noqa: E501 + :type: bool + """ + + self._display_with_update_time = display_with_update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceMemoRelatedSetting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceMemoRelatedSetting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_setting.py b/memos/models/apiv1_workspace_setting.py new file mode 100644 index 0000000..9c9a45a --- /dev/null +++ b/memos/models/apiv1_workspace_setting.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceSetting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'general_setting': 'Apiv1WorkspaceGeneralSetting', + 'storage_setting': 'Apiv1WorkspaceStorageSetting', + 'memo_related_setting': 'Apiv1WorkspaceMemoRelatedSetting' + } + + attribute_map = { + 'name': 'name', + 'general_setting': 'generalSetting', + 'storage_setting': 'storageSetting', + 'memo_related_setting': 'memoRelatedSetting' + } + + def __init__(self, name=None, general_setting=None, storage_setting=None, memo_related_setting=None): # noqa: E501 + """Apiv1WorkspaceSetting - a model defined in Swagger""" # noqa: E501 + self._name = None + self._general_setting = None + self._storage_setting = None + self._memo_related_setting = None + self.discriminator = None + if name is not None: + self.name = name + if general_setting is not None: + self.general_setting = general_setting + if storage_setting is not None: + self.storage_setting = storage_setting + if memo_related_setting is not None: + self.memo_related_setting = memo_related_setting + + @property + def name(self): + """Gets the name of this Apiv1WorkspaceSetting. # noqa: E501 + + + :return: The name of this Apiv1WorkspaceSetting. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Apiv1WorkspaceSetting. + + + :param name: The name of this Apiv1WorkspaceSetting. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def general_setting(self): + """Gets the general_setting of this Apiv1WorkspaceSetting. # noqa: E501 + + + :return: The general_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :rtype: Apiv1WorkspaceGeneralSetting + """ + return self._general_setting + + @general_setting.setter + def general_setting(self, general_setting): + """Sets the general_setting of this Apiv1WorkspaceSetting. + + + :param general_setting: The general_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :type: Apiv1WorkspaceGeneralSetting + """ + + self._general_setting = general_setting + + @property + def storage_setting(self): + """Gets the storage_setting of this Apiv1WorkspaceSetting. # noqa: E501 + + + :return: The storage_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :rtype: Apiv1WorkspaceStorageSetting + """ + return self._storage_setting + + @storage_setting.setter + def storage_setting(self, storage_setting): + """Sets the storage_setting of this Apiv1WorkspaceSetting. + + + :param storage_setting: The storage_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :type: Apiv1WorkspaceStorageSetting + """ + + self._storage_setting = storage_setting + + @property + def memo_related_setting(self): + """Gets the memo_related_setting of this Apiv1WorkspaceSetting. # noqa: E501 + + + :return: The memo_related_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :rtype: Apiv1WorkspaceMemoRelatedSetting + """ + return self._memo_related_setting + + @memo_related_setting.setter + def memo_related_setting(self, memo_related_setting): + """Sets the memo_related_setting of this Apiv1WorkspaceSetting. + + + :param memo_related_setting: The memo_related_setting of this Apiv1WorkspaceSetting. # noqa: E501 + :type: Apiv1WorkspaceMemoRelatedSetting + """ + + self._memo_related_setting = memo_related_setting + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceSetting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceSetting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_storage_setting.py b/memos/models/apiv1_workspace_storage_setting.py new file mode 100644 index 0000000..1227bc0 --- /dev/null +++ b/memos/models/apiv1_workspace_storage_setting.py @@ -0,0 +1,190 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceStorageSetting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'storage_type': 'Apiv1WorkspaceStorageSettingStorageType', + 'filepath_template': 'str', + 'upload_size_limit_mb': 'str', + 's3_config': 'Apiv1WorkspaceStorageSettingS3Config' + } + + attribute_map = { + 'storage_type': 'storageType', + 'filepath_template': 'filepathTemplate', + 'upload_size_limit_mb': 'uploadSizeLimitMb', + 's3_config': 's3Config' + } + + def __init__(self, storage_type=None, filepath_template=None, upload_size_limit_mb=None, s3_config=None): # noqa: E501 + """Apiv1WorkspaceStorageSetting - a model defined in Swagger""" # noqa: E501 + self._storage_type = None + self._filepath_template = None + self._upload_size_limit_mb = None + self._s3_config = None + self.discriminator = None + if storage_type is not None: + self.storage_type = storage_type + if filepath_template is not None: + self.filepath_template = filepath_template + if upload_size_limit_mb is not None: + self.upload_size_limit_mb = upload_size_limit_mb + if s3_config is not None: + self.s3_config = s3_config + + @property + def storage_type(self): + """Gets the storage_type of this Apiv1WorkspaceStorageSetting. # noqa: E501 + + + :return: The storage_type of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :rtype: Apiv1WorkspaceStorageSettingStorageType + """ + return self._storage_type + + @storage_type.setter + def storage_type(self, storage_type): + """Sets the storage_type of this Apiv1WorkspaceStorageSetting. + + + :param storage_type: The storage_type of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :type: Apiv1WorkspaceStorageSettingStorageType + """ + + self._storage_type = storage_type + + @property + def filepath_template(self): + """Gets the filepath_template of this Apiv1WorkspaceStorageSetting. # noqa: E501 + + + :return: The filepath_template of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :rtype: str + """ + return self._filepath_template + + @filepath_template.setter + def filepath_template(self, filepath_template): + """Sets the filepath_template of this Apiv1WorkspaceStorageSetting. + + + :param filepath_template: The filepath_template of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :type: str + """ + + self._filepath_template = filepath_template + + @property + def upload_size_limit_mb(self): + """Gets the upload_size_limit_mb of this Apiv1WorkspaceStorageSetting. # noqa: E501 + + The max upload size in megabytes. # noqa: E501 + + :return: The upload_size_limit_mb of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :rtype: str + """ + return self._upload_size_limit_mb + + @upload_size_limit_mb.setter + def upload_size_limit_mb(self, upload_size_limit_mb): + """Sets the upload_size_limit_mb of this Apiv1WorkspaceStorageSetting. + + The max upload size in megabytes. # noqa: E501 + + :param upload_size_limit_mb: The upload_size_limit_mb of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :type: str + """ + + self._upload_size_limit_mb = upload_size_limit_mb + + @property + def s3_config(self): + """Gets the s3_config of this Apiv1WorkspaceStorageSetting. # noqa: E501 + + + :return: The s3_config of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :rtype: Apiv1WorkspaceStorageSettingS3Config + """ + return self._s3_config + + @s3_config.setter + def s3_config(self, s3_config): + """Sets the s3_config of this Apiv1WorkspaceStorageSetting. + + + :param s3_config: The s3_config of this Apiv1WorkspaceStorageSetting. # noqa: E501 + :type: Apiv1WorkspaceStorageSettingS3Config + """ + + self._s3_config = s3_config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceStorageSetting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceStorageSetting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_storage_setting_s3_config.py b/memos/models/apiv1_workspace_storage_setting_s3_config.py new file mode 100644 index 0000000..a788634 --- /dev/null +++ b/memos/models/apiv1_workspace_storage_setting_s3_config.py @@ -0,0 +1,214 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceStorageSettingS3Config(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_key_id': 'str', + 'access_key_secret': 'str', + 'endpoint': 'str', + 'region': 'str', + 'bucket': 'str' + } + + attribute_map = { + 'access_key_id': 'accessKeyId', + 'access_key_secret': 'accessKeySecret', + 'endpoint': 'endpoint', + 'region': 'region', + 'bucket': 'bucket' + } + + def __init__(self, access_key_id=None, access_key_secret=None, endpoint=None, region=None, bucket=None): # noqa: E501 + """Apiv1WorkspaceStorageSettingS3Config - a model defined in Swagger""" # noqa: E501 + self._access_key_id = None + self._access_key_secret = None + self._endpoint = None + self._region = None + self._bucket = None + self.discriminator = None + if access_key_id is not None: + self.access_key_id = access_key_id + if access_key_secret is not None: + self.access_key_secret = access_key_secret + if endpoint is not None: + self.endpoint = endpoint + if region is not None: + self.region = region + if bucket is not None: + self.bucket = bucket + + @property + def access_key_id(self): + """Gets the access_key_id of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + + + :return: The access_key_id of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :rtype: str + """ + return self._access_key_id + + @access_key_id.setter + def access_key_id(self, access_key_id): + """Sets the access_key_id of this Apiv1WorkspaceStorageSettingS3Config. + + + :param access_key_id: The access_key_id of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :type: str + """ + + self._access_key_id = access_key_id + + @property + def access_key_secret(self): + """Gets the access_key_secret of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + + + :return: The access_key_secret of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :rtype: str + """ + return self._access_key_secret + + @access_key_secret.setter + def access_key_secret(self, access_key_secret): + """Sets the access_key_secret of this Apiv1WorkspaceStorageSettingS3Config. + + + :param access_key_secret: The access_key_secret of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :type: str + """ + + self._access_key_secret = access_key_secret + + @property + def endpoint(self): + """Gets the endpoint of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + + + :return: The endpoint of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """Sets the endpoint of this Apiv1WorkspaceStorageSettingS3Config. + + + :param endpoint: The endpoint of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :type: str + """ + + self._endpoint = endpoint + + @property + def region(self): + """Gets the region of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + + + :return: The region of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this Apiv1WorkspaceStorageSettingS3Config. + + + :param region: The region of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :type: str + """ + + self._region = region + + @property + def bucket(self): + """Gets the bucket of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + + + :return: The bucket of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :rtype: str + """ + return self._bucket + + @bucket.setter + def bucket(self, bucket): + """Sets the bucket of this Apiv1WorkspaceStorageSettingS3Config. + + + :param bucket: The bucket of this Apiv1WorkspaceStorageSettingS3Config. # noqa: E501 + :type: str + """ + + self._bucket = bucket + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceStorageSettingS3Config, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceStorageSettingS3Config): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/apiv1_workspace_storage_setting_storage_type.py b/memos/models/apiv1_workspace_storage_setting_storage_type.py new file mode 100644 index 0000000..4704c7f --- /dev/null +++ b/memos/models/apiv1_workspace_storage_setting_storage_type.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class Apiv1WorkspaceStorageSettingStorageType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "STORAGE_TYPE_UNSPECIFIED" + DATABASE = "STORAGE_TYPE_DATABASE" + LOCAL = "STORAGE_TYPE_LOCAL" + S3 = "STORAGE_TYPE_S3" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """Apiv1WorkspaceStorageSettingStorageType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Apiv1WorkspaceStorageSettingStorageType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Apiv1WorkspaceStorageSettingStorageType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/googlerpc_status.py b/memos/models/googlerpc_status.py index b23ceb7..ea0db1f 100644 --- a/memos/models/googlerpc_status.py +++ b/memos/models/googlerpc_status.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/models/memo_service_set_memo_relations_body.py b/memos/models/memo_service_set_memo_relations_body.py index 7227b3c..e7d7337 100644 --- a/memos/models/memo_service_set_memo_relations_body.py +++ b/memos/models/memo_service_set_memo_relations_body.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -28,7 +28,7 @@ class MemoServiceSetMemoRelationsBody(object): and the value is json key in definition. """ swagger_types = { - 'relations': 'list[V2MemoRelation]' + 'relations': 'list[V1MemoRelation]' } attribute_map = { @@ -48,7 +48,7 @@ class MemoServiceSetMemoRelationsBody(object): :return: The relations of this MemoServiceSetMemoRelationsBody. # noqa: E501 - :rtype: list[V2MemoRelation] + :rtype: list[V1MemoRelation] """ return self._relations @@ -58,7 +58,7 @@ class MemoServiceSetMemoRelationsBody(object): :param relations: The relations of this MemoServiceSetMemoRelationsBody. # noqa: E501 - :type: list[V2MemoRelation] + :type: list[V1MemoRelation] """ self._relations = relations diff --git a/memos/models/memo_service_set_memo_resources_body.py b/memos/models/memo_service_set_memo_resources_body.py index f6c5d95..f80c3a5 100644 --- a/memos/models/memo_service_set_memo_resources_body.py +++ b/memos/models/memo_service_set_memo_resources_body.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -28,7 +28,7 @@ class MemoServiceSetMemoResourcesBody(object): and the value is json key in definition. """ swagger_types = { - 'resources': 'list[V2Resource]' + 'resources': 'list[V1Resource]' } attribute_map = { @@ -48,7 +48,7 @@ class MemoServiceSetMemoResourcesBody(object): :return: The resources of this MemoServiceSetMemoResourcesBody. # noqa: E501 - :rtype: list[V2Resource] + :rtype: list[V1Resource] """ return self._resources @@ -58,7 +58,7 @@ class MemoServiceSetMemoResourcesBody(object): :param resources: The resources of this MemoServiceSetMemoResourcesBody. # noqa: E501 - :type: list[V2Resource] + :type: list[V1Resource] """ self._resources = resources diff --git a/memos/models/memo_service_upsert_memo_reaction_body.py b/memos/models/memo_service_upsert_memo_reaction_body.py new file mode 100644 index 0000000..64c9e01 --- /dev/null +++ b/memos/models/memo_service_upsert_memo_reaction_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class MemoServiceUpsertMemoReactionBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reaction': 'V1Reaction' + } + + attribute_map = { + 'reaction': 'reaction' + } + + def __init__(self, reaction=None): # noqa: E501 + """MemoServiceUpsertMemoReactionBody - a model defined in Swagger""" # noqa: E501 + self._reaction = None + self.discriminator = None + if reaction is not None: + self.reaction = reaction + + @property + def reaction(self): + """Gets the reaction of this MemoServiceUpsertMemoReactionBody. # noqa: E501 + + + :return: The reaction of this MemoServiceUpsertMemoReactionBody. # noqa: E501 + :rtype: V1Reaction + """ + return self._reaction + + @reaction.setter + def reaction(self, reaction): + """Sets the reaction of this MemoServiceUpsertMemoReactionBody. + + + :param reaction: The reaction of this MemoServiceUpsertMemoReactionBody. # noqa: E501 + :type: V1Reaction + """ + + self._reaction = reaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(MemoServiceUpsertMemoReactionBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, MemoServiceUpsertMemoReactionBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/protobuf_any.py b/memos/models/protobuf_any.py index 95219c9..07a7448 100644 --- a/memos/models/protobuf_any.py +++ b/memos/models/protobuf_any.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/models/setting_is_the_setting_to_update_.py b/memos/models/setting_is_the_setting_to_update_.py index 1a1d5ea..d04d202 100644 --- a/memos/models/setting_is_the_setting_to_update_.py +++ b/memos/models/setting_is_the_setting_to_update_.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -28,19 +28,29 @@ class SettingIsTheSettingToUpdate_(object): and the value is json key in definition. """ swagger_types = { - 'general_setting': 'Apiv2WorkspaceGeneralSetting' + 'general_setting': 'Apiv1WorkspaceGeneralSetting', + 'storage_setting': 'Apiv1WorkspaceStorageSetting', + 'memo_related_setting': 'Apiv1WorkspaceMemoRelatedSetting' } attribute_map = { - 'general_setting': 'generalSetting' + 'general_setting': 'generalSetting', + 'storage_setting': 'storageSetting', + 'memo_related_setting': 'memoRelatedSetting' } - def __init__(self, general_setting=None): # noqa: E501 + def __init__(self, general_setting=None, storage_setting=None, memo_related_setting=None): # noqa: E501 """SettingIsTheSettingToUpdate_ - a model defined in Swagger""" # noqa: E501 self._general_setting = None + self._storage_setting = None + self._memo_related_setting = None self.discriminator = None if general_setting is not None: self.general_setting = general_setting + if storage_setting is not None: + self.storage_setting = storage_setting + if memo_related_setting is not None: + self.memo_related_setting = memo_related_setting @property def general_setting(self): @@ -48,7 +58,7 @@ class SettingIsTheSettingToUpdate_(object): :return: The general_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 - :rtype: Apiv2WorkspaceGeneralSetting + :rtype: Apiv1WorkspaceGeneralSetting """ return self._general_setting @@ -58,11 +68,53 @@ class SettingIsTheSettingToUpdate_(object): :param general_setting: The general_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 - :type: Apiv2WorkspaceGeneralSetting + :type: Apiv1WorkspaceGeneralSetting """ self._general_setting = general_setting + @property + def storage_setting(self): + """Gets the storage_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + + + :return: The storage_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + :rtype: Apiv1WorkspaceStorageSetting + """ + return self._storage_setting + + @storage_setting.setter + def storage_setting(self, storage_setting): + """Sets the storage_setting of this SettingIsTheSettingToUpdate_. + + + :param storage_setting: The storage_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + :type: Apiv1WorkspaceStorageSetting + """ + + self._storage_setting = storage_setting + + @property + def memo_related_setting(self): + """Gets the memo_related_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + + + :return: The memo_related_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + :rtype: Apiv1WorkspaceMemoRelatedSetting + """ + return self._memo_related_setting + + @memo_related_setting.setter + def memo_related_setting(self, memo_related_setting): + """Sets the memo_related_setting of this SettingIsTheSettingToUpdate_. + + + :param memo_related_setting: The memo_related_setting of this SettingIsTheSettingToUpdate_. # noqa: E501 + :type: Apiv1WorkspaceMemoRelatedSetting + """ + + self._memo_related_setting = memo_related_setting + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/memos/models/table_node_row.py b/memos/models/table_node_row.py new file mode 100644 index 0000000..ed16071 --- /dev/null +++ b/memos/models/table_node_row.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TableNodeRow(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'cells': 'list[str]' + } + + attribute_map = { + 'cells': 'cells' + } + + def __init__(self, cells=None): # noqa: E501 + """TableNodeRow - a model defined in Swagger""" # noqa: E501 + self._cells = None + self.discriminator = None + if cells is not None: + self.cells = cells + + @property + def cells(self): + """Gets the cells of this TableNodeRow. # noqa: E501 + + + :return: The cells of this TableNodeRow. # noqa: E501 + :rtype: list[str] + """ + return self._cells + + @cells.setter + def cells(self, cells): + """Sets the cells of this TableNodeRow. + + + :param cells: The cells of this TableNodeRow. # noqa: E501 + :type: list[str] + """ + + self._cells = cells + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TableNodeRow, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TableNodeRow): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/the_identity_provider_to_update_.py b/memos/models/the_identity_provider_to_update_.py new file mode 100644 index 0000000..350536e --- /dev/null +++ b/memos/models/the_identity_provider_to_update_.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class TheIdentityProviderToUpdate_(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'Apiv1IdentityProviderType', + 'title': 'str', + 'identifier_filter': 'str', + 'config': 'Apiv1IdentityProviderConfig' + } + + attribute_map = { + 'type': 'type', + 'title': 'title', + 'identifier_filter': 'identifierFilter', + 'config': 'config' + } + + def __init__(self, type=None, title=None, identifier_filter=None, config=None): # noqa: E501 + """TheIdentityProviderToUpdate_ - a model defined in Swagger""" # noqa: E501 + self._type = None + self._title = None + self._identifier_filter = None + self._config = None + self.discriminator = None + if type is not None: + self.type = type + if title is not None: + self.title = title + if identifier_filter is not None: + self.identifier_filter = identifier_filter + if config is not None: + self.config = config + + @property + def type(self): + """Gets the type of this TheIdentityProviderToUpdate_. # noqa: E501 + + + :return: The type of this TheIdentityProviderToUpdate_. # noqa: E501 + :rtype: Apiv1IdentityProviderType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TheIdentityProviderToUpdate_. + + + :param type: The type of this TheIdentityProviderToUpdate_. # noqa: E501 + :type: Apiv1IdentityProviderType + """ + + self._type = type + + @property + def title(self): + """Gets the title of this TheIdentityProviderToUpdate_. # noqa: E501 + + + :return: The title of this TheIdentityProviderToUpdate_. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this TheIdentityProviderToUpdate_. + + + :param title: The title of this TheIdentityProviderToUpdate_. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def identifier_filter(self): + """Gets the identifier_filter of this TheIdentityProviderToUpdate_. # noqa: E501 + + + :return: The identifier_filter of this TheIdentityProviderToUpdate_. # noqa: E501 + :rtype: str + """ + return self._identifier_filter + + @identifier_filter.setter + def identifier_filter(self, identifier_filter): + """Sets the identifier_filter of this TheIdentityProviderToUpdate_. + + + :param identifier_filter: The identifier_filter of this TheIdentityProviderToUpdate_. # noqa: E501 + :type: str + """ + + self._identifier_filter = identifier_filter + + @property + def config(self): + """Gets the config of this TheIdentityProviderToUpdate_. # noqa: E501 + + + :return: The config of this TheIdentityProviderToUpdate_. # noqa: E501 + :rtype: Apiv1IdentityProviderConfig + """ + return self._config + + @config.setter + def config(self, config): + """Sets the config of this TheIdentityProviderToUpdate_. + + + :param config: The config of this TheIdentityProviderToUpdate_. # noqa: E501 + :type: Apiv1IdentityProviderConfig + """ + + self._config = config + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TheIdentityProviderToUpdate_, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TheIdentityProviderToUpdate_): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/user_role.py b/memos/models/user_role.py index 85b092d..49cc04a 100644 --- a/memos/models/user_role.py +++ b/memos/models/user_role.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/models/user_service_create_user_access_token_body.py b/memos/models/user_service_create_user_access_token_body.py index 1dffca1..d2dbae9 100644 --- a/memos/models/user_service_create_user_access_token_body.py +++ b/memos/models/user_service_create_user_access_token_body.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/memos/models/v1_activity.py b/memos/models/v1_activity.py new file mode 100644 index 0000000..fba9171 --- /dev/null +++ b/memos/models/v1_activity.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Activity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'creator_id': 'int', + 'type': 'str', + 'level': 'str', + 'create_time': 'datetime', + 'payload': 'Apiv1ActivityPayload' + } + + attribute_map = { + 'id': 'id', + 'creator_id': 'creatorId', + 'type': 'type', + 'level': 'level', + 'create_time': 'createTime', + 'payload': 'payload' + } + + def __init__(self, id=None, creator_id=None, type=None, level=None, create_time=None, payload=None): # noqa: E501 + """V1Activity - a model defined in Swagger""" # noqa: E501 + self._id = None + self._creator_id = None + self._type = None + self._level = None + self._create_time = None + self._payload = None + self.discriminator = None + if id is not None: + self.id = id + if creator_id is not None: + self.creator_id = creator_id + if type is not None: + self.type = type + if level is not None: + self.level = level + if create_time is not None: + self.create_time = create_time + if payload is not None: + self.payload = payload + + @property + def id(self): + """Gets the id of this V1Activity. # noqa: E501 + + The system-generated unique identifier for the activity. # noqa: E501 + + :return: The id of this V1Activity. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1Activity. + + The system-generated unique identifier for the activity. # noqa: E501 + + :param id: The id of this V1Activity. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def creator_id(self): + """Gets the creator_id of this V1Activity. # noqa: E501 + + The system-generated unique identifier for the user who created the activity. # noqa: E501 + + :return: The creator_id of this V1Activity. # noqa: E501 + :rtype: int + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this V1Activity. + + The system-generated unique identifier for the user who created the activity. # noqa: E501 + + :param creator_id: The creator_id of this V1Activity. # noqa: E501 + :type: int + """ + + self._creator_id = creator_id + + @property + def type(self): + """Gets the type of this V1Activity. # noqa: E501 + + The type of the activity. # noqa: E501 + + :return: The type of this V1Activity. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1Activity. + + The type of the activity. # noqa: E501 + + :param type: The type of this V1Activity. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def level(self): + """Gets the level of this V1Activity. # noqa: E501 + + The level of the activity. # noqa: E501 + + :return: The level of this V1Activity. # noqa: E501 + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this V1Activity. + + The level of the activity. # noqa: E501 + + :param level: The level of this V1Activity. # noqa: E501 + :type: str + """ + + self._level = level + + @property + def create_time(self): + """Gets the create_time of this V1Activity. # noqa: E501 + + The create time of the activity. # noqa: E501 + + :return: The create_time of this V1Activity. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1Activity. + + The create time of the activity. # noqa: E501 + + :param create_time: The create_time of this V1Activity. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def payload(self): + """Gets the payload of this V1Activity. # noqa: E501 + + + :return: The payload of this V1Activity. # noqa: E501 + :rtype: Apiv1ActivityPayload + """ + return self._payload + + @payload.setter + def payload(self, payload): + """Sets the payload of this V1Activity. + + + :param payload: The payload of this V1Activity. # noqa: E501 + :type: Apiv1ActivityPayload + """ + + self._payload = payload + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Activity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Activity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_auto_link_node.py b/memos/models/v1_auto_link_node.py new file mode 100644 index 0000000..8c053d1 --- /dev/null +++ b/memos/models/v1_auto_link_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1AutoLinkNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'url': 'str', + 'is_raw_text': 'bool' + } + + attribute_map = { + 'url': 'url', + 'is_raw_text': 'isRawText' + } + + def __init__(self, url=None, is_raw_text=None): # noqa: E501 + """V1AutoLinkNode - a model defined in Swagger""" # noqa: E501 + self._url = None + self._is_raw_text = None + self.discriminator = None + if url is not None: + self.url = url + if is_raw_text is not None: + self.is_raw_text = is_raw_text + + @property + def url(self): + """Gets the url of this V1AutoLinkNode. # noqa: E501 + + + :return: The url of this V1AutoLinkNode. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V1AutoLinkNode. + + + :param url: The url of this V1AutoLinkNode. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def is_raw_text(self): + """Gets the is_raw_text of this V1AutoLinkNode. # noqa: E501 + + + :return: The is_raw_text of this V1AutoLinkNode. # noqa: E501 + :rtype: bool + """ + return self._is_raw_text + + @is_raw_text.setter + def is_raw_text(self, is_raw_text): + """Sets the is_raw_text of this V1AutoLinkNode. + + + :param is_raw_text: The is_raw_text of this V1AutoLinkNode. # noqa: E501 + :type: bool + """ + + self._is_raw_text = is_raw_text + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1AutoLinkNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1AutoLinkNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_batch_upsert_tag_request.py b/memos/models/v1_batch_upsert_tag_request.py new file mode 100644 index 0000000..a82ac97 --- /dev/null +++ b/memos/models/v1_batch_upsert_tag_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1BatchUpsertTagRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'requests': 'list[V1UpsertTagRequest]' + } + + attribute_map = { + 'requests': 'requests' + } + + def __init__(self, requests=None): # noqa: E501 + """V1BatchUpsertTagRequest - a model defined in Swagger""" # noqa: E501 + self._requests = None + self.discriminator = None + if requests is not None: + self.requests = requests + + @property + def requests(self): + """Gets the requests of this V1BatchUpsertTagRequest. # noqa: E501 + + + :return: The requests of this V1BatchUpsertTagRequest. # noqa: E501 + :rtype: list[V1UpsertTagRequest] + """ + return self._requests + + @requests.setter + def requests(self, requests): + """Sets the requests of this V1BatchUpsertTagRequest. + + + :param requests: The requests of this V1BatchUpsertTagRequest. # noqa: E501 + :type: list[V1UpsertTagRequest] + """ + + self._requests = requests + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1BatchUpsertTagRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1BatchUpsertTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_blockquote_node.py b/memos/models/v1_blockquote_node.py new file mode 100644 index 0000000..b347de8 --- /dev/null +++ b/memos/models/v1_blockquote_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1BlockquoteNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'children': 'list[V1Node]' + } + + attribute_map = { + 'children': 'children' + } + + def __init__(self, children=None): # noqa: E501 + """V1BlockquoteNode - a model defined in Swagger""" # noqa: E501 + self._children = None + self.discriminator = None + if children is not None: + self.children = children + + @property + def children(self): + """Gets the children of this V1BlockquoteNode. # noqa: E501 + + + :return: The children of this V1BlockquoteNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1BlockquoteNode. + + + :param children: The children of this V1BlockquoteNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1BlockquoteNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1BlockquoteNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_bold_italic_node.py b/memos/models/v1_bold_italic_node.py new file mode 100644 index 0000000..3e52fed --- /dev/null +++ b/memos/models/v1_bold_italic_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1BoldItalicNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str', + 'content': 'str' + } + + attribute_map = { + 'symbol': 'symbol', + 'content': 'content' + } + + def __init__(self, symbol=None, content=None): # noqa: E501 + """V1BoldItalicNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self._content = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + if content is not None: + self.content = content + + @property + def symbol(self): + """Gets the symbol of this V1BoldItalicNode. # noqa: E501 + + + :return: The symbol of this V1BoldItalicNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1BoldItalicNode. + + + :param symbol: The symbol of this V1BoldItalicNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + @property + def content(self): + """Gets the content of this V1BoldItalicNode. # noqa: E501 + + + :return: The content of this V1BoldItalicNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1BoldItalicNode. + + + :param content: The content of this V1BoldItalicNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1BoldItalicNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1BoldItalicNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_bold_node.py b/memos/models/v1_bold_node.py new file mode 100644 index 0000000..c1f9c96 --- /dev/null +++ b/memos/models/v1_bold_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1BoldNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str', + 'children': 'list[V1Node]' + } + + attribute_map = { + 'symbol': 'symbol', + 'children': 'children' + } + + def __init__(self, symbol=None, children=None): # noqa: E501 + """V1BoldNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self._children = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + if children is not None: + self.children = children + + @property + def symbol(self): + """Gets the symbol of this V1BoldNode. # noqa: E501 + + + :return: The symbol of this V1BoldNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1BoldNode. + + + :param symbol: The symbol of this V1BoldNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + @property + def children(self): + """Gets the children of this V1BoldNode. # noqa: E501 + + + :return: The children of this V1BoldNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1BoldNode. + + + :param children: The children of this V1BoldNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1BoldNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1BoldNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_code_block_node.py b/memos/models/v1_code_block_node.py new file mode 100644 index 0000000..79be8eb --- /dev/null +++ b/memos/models/v1_code_block_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1CodeBlockNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'language': 'str', + 'content': 'str' + } + + attribute_map = { + 'language': 'language', + 'content': 'content' + } + + def __init__(self, language=None, content=None): # noqa: E501 + """V1CodeBlockNode - a model defined in Swagger""" # noqa: E501 + self._language = None + self._content = None + self.discriminator = None + if language is not None: + self.language = language + if content is not None: + self.content = content + + @property + def language(self): + """Gets the language of this V1CodeBlockNode. # noqa: E501 + + + :return: The language of this V1CodeBlockNode. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this V1CodeBlockNode. + + + :param language: The language of this V1CodeBlockNode. # noqa: E501 + :type: str + """ + + self._language = language + + @property + def content(self): + """Gets the content of this V1CodeBlockNode. # noqa: E501 + + + :return: The content of this V1CodeBlockNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1CodeBlockNode. + + + :param content: The content of this V1CodeBlockNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1CodeBlockNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CodeBlockNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_code_node.py b/memos/models/v1_code_node.py new file mode 100644 index 0000000..25fdc91 --- /dev/null +++ b/memos/models/v1_code_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1CodeNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1CodeNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1CodeNode. # noqa: E501 + + + :return: The content of this V1CodeNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1CodeNode. + + + :param content: The content of this V1CodeNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1CodeNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CodeNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_create_memo_request.py b/memos/models/v1_create_memo_request.py new file mode 100644 index 0000000..0fa5282 --- /dev/null +++ b/memos/models/v1_create_memo_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1CreateMemoRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str', + 'visibility': 'V1Visibility' + } + + attribute_map = { + 'content': 'content', + 'visibility': 'visibility' + } + + def __init__(self, content=None, visibility=None): # noqa: E501 + """V1CreateMemoRequest - a model defined in Swagger""" # noqa: E501 + self._content = None + self._visibility = None + self.discriminator = None + if content is not None: + self.content = content + if visibility is not None: + self.visibility = visibility + + @property + def content(self): + """Gets the content of this V1CreateMemoRequest. # noqa: E501 + + + :return: The content of this V1CreateMemoRequest. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1CreateMemoRequest. + + + :param content: The content of this V1CreateMemoRequest. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def visibility(self): + """Gets the visibility of this V1CreateMemoRequest. # noqa: E501 + + + :return: The visibility of this V1CreateMemoRequest. # noqa: E501 + :rtype: V1Visibility + """ + return self._visibility + + @visibility.setter + def visibility(self, visibility): + """Sets the visibility of this V1CreateMemoRequest. + + + :param visibility: The visibility of this V1CreateMemoRequest. # noqa: E501 + :type: V1Visibility + """ + + self._visibility = visibility + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1CreateMemoRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CreateMemoRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_create_webhook_request.py b/memos/models/v1_create_webhook_request.py new file mode 100644 index 0000000..82161ed --- /dev/null +++ b/memos/models/v1_create_webhook_request.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1CreateWebhookRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'url': 'str' + } + + attribute_map = { + 'name': 'name', + 'url': 'url' + } + + def __init__(self, name=None, url=None): # noqa: E501 + """V1CreateWebhookRequest - a model defined in Swagger""" # noqa: E501 + self._name = None + self._url = None + self.discriminator = None + if name is not None: + self.name = name + if url is not None: + self.url = url + + @property + def name(self): + """Gets the name of this V1CreateWebhookRequest. # noqa: E501 + + + :return: The name of this V1CreateWebhookRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1CreateWebhookRequest. + + + :param name: The name of this V1CreateWebhookRequest. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this V1CreateWebhookRequest. # noqa: E501 + + + :return: The url of this V1CreateWebhookRequest. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V1CreateWebhookRequest. + + + :param url: The url of this V1CreateWebhookRequest. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1CreateWebhookRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1CreateWebhookRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_embedded_content_node.py b/memos/models/v1_embedded_content_node.py new file mode 100644 index 0000000..bab2078 --- /dev/null +++ b/memos/models/v1_embedded_content_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1EmbeddedContentNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_name': 'str', + 'params': 'str' + } + + attribute_map = { + 'resource_name': 'resourceName', + 'params': 'params' + } + + def __init__(self, resource_name=None, params=None): # noqa: E501 + """V1EmbeddedContentNode - a model defined in Swagger""" # noqa: E501 + self._resource_name = None + self._params = None + self.discriminator = None + if resource_name is not None: + self.resource_name = resource_name + if params is not None: + self.params = params + + @property + def resource_name(self): + """Gets the resource_name of this V1EmbeddedContentNode. # noqa: E501 + + + :return: The resource_name of this V1EmbeddedContentNode. # noqa: E501 + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this V1EmbeddedContentNode. + + + :param resource_name: The resource_name of this V1EmbeddedContentNode. # noqa: E501 + :type: str + """ + + self._resource_name = resource_name + + @property + def params(self): + """Gets the params of this V1EmbeddedContentNode. # noqa: E501 + + + :return: The params of this V1EmbeddedContentNode. # noqa: E501 + :rtype: str + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this V1EmbeddedContentNode. + + + :param params: The params of this V1EmbeddedContentNode. # noqa: E501 + :type: str + """ + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1EmbeddedContentNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1EmbeddedContentNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_escaping_character_node.py b/memos/models/v1_escaping_character_node.py new file mode 100644 index 0000000..6f289ac --- /dev/null +++ b/memos/models/v1_escaping_character_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1EscapingCharacterNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str' + } + + attribute_map = { + 'symbol': 'symbol' + } + + def __init__(self, symbol=None): # noqa: E501 + """V1EscapingCharacterNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + + @property + def symbol(self): + """Gets the symbol of this V1EscapingCharacterNode. # noqa: E501 + + + :return: The symbol of this V1EscapingCharacterNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1EscapingCharacterNode. + + + :param symbol: The symbol of this V1EscapingCharacterNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1EscapingCharacterNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1EscapingCharacterNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_export_memos_request.py b/memos/models/v1_export_memos_request.py new file mode 100644 index 0000000..e65dd73 --- /dev/null +++ b/memos/models/v1_export_memos_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ExportMemosRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'filter': 'str' + } + + attribute_map = { + 'filter': 'filter' + } + + def __init__(self, filter=None): # noqa: E501 + """V1ExportMemosRequest - a model defined in Swagger""" # noqa: E501 + self._filter = None + self.discriminator = None + if filter is not None: + self.filter = filter + + @property + def filter(self): + """Gets the filter of this V1ExportMemosRequest. # noqa: E501 + + + :return: The filter of this V1ExportMemosRequest. # noqa: E501 + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this V1ExportMemosRequest. + + + :param filter: The filter of this V1ExportMemosRequest. # noqa: E501 + :type: str + """ + + self._filter = filter + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ExportMemosRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ExportMemosRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_export_memos_response.py b/memos/models/v1_export_memos_response.py new file mode 100644 index 0000000..e095736 --- /dev/null +++ b/memos/models/v1_export_memos_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ExportMemosResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1ExportMemosResponse - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1ExportMemosResponse. # noqa: E501 + + + :return: The content of this V1ExportMemosResponse. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1ExportMemosResponse. + + + :param content: The content of this V1ExportMemosResponse. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ExportMemosResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ExportMemosResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_get_tag_suggestions_response.py b/memos/models/v1_get_tag_suggestions_response.py new file mode 100644 index 0000000..aeb17e2 --- /dev/null +++ b/memos/models/v1_get_tag_suggestions_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1GetTagSuggestionsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'list[str]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): # noqa: E501 + """V1GetTagSuggestionsResponse - a model defined in Swagger""" # noqa: E501 + self._tags = None + self.discriminator = None + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this V1GetTagSuggestionsResponse. # noqa: E501 + + + :return: The tags of this V1GetTagSuggestionsResponse. # noqa: E501 + :rtype: list[str] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this V1GetTagSuggestionsResponse. + + + :param tags: The tags of this V1GetTagSuggestionsResponse. # noqa: E501 + :type: list[str] + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1GetTagSuggestionsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1GetTagSuggestionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_get_user_memos_stats_response.py b/memos/models/v1_get_user_memos_stats_response.py new file mode 100644 index 0000000..0ed8e27 --- /dev/null +++ b/memos/models/v1_get_user_memos_stats_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1GetUserMemosStatsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stats': 'dict(str, int)' + } + + attribute_map = { + 'stats': 'stats' + } + + def __init__(self, stats=None): # noqa: E501 + """V1GetUserMemosStatsResponse - a model defined in Swagger""" # noqa: E501 + self._stats = None + self.discriminator = None + if stats is not None: + self.stats = stats + + @property + def stats(self): + """Gets the stats of this V1GetUserMemosStatsResponse. # noqa: E501 + + stats is the stats of memo creating/updating activities. key is the year-month-day string. e.g. \"2020-01-01\". # noqa: E501 + + :return: The stats of this V1GetUserMemosStatsResponse. # noqa: E501 + :rtype: dict(str, int) + """ + return self._stats + + @stats.setter + def stats(self, stats): + """Sets the stats of this V1GetUserMemosStatsResponse. + + stats is the stats of memo creating/updating activities. key is the year-month-day string. e.g. \"2020-01-01\". # noqa: E501 + + :param stats: The stats of this V1GetUserMemosStatsResponse. # noqa: E501 + :type: dict(str, int) + """ + + self._stats = stats + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1GetUserMemosStatsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1GetUserMemosStatsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_heading_node.py b/memos/models/v1_heading_node.py new file mode 100644 index 0000000..dbf1af0 --- /dev/null +++ b/memos/models/v1_heading_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1HeadingNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'level': 'int', + 'children': 'list[V1Node]' + } + + attribute_map = { + 'level': 'level', + 'children': 'children' + } + + def __init__(self, level=None, children=None): # noqa: E501 + """V1HeadingNode - a model defined in Swagger""" # noqa: E501 + self._level = None + self._children = None + self.discriminator = None + if level is not None: + self.level = level + if children is not None: + self.children = children + + @property + def level(self): + """Gets the level of this V1HeadingNode. # noqa: E501 + + + :return: The level of this V1HeadingNode. # noqa: E501 + :rtype: int + """ + return self._level + + @level.setter + def level(self, level): + """Sets the level of this V1HeadingNode. + + + :param level: The level of this V1HeadingNode. # noqa: E501 + :type: int + """ + + self._level = level + + @property + def children(self): + """Gets the children of this V1HeadingNode. # noqa: E501 + + + :return: The children of this V1HeadingNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1HeadingNode. + + + :param children: The children of this V1HeadingNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1HeadingNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1HeadingNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_highlight_node.py b/memos/models/v1_highlight_node.py new file mode 100644 index 0000000..705583f --- /dev/null +++ b/memos/models/v1_highlight_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1HighlightNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1HighlightNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1HighlightNode. # noqa: E501 + + + :return: The content of this V1HighlightNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1HighlightNode. + + + :param content: The content of this V1HighlightNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1HighlightNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1HighlightNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_horizontal_rule_node.py b/memos/models/v1_horizontal_rule_node.py new file mode 100644 index 0000000..c8516ff --- /dev/null +++ b/memos/models/v1_horizontal_rule_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1HorizontalRuleNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str' + } + + attribute_map = { + 'symbol': 'symbol' + } + + def __init__(self, symbol=None): # noqa: E501 + """V1HorizontalRuleNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + + @property + def symbol(self): + """Gets the symbol of this V1HorizontalRuleNode. # noqa: E501 + + + :return: The symbol of this V1HorizontalRuleNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1HorizontalRuleNode. + + + :param symbol: The symbol of this V1HorizontalRuleNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1HorizontalRuleNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1HorizontalRuleNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_image_node.py b/memos/models/v1_image_node.py new file mode 100644 index 0000000..2d1c5ee --- /dev/null +++ b/memos/models/v1_image_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ImageNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'alt_text': 'str', + 'url': 'str' + } + + attribute_map = { + 'alt_text': 'altText', + 'url': 'url' + } + + def __init__(self, alt_text=None, url=None): # noqa: E501 + """V1ImageNode - a model defined in Swagger""" # noqa: E501 + self._alt_text = None + self._url = None + self.discriminator = None + if alt_text is not None: + self.alt_text = alt_text + if url is not None: + self.url = url + + @property + def alt_text(self): + """Gets the alt_text of this V1ImageNode. # noqa: E501 + + + :return: The alt_text of this V1ImageNode. # noqa: E501 + :rtype: str + """ + return self._alt_text + + @alt_text.setter + def alt_text(self, alt_text): + """Sets the alt_text of this V1ImageNode. + + + :param alt_text: The alt_text of this V1ImageNode. # noqa: E501 + :type: str + """ + + self._alt_text = alt_text + + @property + def url(self): + """Gets the url of this V1ImageNode. # noqa: E501 + + + :return: The url of this V1ImageNode. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V1ImageNode. + + + :param url: The url of this V1ImageNode. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ImageNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ImageNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_inbox.py b/memos/models/v1_inbox.py new file mode 100644 index 0000000..c52b7d7 --- /dev/null +++ b/memos/models/v1_inbox.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Inbox(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'sender': 'str', + 'receiver': 'str', + 'status': 'V1InboxStatus', + 'create_time': 'datetime', + 'type': 'V1InboxType', + 'activity_id': 'int' + } + + attribute_map = { + 'name': 'name', + 'sender': 'sender', + 'receiver': 'receiver', + 'status': 'status', + 'create_time': 'createTime', + 'type': 'type', + 'activity_id': 'activityId' + } + + def __init__(self, name=None, sender=None, receiver=None, status=None, create_time=None, type=None, activity_id=None): # noqa: E501 + """V1Inbox - a model defined in Swagger""" # noqa: E501 + self._name = None + self._sender = None + self._receiver = None + self._status = None + self._create_time = None + self._type = None + self._activity_id = None + self.discriminator = None + if name is not None: + self.name = name + if sender is not None: + self.sender = sender + if receiver is not None: + self.receiver = receiver + if status is not None: + self.status = status + if create_time is not None: + self.create_time = create_time + if type is not None: + self.type = type + if activity_id is not None: + self.activity_id = activity_id + + @property + def name(self): + """Gets the name of this V1Inbox. # noqa: E501 + + + :return: The name of this V1Inbox. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Inbox. + + + :param name: The name of this V1Inbox. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def sender(self): + """Gets the sender of this V1Inbox. # noqa: E501 + + + :return: The sender of this V1Inbox. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this V1Inbox. + + + :param sender: The sender of this V1Inbox. # noqa: E501 + :type: str + """ + + self._sender = sender + + @property + def receiver(self): + """Gets the receiver of this V1Inbox. # noqa: E501 + + + :return: The receiver of this V1Inbox. # noqa: E501 + :rtype: str + """ + return self._receiver + + @receiver.setter + def receiver(self, receiver): + """Sets the receiver of this V1Inbox. + + + :param receiver: The receiver of this V1Inbox. # noqa: E501 + :type: str + """ + + self._receiver = receiver + + @property + def status(self): + """Gets the status of this V1Inbox. # noqa: E501 + + + :return: The status of this V1Inbox. # noqa: E501 + :rtype: V1InboxStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1Inbox. + + + :param status: The status of this V1Inbox. # noqa: E501 + :type: V1InboxStatus + """ + + self._status = status + + @property + def create_time(self): + """Gets the create_time of this V1Inbox. # noqa: E501 + + + :return: The create_time of this V1Inbox. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1Inbox. + + + :param create_time: The create_time of this V1Inbox. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def type(self): + """Gets the type of this V1Inbox. # noqa: E501 + + + :return: The type of this V1Inbox. # noqa: E501 + :rtype: V1InboxType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1Inbox. + + + :param type: The type of this V1Inbox. # noqa: E501 + :type: V1InboxType + """ + + self._type = type + + @property + def activity_id(self): + """Gets the activity_id of this V1Inbox. # noqa: E501 + + + :return: The activity_id of this V1Inbox. # noqa: E501 + :rtype: int + """ + return self._activity_id + + @activity_id.setter + def activity_id(self, activity_id): + """Sets the activity_id of this V1Inbox. + + + :param activity_id: The activity_id of this V1Inbox. # noqa: E501 + :type: int + """ + + self._activity_id = activity_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Inbox, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Inbox): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_inbox_name_body.py b/memos/models/v1_inbox_name_body.py new file mode 100644 index 0000000..d9ccd56 --- /dev/null +++ b/memos/models/v1_inbox_name_body.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1InboxNameBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sender': 'str', + 'receiver': 'str', + 'status': 'V1InboxStatus', + 'create_time': 'datetime', + 'type': 'V1InboxType', + 'activity_id': 'int' + } + + attribute_map = { + 'sender': 'sender', + 'receiver': 'receiver', + 'status': 'status', + 'create_time': 'createTime', + 'type': 'type', + 'activity_id': 'activityId' + } + + def __init__(self, sender=None, receiver=None, status=None, create_time=None, type=None, activity_id=None): # noqa: E501 + """V1InboxNameBody - a model defined in Swagger""" # noqa: E501 + self._sender = None + self._receiver = None + self._status = None + self._create_time = None + self._type = None + self._activity_id = None + self.discriminator = None + if sender is not None: + self.sender = sender + if receiver is not None: + self.receiver = receiver + if status is not None: + self.status = status + if create_time is not None: + self.create_time = create_time + if type is not None: + self.type = type + if activity_id is not None: + self.activity_id = activity_id + + @property + def sender(self): + """Gets the sender of this V1InboxNameBody. # noqa: E501 + + + :return: The sender of this V1InboxNameBody. # noqa: E501 + :rtype: str + """ + return self._sender + + @sender.setter + def sender(self, sender): + """Sets the sender of this V1InboxNameBody. + + + :param sender: The sender of this V1InboxNameBody. # noqa: E501 + :type: str + """ + + self._sender = sender + + @property + def receiver(self): + """Gets the receiver of this V1InboxNameBody. # noqa: E501 + + + :return: The receiver of this V1InboxNameBody. # noqa: E501 + :rtype: str + """ + return self._receiver + + @receiver.setter + def receiver(self, receiver): + """Sets the receiver of this V1InboxNameBody. + + + :param receiver: The receiver of this V1InboxNameBody. # noqa: E501 + :type: str + """ + + self._receiver = receiver + + @property + def status(self): + """Gets the status of this V1InboxNameBody. # noqa: E501 + + + :return: The status of this V1InboxNameBody. # noqa: E501 + :rtype: V1InboxStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this V1InboxNameBody. + + + :param status: The status of this V1InboxNameBody. # noqa: E501 + :type: V1InboxStatus + """ + + self._status = status + + @property + def create_time(self): + """Gets the create_time of this V1InboxNameBody. # noqa: E501 + + + :return: The create_time of this V1InboxNameBody. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1InboxNameBody. + + + :param create_time: The create_time of this V1InboxNameBody. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def type(self): + """Gets the type of this V1InboxNameBody. # noqa: E501 + + + :return: The type of this V1InboxNameBody. # noqa: E501 + :rtype: V1InboxType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1InboxNameBody. + + + :param type: The type of this V1InboxNameBody. # noqa: E501 + :type: V1InboxType + """ + + self._type = type + + @property + def activity_id(self): + """Gets the activity_id of this V1InboxNameBody. # noqa: E501 + + + :return: The activity_id of this V1InboxNameBody. # noqa: E501 + :rtype: int + """ + return self._activity_id + + @activity_id.setter + def activity_id(self, activity_id): + """Sets the activity_id of this V1InboxNameBody. + + + :param activity_id: The activity_id of this V1InboxNameBody. # noqa: E501 + :type: int + """ + + self._activity_id = activity_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1InboxNameBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1InboxNameBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_inbox_status.py b/memos/models/v1_inbox_status.py new file mode 100644 index 0000000..d58a5cd --- /dev/null +++ b/memos/models/v1_inbox_status.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1InboxStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED" + UNREAD = "UNREAD" + ARCHIVED = "ARCHIVED" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1InboxStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1InboxStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1InboxStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_inbox_type.py b/memos/models/v1_inbox_type.py new file mode 100644 index 0000000..a751fbb --- /dev/null +++ b/memos/models/v1_inbox_type.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1InboxType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + UNSPECIFIED = "TYPE_UNSPECIFIED" + MEMO_COMMENT = "TYPE_MEMO_COMMENT" + VERSION_UPDATE = "TYPE_VERSION_UPDATE" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1InboxType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1InboxType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1InboxType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_italic_node.py b/memos/models/v1_italic_node.py new file mode 100644 index 0000000..4f9f5f5 --- /dev/null +++ b/memos/models/v1_italic_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ItalicNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str', + 'content': 'str' + } + + attribute_map = { + 'symbol': 'symbol', + 'content': 'content' + } + + def __init__(self, symbol=None, content=None): # noqa: E501 + """V1ItalicNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self._content = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + if content is not None: + self.content = content + + @property + def symbol(self): + """Gets the symbol of this V1ItalicNode. # noqa: E501 + + + :return: The symbol of this V1ItalicNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1ItalicNode. + + + :param symbol: The symbol of this V1ItalicNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + @property + def content(self): + """Gets the content of this V1ItalicNode. # noqa: E501 + + + :return: The content of this V1ItalicNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1ItalicNode. + + + :param content: The content of this V1ItalicNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ItalicNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ItalicNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_line_break_node.py b/memos/models/v1_line_break_node.py new file mode 100644 index 0000000..b4bfc12 --- /dev/null +++ b/memos/models/v1_line_break_node.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1LineBreakNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1LineBreakNode - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1LineBreakNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LineBreakNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_link_metadata.py b/memos/models/v1_link_metadata.py new file mode 100644 index 0000000..4b4eada --- /dev/null +++ b/memos/models/v1_link_metadata.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1LinkMetadata(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'title': 'str', + 'description': 'str', + 'image': 'str' + } + + attribute_map = { + 'title': 'title', + 'description': 'description', + 'image': 'image' + } + + def __init__(self, title=None, description=None, image=None): # noqa: E501 + """V1LinkMetadata - a model defined in Swagger""" # noqa: E501 + self._title = None + self._description = None + self._image = None + self.discriminator = None + if title is not None: + self.title = title + if description is not None: + self.description = description + if image is not None: + self.image = image + + @property + def title(self): + """Gets the title of this V1LinkMetadata. # noqa: E501 + + + :return: The title of this V1LinkMetadata. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this V1LinkMetadata. + + + :param title: The title of this V1LinkMetadata. # noqa: E501 + :type: str + """ + + self._title = title + + @property + def description(self): + """Gets the description of this V1LinkMetadata. # noqa: E501 + + + :return: The description of this V1LinkMetadata. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this V1LinkMetadata. + + + :param description: The description of this V1LinkMetadata. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def image(self): + """Gets the image of this V1LinkMetadata. # noqa: E501 + + + :return: The image of this V1LinkMetadata. # noqa: E501 + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """Sets the image of this V1LinkMetadata. + + + :param image: The image of this V1LinkMetadata. # noqa: E501 + :type: str + """ + + self._image = image + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1LinkMetadata, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LinkMetadata): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_link_node.py b/memos/models/v1_link_node.py new file mode 100644 index 0000000..bdde184 --- /dev/null +++ b/memos/models/v1_link_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1LinkNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'text': 'str', + 'url': 'str' + } + + attribute_map = { + 'text': 'text', + 'url': 'url' + } + + def __init__(self, text=None, url=None): # noqa: E501 + """V1LinkNode - a model defined in Swagger""" # noqa: E501 + self._text = None + self._url = None + self.discriminator = None + if text is not None: + self.text = text + if url is not None: + self.url = url + + @property + def text(self): + """Gets the text of this V1LinkNode. # noqa: E501 + + + :return: The text of this V1LinkNode. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this V1LinkNode. + + + :param text: The text of this V1LinkNode. # noqa: E501 + :type: str + """ + + self._text = text + + @property + def url(self): + """Gets the url of this V1LinkNode. # noqa: E501 + + + :return: The url of this V1LinkNode. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V1LinkNode. + + + :param url: The url of this V1LinkNode. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1LinkNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1LinkNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_identity_providers_response.py b/memos/models/v1_list_identity_providers_response.py new file mode 100644 index 0000000..fdba3e6 --- /dev/null +++ b/memos/models/v1_list_identity_providers_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListIdentityProvidersResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'identity_providers': 'list[Apiv1IdentityProvider]' + } + + attribute_map = { + 'identity_providers': 'identityProviders' + } + + def __init__(self, identity_providers=None): # noqa: E501 + """V1ListIdentityProvidersResponse - a model defined in Swagger""" # noqa: E501 + self._identity_providers = None + self.discriminator = None + if identity_providers is not None: + self.identity_providers = identity_providers + + @property + def identity_providers(self): + """Gets the identity_providers of this V1ListIdentityProvidersResponse. # noqa: E501 + + + :return: The identity_providers of this V1ListIdentityProvidersResponse. # noqa: E501 + :rtype: list[Apiv1IdentityProvider] + """ + return self._identity_providers + + @identity_providers.setter + def identity_providers(self, identity_providers): + """Sets the identity_providers of this V1ListIdentityProvidersResponse. + + + :param identity_providers: The identity_providers of this V1ListIdentityProvidersResponse. # noqa: E501 + :type: list[Apiv1IdentityProvider] + """ + + self._identity_providers = identity_providers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListIdentityProvidersResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListIdentityProvidersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_inboxes_response.py b/memos/models/v1_list_inboxes_response.py new file mode 100644 index 0000000..0fd7775 --- /dev/null +++ b/memos/models/v1_list_inboxes_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListInboxesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'inboxes': 'list[V1Inbox]' + } + + attribute_map = { + 'inboxes': 'inboxes' + } + + def __init__(self, inboxes=None): # noqa: E501 + """V1ListInboxesResponse - a model defined in Swagger""" # noqa: E501 + self._inboxes = None + self.discriminator = None + if inboxes is not None: + self.inboxes = inboxes + + @property + def inboxes(self): + """Gets the inboxes of this V1ListInboxesResponse. # noqa: E501 + + + :return: The inboxes of this V1ListInboxesResponse. # noqa: E501 + :rtype: list[V1Inbox] + """ + return self._inboxes + + @inboxes.setter + def inboxes(self, inboxes): + """Sets the inboxes of this V1ListInboxesResponse. + + + :param inboxes: The inboxes of this V1ListInboxesResponse. # noqa: E501 + :type: list[V1Inbox] + """ + + self._inboxes = inboxes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListInboxesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListInboxesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_memo_comments_response.py b/memos/models/v1_list_memo_comments_response.py new file mode 100644 index 0000000..a016a10 --- /dev/null +++ b/memos/models/v1_list_memo_comments_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListMemoCommentsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memos': 'list[V1Memo]' + } + + attribute_map = { + 'memos': 'memos' + } + + def __init__(self, memos=None): # noqa: E501 + """V1ListMemoCommentsResponse - a model defined in Swagger""" # noqa: E501 + self._memos = None + self.discriminator = None + if memos is not None: + self.memos = memos + + @property + def memos(self): + """Gets the memos of this V1ListMemoCommentsResponse. # noqa: E501 + + + :return: The memos of this V1ListMemoCommentsResponse. # noqa: E501 + :rtype: list[V1Memo] + """ + return self._memos + + @memos.setter + def memos(self, memos): + """Sets the memos of this V1ListMemoCommentsResponse. + + + :param memos: The memos of this V1ListMemoCommentsResponse. # noqa: E501 + :type: list[V1Memo] + """ + + self._memos = memos + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListMemoCommentsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMemoCommentsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_memo_reactions_response.py b/memos/models/v1_list_memo_reactions_response.py new file mode 100644 index 0000000..1564206 --- /dev/null +++ b/memos/models/v1_list_memo_reactions_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListMemoReactionsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reactions': 'list[V1Reaction]' + } + + attribute_map = { + 'reactions': 'reactions' + } + + def __init__(self, reactions=None): # noqa: E501 + """V1ListMemoReactionsResponse - a model defined in Swagger""" # noqa: E501 + self._reactions = None + self.discriminator = None + if reactions is not None: + self.reactions = reactions + + @property + def reactions(self): + """Gets the reactions of this V1ListMemoReactionsResponse. # noqa: E501 + + + :return: The reactions of this V1ListMemoReactionsResponse. # noqa: E501 + :rtype: list[V1Reaction] + """ + return self._reactions + + @reactions.setter + def reactions(self, reactions): + """Sets the reactions of this V1ListMemoReactionsResponse. + + + :param reactions: The reactions of this V1ListMemoReactionsResponse. # noqa: E501 + :type: list[V1Reaction] + """ + + self._reactions = reactions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListMemoReactionsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMemoReactionsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_memo_relations_response.py b/memos/models/v1_list_memo_relations_response.py new file mode 100644 index 0000000..cb93b1d --- /dev/null +++ b/memos/models/v1_list_memo_relations_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListMemoRelationsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'relations': 'list[V1MemoRelation]' + } + + attribute_map = { + 'relations': 'relations' + } + + def __init__(self, relations=None): # noqa: E501 + """V1ListMemoRelationsResponse - a model defined in Swagger""" # noqa: E501 + self._relations = None + self.discriminator = None + if relations is not None: + self.relations = relations + + @property + def relations(self): + """Gets the relations of this V1ListMemoRelationsResponse. # noqa: E501 + + + :return: The relations of this V1ListMemoRelationsResponse. # noqa: E501 + :rtype: list[V1MemoRelation] + """ + return self._relations + + @relations.setter + def relations(self, relations): + """Sets the relations of this V1ListMemoRelationsResponse. + + + :param relations: The relations of this V1ListMemoRelationsResponse. # noqa: E501 + :type: list[V1MemoRelation] + """ + + self._relations = relations + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListMemoRelationsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMemoRelationsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_memo_resources_response.py b/memos/models/v1_list_memo_resources_response.py new file mode 100644 index 0000000..b8b356f --- /dev/null +++ b/memos/models/v1_list_memo_resources_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListMemoResourcesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resources': 'list[V1Resource]' + } + + attribute_map = { + 'resources': 'resources' + } + + def __init__(self, resources=None): # noqa: E501 + """V1ListMemoResourcesResponse - a model defined in Swagger""" # noqa: E501 + self._resources = None + self.discriminator = None + if resources is not None: + self.resources = resources + + @property + def resources(self): + """Gets the resources of this V1ListMemoResourcesResponse. # noqa: E501 + + + :return: The resources of this V1ListMemoResourcesResponse. # noqa: E501 + :rtype: list[V1Resource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1ListMemoResourcesResponse. + + + :param resources: The resources of this V1ListMemoResourcesResponse. # noqa: E501 + :type: list[V1Resource] + """ + + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListMemoResourcesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMemoResourcesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_memos_response.py b/memos/models/v1_list_memos_response.py new file mode 100644 index 0000000..749e0d1 --- /dev/null +++ b/memos/models/v1_list_memos_response.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListMemosResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memos': 'list[V1Memo]', + 'next_page_token': 'str' + } + + attribute_map = { + 'memos': 'memos', + 'next_page_token': 'nextPageToken' + } + + def __init__(self, memos=None, next_page_token=None): # noqa: E501 + """V1ListMemosResponse - a model defined in Swagger""" # noqa: E501 + self._memos = None + self._next_page_token = None + self.discriminator = None + if memos is not None: + self.memos = memos + if next_page_token is not None: + self.next_page_token = next_page_token + + @property + def memos(self): + """Gets the memos of this V1ListMemosResponse. # noqa: E501 + + + :return: The memos of this V1ListMemosResponse. # noqa: E501 + :rtype: list[V1Memo] + """ + return self._memos + + @memos.setter + def memos(self, memos): + """Sets the memos of this V1ListMemosResponse. + + + :param memos: The memos of this V1ListMemosResponse. # noqa: E501 + :type: list[V1Memo] + """ + + self._memos = memos + + @property + def next_page_token(self): + """Gets the next_page_token of this V1ListMemosResponse. # noqa: E501 + + A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. # noqa: E501 + + :return: The next_page_token of this V1ListMemosResponse. # noqa: E501 + :rtype: str + """ + return self._next_page_token + + @next_page_token.setter + def next_page_token(self, next_page_token): + """Sets the next_page_token of this V1ListMemosResponse. + + A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. # noqa: E501 + + :param next_page_token: The next_page_token of this V1ListMemosResponse. # noqa: E501 + :type: str + """ + + self._next_page_token = next_page_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListMemosResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListMemosResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_resources_response.py b/memos/models/v1_list_resources_response.py new file mode 100644 index 0000000..d51299c --- /dev/null +++ b/memos/models/v1_list_resources_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListResourcesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resources': 'list[V1Resource]' + } + + attribute_map = { + 'resources': 'resources' + } + + def __init__(self, resources=None): # noqa: E501 + """V1ListResourcesResponse - a model defined in Swagger""" # noqa: E501 + self._resources = None + self.discriminator = None + if resources is not None: + self.resources = resources + + @property + def resources(self): + """Gets the resources of this V1ListResourcesResponse. # noqa: E501 + + + :return: The resources of this V1ListResourcesResponse. # noqa: E501 + :rtype: list[V1Resource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1ListResourcesResponse. + + + :param resources: The resources of this V1ListResourcesResponse. # noqa: E501 + :type: list[V1Resource] + """ + + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListResourcesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListResourcesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_tags_response.py b/memos/models/v1_list_tags_response.py new file mode 100644 index 0000000..65637ab --- /dev/null +++ b/memos/models/v1_list_tags_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListTagsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'tags': 'list[V1Tag]' + } + + attribute_map = { + 'tags': 'tags' + } + + def __init__(self, tags=None): # noqa: E501 + """V1ListTagsResponse - a model defined in Swagger""" # noqa: E501 + self._tags = None + self.discriminator = None + if tags is not None: + self.tags = tags + + @property + def tags(self): + """Gets the tags of this V1ListTagsResponse. # noqa: E501 + + + :return: The tags of this V1ListTagsResponse. # noqa: E501 + :rtype: list[V1Tag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this V1ListTagsResponse. + + + :param tags: The tags of this V1ListTagsResponse. # noqa: E501 + :type: list[V1Tag] + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListTagsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListTagsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_user_access_tokens_response.py b/memos/models/v1_list_user_access_tokens_response.py new file mode 100644 index 0000000..a026bae --- /dev/null +++ b/memos/models/v1_list_user_access_tokens_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListUserAccessTokensResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_tokens': 'list[V1UserAccessToken]' + } + + attribute_map = { + 'access_tokens': 'accessTokens' + } + + def __init__(self, access_tokens=None): # noqa: E501 + """V1ListUserAccessTokensResponse - a model defined in Swagger""" # noqa: E501 + self._access_tokens = None + self.discriminator = None + if access_tokens is not None: + self.access_tokens = access_tokens + + @property + def access_tokens(self): + """Gets the access_tokens of this V1ListUserAccessTokensResponse. # noqa: E501 + + + :return: The access_tokens of this V1ListUserAccessTokensResponse. # noqa: E501 + :rtype: list[V1UserAccessToken] + """ + return self._access_tokens + + @access_tokens.setter + def access_tokens(self, access_tokens): + """Sets the access_tokens of this V1ListUserAccessTokensResponse. + + + :param access_tokens: The access_tokens of this V1ListUserAccessTokensResponse. # noqa: E501 + :type: list[V1UserAccessToken] + """ + + self._access_tokens = access_tokens + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListUserAccessTokensResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListUserAccessTokensResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_users_response.py b/memos/models/v1_list_users_response.py new file mode 100644 index 0000000..b07424d --- /dev/null +++ b/memos/models/v1_list_users_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListUsersResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'users': 'list[V1User]' + } + + attribute_map = { + 'users': 'users' + } + + def __init__(self, users=None): # noqa: E501 + """V1ListUsersResponse - a model defined in Swagger""" # noqa: E501 + self._users = None + self.discriminator = None + if users is not None: + self.users = users + + @property + def users(self): + """Gets the users of this V1ListUsersResponse. # noqa: E501 + + + :return: The users of this V1ListUsersResponse. # noqa: E501 + :rtype: list[V1User] + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this V1ListUsersResponse. + + + :param users: The users of this V1ListUsersResponse. # noqa: E501 + :type: list[V1User] + """ + + self._users = users + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListUsersResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListUsersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_webhooks_response.py b/memos/models/v1_list_webhooks_response.py new file mode 100644 index 0000000..e750e10 --- /dev/null +++ b/memos/models/v1_list_webhooks_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListWebhooksResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'webhooks': 'list[V1Webhook]' + } + + attribute_map = { + 'webhooks': 'webhooks' + } + + def __init__(self, webhooks=None): # noqa: E501 + """V1ListWebhooksResponse - a model defined in Swagger""" # noqa: E501 + self._webhooks = None + self.discriminator = None + if webhooks is not None: + self.webhooks = webhooks + + @property + def webhooks(self): + """Gets the webhooks of this V1ListWebhooksResponse. # noqa: E501 + + + :return: The webhooks of this V1ListWebhooksResponse. # noqa: E501 + :rtype: list[V1Webhook] + """ + return self._webhooks + + @webhooks.setter + def webhooks(self, webhooks): + """Sets the webhooks of this V1ListWebhooksResponse. + + + :param webhooks: The webhooks of this V1ListWebhooksResponse. # noqa: E501 + :type: list[V1Webhook] + """ + + self._webhooks = webhooks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListWebhooksResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListWebhooksResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_list_workspace_settings_response.py b/memos/models/v1_list_workspace_settings_response.py new file mode 100644 index 0000000..7595a43 --- /dev/null +++ b/memos/models/v1_list_workspace_settings_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ListWorkspaceSettingsResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'settings': 'list[Apiv1WorkspaceSetting]' + } + + attribute_map = { + 'settings': 'settings' + } + + def __init__(self, settings=None): # noqa: E501 + """V1ListWorkspaceSettingsResponse - a model defined in Swagger""" # noqa: E501 + self._settings = None + self.discriminator = None + if settings is not None: + self.settings = settings + + @property + def settings(self): + """Gets the settings of this V1ListWorkspaceSettingsResponse. # noqa: E501 + + + :return: The settings of this V1ListWorkspaceSettingsResponse. # noqa: E501 + :rtype: list[Apiv1WorkspaceSetting] + """ + return self._settings + + @settings.setter + def settings(self, settings): + """Sets the settings of this V1ListWorkspaceSettingsResponse. + + + :param settings: The settings of this V1ListWorkspaceSettingsResponse. # noqa: E501 + :type: list[Apiv1WorkspaceSetting] + """ + + self._settings = settings + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ListWorkspaceSettingsResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ListWorkspaceSettingsResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_math_block_node.py b/memos/models/v1_math_block_node.py new file mode 100644 index 0000000..1a4fdd5 --- /dev/null +++ b/memos/models/v1_math_block_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1MathBlockNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1MathBlockNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1MathBlockNode. # noqa: E501 + + + :return: The content of this V1MathBlockNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1MathBlockNode. + + + :param content: The content of this V1MathBlockNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1MathBlockNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MathBlockNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_math_node.py b/memos/models/v1_math_node.py new file mode 100644 index 0000000..f397028 --- /dev/null +++ b/memos/models/v1_math_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1MathNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1MathNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1MathNode. # noqa: E501 + + + :return: The content of this V1MathNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1MathNode. + + + :param content: The content of this V1MathNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1MathNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MathNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_memo.py b/memos/models/v1_memo.py new file mode 100644 index 0000000..7c1a8b2 --- /dev/null +++ b/memos/models/v1_memo.py @@ -0,0 +1,478 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Memo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'uid': 'str', + 'row_status': 'V1RowStatus', + 'creator': 'str', + 'create_time': 'datetime', + 'update_time': 'datetime', + 'display_time': 'datetime', + 'content': 'str', + 'nodes': 'list[V1Node]', + 'visibility': 'V1Visibility', + 'pinned': 'bool', + 'parent_id': 'int', + 'resources': 'list[V1Resource]', + 'relations': 'list[V1MemoRelation]', + 'reactions': 'list[V1Reaction]' + } + + attribute_map = { + 'name': 'name', + 'uid': 'uid', + 'row_status': 'rowStatus', + 'creator': 'creator', + 'create_time': 'createTime', + 'update_time': 'updateTime', + 'display_time': 'displayTime', + 'content': 'content', + 'nodes': 'nodes', + 'visibility': 'visibility', + 'pinned': 'pinned', + 'parent_id': 'parentId', + 'resources': 'resources', + 'relations': 'relations', + 'reactions': 'reactions' + } + + def __init__(self, name=None, uid=None, row_status=None, creator=None, create_time=None, update_time=None, display_time=None, content=None, nodes=None, visibility=None, pinned=None, parent_id=None, resources=None, relations=None, reactions=None): # noqa: E501 + """V1Memo - a model defined in Swagger""" # noqa: E501 + self._name = None + self._uid = None + self._row_status = None + self._creator = None + self._create_time = None + self._update_time = None + self._display_time = None + self._content = None + self._nodes = None + self._visibility = None + self._pinned = None + self._parent_id = None + self._resources = None + self._relations = None + self._reactions = None + self.discriminator = None + if name is not None: + self.name = name + if uid is not None: + self.uid = uid + if row_status is not None: + self.row_status = row_status + if creator is not None: + self.creator = creator + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if display_time is not None: + self.display_time = display_time + if content is not None: + self.content = content + if nodes is not None: + self.nodes = nodes + if visibility is not None: + self.visibility = visibility + if pinned is not None: + self.pinned = pinned + if parent_id is not None: + self.parent_id = parent_id + if resources is not None: + self.resources = resources + if relations is not None: + self.relations = relations + if reactions is not None: + self.reactions = reactions + + @property + def name(self): + """Gets the name of this V1Memo. # noqa: E501 + + The name of the memo. Format: memos/{id} id is the system generated id. # noqa: E501 + + :return: The name of this V1Memo. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Memo. + + The name of the memo. Format: memos/{id} id is the system generated id. # noqa: E501 + + :param name: The name of this V1Memo. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def uid(self): + """Gets the uid of this V1Memo. # noqa: E501 + + The user defined id of the memo. # noqa: E501 + + :return: The uid of this V1Memo. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1Memo. + + The user defined id of the memo. # noqa: E501 + + :param uid: The uid of this V1Memo. # noqa: E501 + :type: str + """ + + self._uid = uid + + @property + def row_status(self): + """Gets the row_status of this V1Memo. # noqa: E501 + + + :return: The row_status of this V1Memo. # noqa: E501 + :rtype: V1RowStatus + """ + return self._row_status + + @row_status.setter + def row_status(self, row_status): + """Sets the row_status of this V1Memo. + + + :param row_status: The row_status of this V1Memo. # noqa: E501 + :type: V1RowStatus + """ + + self._row_status = row_status + + @property + def creator(self): + """Gets the creator of this V1Memo. # noqa: E501 + + + :return: The creator of this V1Memo. # noqa: E501 + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this V1Memo. + + + :param creator: The creator of this V1Memo. # noqa: E501 + :type: str + """ + + self._creator = creator + + @property + def create_time(self): + """Gets the create_time of this V1Memo. # noqa: E501 + + + :return: The create_time of this V1Memo. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1Memo. + + + :param create_time: The create_time of this V1Memo. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this V1Memo. # noqa: E501 + + + :return: The update_time of this V1Memo. # noqa: E501 + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this V1Memo. + + + :param update_time: The update_time of this V1Memo. # noqa: E501 + :type: datetime + """ + + self._update_time = update_time + + @property + def display_time(self): + """Gets the display_time of this V1Memo. # noqa: E501 + + + :return: The display_time of this V1Memo. # noqa: E501 + :rtype: datetime + """ + return self._display_time + + @display_time.setter + def display_time(self, display_time): + """Sets the display_time of this V1Memo. + + + :param display_time: The display_time of this V1Memo. # noqa: E501 + :type: datetime + """ + + self._display_time = display_time + + @property + def content(self): + """Gets the content of this V1Memo. # noqa: E501 + + + :return: The content of this V1Memo. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1Memo. + + + :param content: The content of this V1Memo. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def nodes(self): + """Gets the nodes of this V1Memo. # noqa: E501 + + + :return: The nodes of this V1Memo. # noqa: E501 + :rtype: list[V1Node] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this V1Memo. + + + :param nodes: The nodes of this V1Memo. # noqa: E501 + :type: list[V1Node] + """ + + self._nodes = nodes + + @property + def visibility(self): + """Gets the visibility of this V1Memo. # noqa: E501 + + + :return: The visibility of this V1Memo. # noqa: E501 + :rtype: V1Visibility + """ + return self._visibility + + @visibility.setter + def visibility(self, visibility): + """Sets the visibility of this V1Memo. + + + :param visibility: The visibility of this V1Memo. # noqa: E501 + :type: V1Visibility + """ + + self._visibility = visibility + + @property + def pinned(self): + """Gets the pinned of this V1Memo. # noqa: E501 + + + :return: The pinned of this V1Memo. # noqa: E501 + :rtype: bool + """ + return self._pinned + + @pinned.setter + def pinned(self, pinned): + """Sets the pinned of this V1Memo. + + + :param pinned: The pinned of this V1Memo. # noqa: E501 + :type: bool + """ + + self._pinned = pinned + + @property + def parent_id(self): + """Gets the parent_id of this V1Memo. # noqa: E501 + + + :return: The parent_id of this V1Memo. # noqa: E501 + :rtype: int + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this V1Memo. + + + :param parent_id: The parent_id of this V1Memo. # noqa: E501 + :type: int + """ + + self._parent_id = parent_id + + @property + def resources(self): + """Gets the resources of this V1Memo. # noqa: E501 + + + :return: The resources of this V1Memo. # noqa: E501 + :rtype: list[V1Resource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1Memo. + + + :param resources: The resources of this V1Memo. # noqa: E501 + :type: list[V1Resource] + """ + + self._resources = resources + + @property + def relations(self): + """Gets the relations of this V1Memo. # noqa: E501 + + + :return: The relations of this V1Memo. # noqa: E501 + :rtype: list[V1MemoRelation] + """ + return self._relations + + @relations.setter + def relations(self, relations): + """Sets the relations of this V1Memo. + + + :param relations: The relations of this V1Memo. # noqa: E501 + :type: list[V1MemoRelation] + """ + + self._relations = relations + + @property + def reactions(self): + """Gets the reactions of this V1Memo. # noqa: E501 + + + :return: The reactions of this V1Memo. # noqa: E501 + :rtype: list[V1Reaction] + """ + return self._reactions + + @reactions.setter + def reactions(self, reactions): + """Sets the reactions of this V1Memo. + + + :param reactions: The reactions of this V1Memo. # noqa: E501 + :type: list[V1Reaction] + """ + + self._reactions = reactions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Memo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Memo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_memo_name_body.py b/memos/models/v1_memo_name_body.py new file mode 100644 index 0000000..0d20bb1 --- /dev/null +++ b/memos/models/v1_memo_name_body.py @@ -0,0 +1,450 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1MemoNameBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uid': 'str', + 'row_status': 'V1RowStatus', + 'creator': 'str', + 'create_time': 'datetime', + 'update_time': 'datetime', + 'display_time': 'datetime', + 'content': 'str', + 'nodes': 'list[V1Node]', + 'visibility': 'V1Visibility', + 'pinned': 'bool', + 'parent_id': 'int', + 'resources': 'list[V1Resource]', + 'relations': 'list[V1MemoRelation]', + 'reactions': 'list[V1Reaction]' + } + + attribute_map = { + 'uid': 'uid', + 'row_status': 'rowStatus', + 'creator': 'creator', + 'create_time': 'createTime', + 'update_time': 'updateTime', + 'display_time': 'displayTime', + 'content': 'content', + 'nodes': 'nodes', + 'visibility': 'visibility', + 'pinned': 'pinned', + 'parent_id': 'parentId', + 'resources': 'resources', + 'relations': 'relations', + 'reactions': 'reactions' + } + + def __init__(self, uid=None, row_status=None, creator=None, create_time=None, update_time=None, display_time=None, content=None, nodes=None, visibility=None, pinned=None, parent_id=None, resources=None, relations=None, reactions=None): # noqa: E501 + """V1MemoNameBody - a model defined in Swagger""" # noqa: E501 + self._uid = None + self._row_status = None + self._creator = None + self._create_time = None + self._update_time = None + self._display_time = None + self._content = None + self._nodes = None + self._visibility = None + self._pinned = None + self._parent_id = None + self._resources = None + self._relations = None + self._reactions = None + self.discriminator = None + if uid is not None: + self.uid = uid + if row_status is not None: + self.row_status = row_status + if creator is not None: + self.creator = creator + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + if display_time is not None: + self.display_time = display_time + if content is not None: + self.content = content + if nodes is not None: + self.nodes = nodes + if visibility is not None: + self.visibility = visibility + if pinned is not None: + self.pinned = pinned + if parent_id is not None: + self.parent_id = parent_id + if resources is not None: + self.resources = resources + if relations is not None: + self.relations = relations + if reactions is not None: + self.reactions = reactions + + @property + def uid(self): + """Gets the uid of this V1MemoNameBody. # noqa: E501 + + The user defined id of the memo. # noqa: E501 + + :return: The uid of this V1MemoNameBody. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1MemoNameBody. + + The user defined id of the memo. # noqa: E501 + + :param uid: The uid of this V1MemoNameBody. # noqa: E501 + :type: str + """ + + self._uid = uid + + @property + def row_status(self): + """Gets the row_status of this V1MemoNameBody. # noqa: E501 + + + :return: The row_status of this V1MemoNameBody. # noqa: E501 + :rtype: V1RowStatus + """ + return self._row_status + + @row_status.setter + def row_status(self, row_status): + """Sets the row_status of this V1MemoNameBody. + + + :param row_status: The row_status of this V1MemoNameBody. # noqa: E501 + :type: V1RowStatus + """ + + self._row_status = row_status + + @property + def creator(self): + """Gets the creator of this V1MemoNameBody. # noqa: E501 + + + :return: The creator of this V1MemoNameBody. # noqa: E501 + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this V1MemoNameBody. + + + :param creator: The creator of this V1MemoNameBody. # noqa: E501 + :type: str + """ + + self._creator = creator + + @property + def create_time(self): + """Gets the create_time of this V1MemoNameBody. # noqa: E501 + + + :return: The create_time of this V1MemoNameBody. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1MemoNameBody. + + + :param create_time: The create_time of this V1MemoNameBody. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this V1MemoNameBody. # noqa: E501 + + + :return: The update_time of this V1MemoNameBody. # noqa: E501 + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this V1MemoNameBody. + + + :param update_time: The update_time of this V1MemoNameBody. # noqa: E501 + :type: datetime + """ + + self._update_time = update_time + + @property + def display_time(self): + """Gets the display_time of this V1MemoNameBody. # noqa: E501 + + + :return: The display_time of this V1MemoNameBody. # noqa: E501 + :rtype: datetime + """ + return self._display_time + + @display_time.setter + def display_time(self, display_time): + """Sets the display_time of this V1MemoNameBody. + + + :param display_time: The display_time of this V1MemoNameBody. # noqa: E501 + :type: datetime + """ + + self._display_time = display_time + + @property + def content(self): + """Gets the content of this V1MemoNameBody. # noqa: E501 + + + :return: The content of this V1MemoNameBody. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1MemoNameBody. + + + :param content: The content of this V1MemoNameBody. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def nodes(self): + """Gets the nodes of this V1MemoNameBody. # noqa: E501 + + + :return: The nodes of this V1MemoNameBody. # noqa: E501 + :rtype: list[V1Node] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this V1MemoNameBody. + + + :param nodes: The nodes of this V1MemoNameBody. # noqa: E501 + :type: list[V1Node] + """ + + self._nodes = nodes + + @property + def visibility(self): + """Gets the visibility of this V1MemoNameBody. # noqa: E501 + + + :return: The visibility of this V1MemoNameBody. # noqa: E501 + :rtype: V1Visibility + """ + return self._visibility + + @visibility.setter + def visibility(self, visibility): + """Sets the visibility of this V1MemoNameBody. + + + :param visibility: The visibility of this V1MemoNameBody. # noqa: E501 + :type: V1Visibility + """ + + self._visibility = visibility + + @property + def pinned(self): + """Gets the pinned of this V1MemoNameBody. # noqa: E501 + + + :return: The pinned of this V1MemoNameBody. # noqa: E501 + :rtype: bool + """ + return self._pinned + + @pinned.setter + def pinned(self, pinned): + """Sets the pinned of this V1MemoNameBody. + + + :param pinned: The pinned of this V1MemoNameBody. # noqa: E501 + :type: bool + """ + + self._pinned = pinned + + @property + def parent_id(self): + """Gets the parent_id of this V1MemoNameBody. # noqa: E501 + + + :return: The parent_id of this V1MemoNameBody. # noqa: E501 + :rtype: int + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this V1MemoNameBody. + + + :param parent_id: The parent_id of this V1MemoNameBody. # noqa: E501 + :type: int + """ + + self._parent_id = parent_id + + @property + def resources(self): + """Gets the resources of this V1MemoNameBody. # noqa: E501 + + + :return: The resources of this V1MemoNameBody. # noqa: E501 + :rtype: list[V1Resource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1MemoNameBody. + + + :param resources: The resources of this V1MemoNameBody. # noqa: E501 + :type: list[V1Resource] + """ + + self._resources = resources + + @property + def relations(self): + """Gets the relations of this V1MemoNameBody. # noqa: E501 + + + :return: The relations of this V1MemoNameBody. # noqa: E501 + :rtype: list[V1MemoRelation] + """ + return self._relations + + @relations.setter + def relations(self, relations): + """Sets the relations of this V1MemoNameBody. + + + :param relations: The relations of this V1MemoNameBody. # noqa: E501 + :type: list[V1MemoRelation] + """ + + self._relations = relations + + @property + def reactions(self): + """Gets the reactions of this V1MemoNameBody. # noqa: E501 + + + :return: The reactions of this V1MemoNameBody. # noqa: E501 + :rtype: list[V1Reaction] + """ + return self._reactions + + @reactions.setter + def reactions(self, reactions): + """Sets the reactions of this V1MemoNameBody. + + + :param reactions: The reactions of this V1MemoNameBody. # noqa: E501 + :type: list[V1Reaction] + """ + + self._reactions = reactions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1MemoNameBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MemoNameBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_memo_relation.py b/memos/models/v1_memo_relation.py new file mode 100644 index 0000000..8719f6d --- /dev/null +++ b/memos/models/v1_memo_relation.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1MemoRelation(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memo': 'str', + 'related_memo': 'str', + 'type': 'V1MemoRelationType' + } + + attribute_map = { + 'memo': 'memo', + 'related_memo': 'relatedMemo', + 'type': 'type' + } + + def __init__(self, memo=None, related_memo=None, type=None): # noqa: E501 + """V1MemoRelation - a model defined in Swagger""" # noqa: E501 + self._memo = None + self._related_memo = None + self._type = None + self.discriminator = None + if memo is not None: + self.memo = memo + if related_memo is not None: + self.related_memo = related_memo + if type is not None: + self.type = type + + @property + def memo(self): + """Gets the memo of this V1MemoRelation. # noqa: E501 + + + :return: The memo of this V1MemoRelation. # noqa: E501 + :rtype: str + """ + return self._memo + + @memo.setter + def memo(self, memo): + """Sets the memo of this V1MemoRelation. + + + :param memo: The memo of this V1MemoRelation. # noqa: E501 + :type: str + """ + + self._memo = memo + + @property + def related_memo(self): + """Gets the related_memo of this V1MemoRelation. # noqa: E501 + + + :return: The related_memo of this V1MemoRelation. # noqa: E501 + :rtype: str + """ + return self._related_memo + + @related_memo.setter + def related_memo(self, related_memo): + """Sets the related_memo of this V1MemoRelation. + + + :param related_memo: The related_memo of this V1MemoRelation. # noqa: E501 + :type: str + """ + + self._related_memo = related_memo + + @property + def type(self): + """Gets the type of this V1MemoRelation. # noqa: E501 + + + :return: The type of this V1MemoRelation. # noqa: E501 + :rtype: V1MemoRelationType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1MemoRelation. + + + :param type: The type of this V1MemoRelation. # noqa: E501 + :type: V1MemoRelationType + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1MemoRelation, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MemoRelation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_memo_relation_type.py b/memos/models/v1_memo_relation_type.py new file mode 100644 index 0000000..8d59fc4 --- /dev/null +++ b/memos/models/v1_memo_relation_type.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1MemoRelationType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED" + REFERENCE = "REFERENCE" + COMMENT = "COMMENT" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1MemoRelationType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1MemoRelationType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1MemoRelationType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_node.py b/memos/models/v1_node.py new file mode 100644 index 0000000..fcf134a --- /dev/null +++ b/memos/models/v1_node.py @@ -0,0 +1,864 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Node(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'V1NodeType', + 'line_break_node': 'V1LineBreakNode', + 'paragraph_node': 'V1ParagraphNode', + 'code_block_node': 'V1CodeBlockNode', + 'heading_node': 'V1HeadingNode', + 'horizontal_rule_node': 'V1HorizontalRuleNode', + 'blockquote_node': 'V1BlockquoteNode', + 'ordered_list_node': 'V1OrderedListNode', + 'unordered_list_node': 'V1UnorderedListNode', + 'task_list_node': 'V1TaskListNode', + 'math_block_node': 'V1MathBlockNode', + 'table_node': 'V1TableNode', + 'embedded_content_node': 'V1EmbeddedContentNode', + 'text_node': 'V1TextNode', + 'bold_node': 'V1BoldNode', + 'italic_node': 'V1ItalicNode', + 'bold_italic_node': 'V1BoldItalicNode', + 'code_node': 'V1CodeNode', + 'image_node': 'V1ImageNode', + 'link_node': 'V1LinkNode', + 'auto_link_node': 'V1AutoLinkNode', + 'tag_node': 'V1TagNode', + 'strikethrough_node': 'V1StrikethroughNode', + 'escaping_character_node': 'V1EscapingCharacterNode', + 'math_node': 'V1MathNode', + 'highlight_node': 'V1HighlightNode', + 'subscript_node': 'V1SubscriptNode', + 'superscript_node': 'V1SuperscriptNode', + 'referenced_content_node': 'V1ReferencedContentNode', + 'spoiler_node': 'V1SpoilerNode' + } + + attribute_map = { + 'type': 'type', + 'line_break_node': 'lineBreakNode', + 'paragraph_node': 'paragraphNode', + 'code_block_node': 'codeBlockNode', + 'heading_node': 'headingNode', + 'horizontal_rule_node': 'horizontalRuleNode', + 'blockquote_node': 'blockquoteNode', + 'ordered_list_node': 'orderedListNode', + 'unordered_list_node': 'unorderedListNode', + 'task_list_node': 'taskListNode', + 'math_block_node': 'mathBlockNode', + 'table_node': 'tableNode', + 'embedded_content_node': 'embeddedContentNode', + 'text_node': 'textNode', + 'bold_node': 'boldNode', + 'italic_node': 'italicNode', + 'bold_italic_node': 'boldItalicNode', + 'code_node': 'codeNode', + 'image_node': 'imageNode', + 'link_node': 'linkNode', + 'auto_link_node': 'autoLinkNode', + 'tag_node': 'tagNode', + 'strikethrough_node': 'strikethroughNode', + 'escaping_character_node': 'escapingCharacterNode', + 'math_node': 'mathNode', + 'highlight_node': 'highlightNode', + 'subscript_node': 'subscriptNode', + 'superscript_node': 'superscriptNode', + 'referenced_content_node': 'referencedContentNode', + 'spoiler_node': 'spoilerNode' + } + + def __init__(self, type=None, line_break_node=None, paragraph_node=None, code_block_node=None, heading_node=None, horizontal_rule_node=None, blockquote_node=None, ordered_list_node=None, unordered_list_node=None, task_list_node=None, math_block_node=None, table_node=None, embedded_content_node=None, text_node=None, bold_node=None, italic_node=None, bold_italic_node=None, code_node=None, image_node=None, link_node=None, auto_link_node=None, tag_node=None, strikethrough_node=None, escaping_character_node=None, math_node=None, highlight_node=None, subscript_node=None, superscript_node=None, referenced_content_node=None, spoiler_node=None): # noqa: E501 + """V1Node - a model defined in Swagger""" # noqa: E501 + self._type = None + self._line_break_node = None + self._paragraph_node = None + self._code_block_node = None + self._heading_node = None + self._horizontal_rule_node = None + self._blockquote_node = None + self._ordered_list_node = None + self._unordered_list_node = None + self._task_list_node = None + self._math_block_node = None + self._table_node = None + self._embedded_content_node = None + self._text_node = None + self._bold_node = None + self._italic_node = None + self._bold_italic_node = None + self._code_node = None + self._image_node = None + self._link_node = None + self._auto_link_node = None + self._tag_node = None + self._strikethrough_node = None + self._escaping_character_node = None + self._math_node = None + self._highlight_node = None + self._subscript_node = None + self._superscript_node = None + self._referenced_content_node = None + self._spoiler_node = None + self.discriminator = None + if type is not None: + self.type = type + if line_break_node is not None: + self.line_break_node = line_break_node + if paragraph_node is not None: + self.paragraph_node = paragraph_node + if code_block_node is not None: + self.code_block_node = code_block_node + if heading_node is not None: + self.heading_node = heading_node + if horizontal_rule_node is not None: + self.horizontal_rule_node = horizontal_rule_node + if blockquote_node is not None: + self.blockquote_node = blockquote_node + if ordered_list_node is not None: + self.ordered_list_node = ordered_list_node + if unordered_list_node is not None: + self.unordered_list_node = unordered_list_node + if task_list_node is not None: + self.task_list_node = task_list_node + if math_block_node is not None: + self.math_block_node = math_block_node + if table_node is not None: + self.table_node = table_node + if embedded_content_node is not None: + self.embedded_content_node = embedded_content_node + if text_node is not None: + self.text_node = text_node + if bold_node is not None: + self.bold_node = bold_node + if italic_node is not None: + self.italic_node = italic_node + if bold_italic_node is not None: + self.bold_italic_node = bold_italic_node + if code_node is not None: + self.code_node = code_node + if image_node is not None: + self.image_node = image_node + if link_node is not None: + self.link_node = link_node + if auto_link_node is not None: + self.auto_link_node = auto_link_node + if tag_node is not None: + self.tag_node = tag_node + if strikethrough_node is not None: + self.strikethrough_node = strikethrough_node + if escaping_character_node is not None: + self.escaping_character_node = escaping_character_node + if math_node is not None: + self.math_node = math_node + if highlight_node is not None: + self.highlight_node = highlight_node + if subscript_node is not None: + self.subscript_node = subscript_node + if superscript_node is not None: + self.superscript_node = superscript_node + if referenced_content_node is not None: + self.referenced_content_node = referenced_content_node + if spoiler_node is not None: + self.spoiler_node = spoiler_node + + @property + def type(self): + """Gets the type of this V1Node. # noqa: E501 + + + :return: The type of this V1Node. # noqa: E501 + :rtype: V1NodeType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1Node. + + + :param type: The type of this V1Node. # noqa: E501 + :type: V1NodeType + """ + + self._type = type + + @property + def line_break_node(self): + """Gets the line_break_node of this V1Node. # noqa: E501 + + + :return: The line_break_node of this V1Node. # noqa: E501 + :rtype: V1LineBreakNode + """ + return self._line_break_node + + @line_break_node.setter + def line_break_node(self, line_break_node): + """Sets the line_break_node of this V1Node. + + + :param line_break_node: The line_break_node of this V1Node. # noqa: E501 + :type: V1LineBreakNode + """ + + self._line_break_node = line_break_node + + @property + def paragraph_node(self): + """Gets the paragraph_node of this V1Node. # noqa: E501 + + + :return: The paragraph_node of this V1Node. # noqa: E501 + :rtype: V1ParagraphNode + """ + return self._paragraph_node + + @paragraph_node.setter + def paragraph_node(self, paragraph_node): + """Sets the paragraph_node of this V1Node. + + + :param paragraph_node: The paragraph_node of this V1Node. # noqa: E501 + :type: V1ParagraphNode + """ + + self._paragraph_node = paragraph_node + + @property + def code_block_node(self): + """Gets the code_block_node of this V1Node. # noqa: E501 + + + :return: The code_block_node of this V1Node. # noqa: E501 + :rtype: V1CodeBlockNode + """ + return self._code_block_node + + @code_block_node.setter + def code_block_node(self, code_block_node): + """Sets the code_block_node of this V1Node. + + + :param code_block_node: The code_block_node of this V1Node. # noqa: E501 + :type: V1CodeBlockNode + """ + + self._code_block_node = code_block_node + + @property + def heading_node(self): + """Gets the heading_node of this V1Node. # noqa: E501 + + + :return: The heading_node of this V1Node. # noqa: E501 + :rtype: V1HeadingNode + """ + return self._heading_node + + @heading_node.setter + def heading_node(self, heading_node): + """Sets the heading_node of this V1Node. + + + :param heading_node: The heading_node of this V1Node. # noqa: E501 + :type: V1HeadingNode + """ + + self._heading_node = heading_node + + @property + def horizontal_rule_node(self): + """Gets the horizontal_rule_node of this V1Node. # noqa: E501 + + + :return: The horizontal_rule_node of this V1Node. # noqa: E501 + :rtype: V1HorizontalRuleNode + """ + return self._horizontal_rule_node + + @horizontal_rule_node.setter + def horizontal_rule_node(self, horizontal_rule_node): + """Sets the horizontal_rule_node of this V1Node. + + + :param horizontal_rule_node: The horizontal_rule_node of this V1Node. # noqa: E501 + :type: V1HorizontalRuleNode + """ + + self._horizontal_rule_node = horizontal_rule_node + + @property + def blockquote_node(self): + """Gets the blockquote_node of this V1Node. # noqa: E501 + + + :return: The blockquote_node of this V1Node. # noqa: E501 + :rtype: V1BlockquoteNode + """ + return self._blockquote_node + + @blockquote_node.setter + def blockquote_node(self, blockquote_node): + """Sets the blockquote_node of this V1Node. + + + :param blockquote_node: The blockquote_node of this V1Node. # noqa: E501 + :type: V1BlockquoteNode + """ + + self._blockquote_node = blockquote_node + + @property + def ordered_list_node(self): + """Gets the ordered_list_node of this V1Node. # noqa: E501 + + + :return: The ordered_list_node of this V1Node. # noqa: E501 + :rtype: V1OrderedListNode + """ + return self._ordered_list_node + + @ordered_list_node.setter + def ordered_list_node(self, ordered_list_node): + """Sets the ordered_list_node of this V1Node. + + + :param ordered_list_node: The ordered_list_node of this V1Node. # noqa: E501 + :type: V1OrderedListNode + """ + + self._ordered_list_node = ordered_list_node + + @property + def unordered_list_node(self): + """Gets the unordered_list_node of this V1Node. # noqa: E501 + + + :return: The unordered_list_node of this V1Node. # noqa: E501 + :rtype: V1UnorderedListNode + """ + return self._unordered_list_node + + @unordered_list_node.setter + def unordered_list_node(self, unordered_list_node): + """Sets the unordered_list_node of this V1Node. + + + :param unordered_list_node: The unordered_list_node of this V1Node. # noqa: E501 + :type: V1UnorderedListNode + """ + + self._unordered_list_node = unordered_list_node + + @property + def task_list_node(self): + """Gets the task_list_node of this V1Node. # noqa: E501 + + + :return: The task_list_node of this V1Node. # noqa: E501 + :rtype: V1TaskListNode + """ + return self._task_list_node + + @task_list_node.setter + def task_list_node(self, task_list_node): + """Sets the task_list_node of this V1Node. + + + :param task_list_node: The task_list_node of this V1Node. # noqa: E501 + :type: V1TaskListNode + """ + + self._task_list_node = task_list_node + + @property + def math_block_node(self): + """Gets the math_block_node of this V1Node. # noqa: E501 + + + :return: The math_block_node of this V1Node. # noqa: E501 + :rtype: V1MathBlockNode + """ + return self._math_block_node + + @math_block_node.setter + def math_block_node(self, math_block_node): + """Sets the math_block_node of this V1Node. + + + :param math_block_node: The math_block_node of this V1Node. # noqa: E501 + :type: V1MathBlockNode + """ + + self._math_block_node = math_block_node + + @property + def table_node(self): + """Gets the table_node of this V1Node. # noqa: E501 + + + :return: The table_node of this V1Node. # noqa: E501 + :rtype: V1TableNode + """ + return self._table_node + + @table_node.setter + def table_node(self, table_node): + """Sets the table_node of this V1Node. + + + :param table_node: The table_node of this V1Node. # noqa: E501 + :type: V1TableNode + """ + + self._table_node = table_node + + @property + def embedded_content_node(self): + """Gets the embedded_content_node of this V1Node. # noqa: E501 + + + :return: The embedded_content_node of this V1Node. # noqa: E501 + :rtype: V1EmbeddedContentNode + """ + return self._embedded_content_node + + @embedded_content_node.setter + def embedded_content_node(self, embedded_content_node): + """Sets the embedded_content_node of this V1Node. + + + :param embedded_content_node: The embedded_content_node of this V1Node. # noqa: E501 + :type: V1EmbeddedContentNode + """ + + self._embedded_content_node = embedded_content_node + + @property + def text_node(self): + """Gets the text_node of this V1Node. # noqa: E501 + + + :return: The text_node of this V1Node. # noqa: E501 + :rtype: V1TextNode + """ + return self._text_node + + @text_node.setter + def text_node(self, text_node): + """Sets the text_node of this V1Node. + + + :param text_node: The text_node of this V1Node. # noqa: E501 + :type: V1TextNode + """ + + self._text_node = text_node + + @property + def bold_node(self): + """Gets the bold_node of this V1Node. # noqa: E501 + + + :return: The bold_node of this V1Node. # noqa: E501 + :rtype: V1BoldNode + """ + return self._bold_node + + @bold_node.setter + def bold_node(self, bold_node): + """Sets the bold_node of this V1Node. + + + :param bold_node: The bold_node of this V1Node. # noqa: E501 + :type: V1BoldNode + """ + + self._bold_node = bold_node + + @property + def italic_node(self): + """Gets the italic_node of this V1Node. # noqa: E501 + + + :return: The italic_node of this V1Node. # noqa: E501 + :rtype: V1ItalicNode + """ + return self._italic_node + + @italic_node.setter + def italic_node(self, italic_node): + """Sets the italic_node of this V1Node. + + + :param italic_node: The italic_node of this V1Node. # noqa: E501 + :type: V1ItalicNode + """ + + self._italic_node = italic_node + + @property + def bold_italic_node(self): + """Gets the bold_italic_node of this V1Node. # noqa: E501 + + + :return: The bold_italic_node of this V1Node. # noqa: E501 + :rtype: V1BoldItalicNode + """ + return self._bold_italic_node + + @bold_italic_node.setter + def bold_italic_node(self, bold_italic_node): + """Sets the bold_italic_node of this V1Node. + + + :param bold_italic_node: The bold_italic_node of this V1Node. # noqa: E501 + :type: V1BoldItalicNode + """ + + self._bold_italic_node = bold_italic_node + + @property + def code_node(self): + """Gets the code_node of this V1Node. # noqa: E501 + + + :return: The code_node of this V1Node. # noqa: E501 + :rtype: V1CodeNode + """ + return self._code_node + + @code_node.setter + def code_node(self, code_node): + """Sets the code_node of this V1Node. + + + :param code_node: The code_node of this V1Node. # noqa: E501 + :type: V1CodeNode + """ + + self._code_node = code_node + + @property + def image_node(self): + """Gets the image_node of this V1Node. # noqa: E501 + + + :return: The image_node of this V1Node. # noqa: E501 + :rtype: V1ImageNode + """ + return self._image_node + + @image_node.setter + def image_node(self, image_node): + """Sets the image_node of this V1Node. + + + :param image_node: The image_node of this V1Node. # noqa: E501 + :type: V1ImageNode + """ + + self._image_node = image_node + + @property + def link_node(self): + """Gets the link_node of this V1Node. # noqa: E501 + + + :return: The link_node of this V1Node. # noqa: E501 + :rtype: V1LinkNode + """ + return self._link_node + + @link_node.setter + def link_node(self, link_node): + """Sets the link_node of this V1Node. + + + :param link_node: The link_node of this V1Node. # noqa: E501 + :type: V1LinkNode + """ + + self._link_node = link_node + + @property + def auto_link_node(self): + """Gets the auto_link_node of this V1Node. # noqa: E501 + + + :return: The auto_link_node of this V1Node. # noqa: E501 + :rtype: V1AutoLinkNode + """ + return self._auto_link_node + + @auto_link_node.setter + def auto_link_node(self, auto_link_node): + """Sets the auto_link_node of this V1Node. + + + :param auto_link_node: The auto_link_node of this V1Node. # noqa: E501 + :type: V1AutoLinkNode + """ + + self._auto_link_node = auto_link_node + + @property + def tag_node(self): + """Gets the tag_node of this V1Node. # noqa: E501 + + + :return: The tag_node of this V1Node. # noqa: E501 + :rtype: V1TagNode + """ + return self._tag_node + + @tag_node.setter + def tag_node(self, tag_node): + """Sets the tag_node of this V1Node. + + + :param tag_node: The tag_node of this V1Node. # noqa: E501 + :type: V1TagNode + """ + + self._tag_node = tag_node + + @property + def strikethrough_node(self): + """Gets the strikethrough_node of this V1Node. # noqa: E501 + + + :return: The strikethrough_node of this V1Node. # noqa: E501 + :rtype: V1StrikethroughNode + """ + return self._strikethrough_node + + @strikethrough_node.setter + def strikethrough_node(self, strikethrough_node): + """Sets the strikethrough_node of this V1Node. + + + :param strikethrough_node: The strikethrough_node of this V1Node. # noqa: E501 + :type: V1StrikethroughNode + """ + + self._strikethrough_node = strikethrough_node + + @property + def escaping_character_node(self): + """Gets the escaping_character_node of this V1Node. # noqa: E501 + + + :return: The escaping_character_node of this V1Node. # noqa: E501 + :rtype: V1EscapingCharacterNode + """ + return self._escaping_character_node + + @escaping_character_node.setter + def escaping_character_node(self, escaping_character_node): + """Sets the escaping_character_node of this V1Node. + + + :param escaping_character_node: The escaping_character_node of this V1Node. # noqa: E501 + :type: V1EscapingCharacterNode + """ + + self._escaping_character_node = escaping_character_node + + @property + def math_node(self): + """Gets the math_node of this V1Node. # noqa: E501 + + + :return: The math_node of this V1Node. # noqa: E501 + :rtype: V1MathNode + """ + return self._math_node + + @math_node.setter + def math_node(self, math_node): + """Sets the math_node of this V1Node. + + + :param math_node: The math_node of this V1Node. # noqa: E501 + :type: V1MathNode + """ + + self._math_node = math_node + + @property + def highlight_node(self): + """Gets the highlight_node of this V1Node. # noqa: E501 + + + :return: The highlight_node of this V1Node. # noqa: E501 + :rtype: V1HighlightNode + """ + return self._highlight_node + + @highlight_node.setter + def highlight_node(self, highlight_node): + """Sets the highlight_node of this V1Node. + + + :param highlight_node: The highlight_node of this V1Node. # noqa: E501 + :type: V1HighlightNode + """ + + self._highlight_node = highlight_node + + @property + def subscript_node(self): + """Gets the subscript_node of this V1Node. # noqa: E501 + + + :return: The subscript_node of this V1Node. # noqa: E501 + :rtype: V1SubscriptNode + """ + return self._subscript_node + + @subscript_node.setter + def subscript_node(self, subscript_node): + """Sets the subscript_node of this V1Node. + + + :param subscript_node: The subscript_node of this V1Node. # noqa: E501 + :type: V1SubscriptNode + """ + + self._subscript_node = subscript_node + + @property + def superscript_node(self): + """Gets the superscript_node of this V1Node. # noqa: E501 + + + :return: The superscript_node of this V1Node. # noqa: E501 + :rtype: V1SuperscriptNode + """ + return self._superscript_node + + @superscript_node.setter + def superscript_node(self, superscript_node): + """Sets the superscript_node of this V1Node. + + + :param superscript_node: The superscript_node of this V1Node. # noqa: E501 + :type: V1SuperscriptNode + """ + + self._superscript_node = superscript_node + + @property + def referenced_content_node(self): + """Gets the referenced_content_node of this V1Node. # noqa: E501 + + + :return: The referenced_content_node of this V1Node. # noqa: E501 + :rtype: V1ReferencedContentNode + """ + return self._referenced_content_node + + @referenced_content_node.setter + def referenced_content_node(self, referenced_content_node): + """Sets the referenced_content_node of this V1Node. + + + :param referenced_content_node: The referenced_content_node of this V1Node. # noqa: E501 + :type: V1ReferencedContentNode + """ + + self._referenced_content_node = referenced_content_node + + @property + def spoiler_node(self): + """Gets the spoiler_node of this V1Node. # noqa: E501 + + + :return: The spoiler_node of this V1Node. # noqa: E501 + :rtype: V1SpoilerNode + """ + return self._spoiler_node + + @spoiler_node.setter + def spoiler_node(self, spoiler_node): + """Sets the spoiler_node of this V1Node. + + + :param spoiler_node: The spoiler_node of this V1Node. # noqa: E501 + :type: V1SpoilerNode + """ + + self._spoiler_node = spoiler_node + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Node, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Node): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_node_type.py b/memos/models/v1_node_type.py new file mode 100644 index 0000000..aa5bfae --- /dev/null +++ b/memos/models/v1_node_type.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1NodeType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NODE_UNSPECIFIED = "NODE_UNSPECIFIED" + LINE_BREAK = "LINE_BREAK" + PARAGRAPH = "PARAGRAPH" + CODE_BLOCK = "CODE_BLOCK" + HEADING = "HEADING" + HORIZONTAL_RULE = "HORIZONTAL_RULE" + BLOCKQUOTE = "BLOCKQUOTE" + ORDERED_LIST = "ORDERED_LIST" + UNORDERED_LIST = "UNORDERED_LIST" + TASK_LIST = "TASK_LIST" + MATH_BLOCK = "MATH_BLOCK" + TABLE = "TABLE" + EMBEDDED_CONTENT = "EMBEDDED_CONTENT" + TEXT = "TEXT" + BOLD = "BOLD" + ITALIC = "ITALIC" + BOLD_ITALIC = "BOLD_ITALIC" + CODE = "CODE" + IMAGE = "IMAGE" + LINK = "LINK" + AUTO_LINK = "AUTO_LINK" + TAG = "TAG" + STRIKETHROUGH = "STRIKETHROUGH" + ESCAPING_CHARACTER = "ESCAPING_CHARACTER" + MATH = "MATH" + HIGHLIGHT = "HIGHLIGHT" + SUBSCRIPT = "SUBSCRIPT" + SUPERSCRIPT = "SUPERSCRIPT" + REFERENCED_CONTENT = "REFERENCED_CONTENT" + SPOILER = "SPOILER" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1NodeType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1NodeType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1NodeType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_ordered_list_node.py b/memos/models/v1_ordered_list_node.py new file mode 100644 index 0000000..716b721 --- /dev/null +++ b/memos/models/v1_ordered_list_node.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1OrderedListNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number': 'str', + 'indent': 'int', + 'children': 'list[V1Node]' + } + + attribute_map = { + 'number': 'number', + 'indent': 'indent', + 'children': 'children' + } + + def __init__(self, number=None, indent=None, children=None): # noqa: E501 + """V1OrderedListNode - a model defined in Swagger""" # noqa: E501 + self._number = None + self._indent = None + self._children = None + self.discriminator = None + if number is not None: + self.number = number + if indent is not None: + self.indent = indent + if children is not None: + self.children = children + + @property + def number(self): + """Gets the number of this V1OrderedListNode. # noqa: E501 + + + :return: The number of this V1OrderedListNode. # noqa: E501 + :rtype: str + """ + return self._number + + @number.setter + def number(self, number): + """Sets the number of this V1OrderedListNode. + + + :param number: The number of this V1OrderedListNode. # noqa: E501 + :type: str + """ + + self._number = number + + @property + def indent(self): + """Gets the indent of this V1OrderedListNode. # noqa: E501 + + + :return: The indent of this V1OrderedListNode. # noqa: E501 + :rtype: int + """ + return self._indent + + @indent.setter + def indent(self, indent): + """Sets the indent of this V1OrderedListNode. + + + :param indent: The indent of this V1OrderedListNode. # noqa: E501 + :type: int + """ + + self._indent = indent + + @property + def children(self): + """Gets the children of this V1OrderedListNode. # noqa: E501 + + + :return: The children of this V1OrderedListNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1OrderedListNode. + + + :param children: The children of this V1OrderedListNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1OrderedListNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1OrderedListNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_paragraph_node.py b/memos/models/v1_paragraph_node.py new file mode 100644 index 0000000..185b811 --- /dev/null +++ b/memos/models/v1_paragraph_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ParagraphNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'children': 'list[V1Node]' + } + + attribute_map = { + 'children': 'children' + } + + def __init__(self, children=None): # noqa: E501 + """V1ParagraphNode - a model defined in Swagger""" # noqa: E501 + self._children = None + self.discriminator = None + if children is not None: + self.children = children + + @property + def children(self): + """Gets the children of this V1ParagraphNode. # noqa: E501 + + + :return: The children of this V1ParagraphNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1ParagraphNode. + + + :param children: The children of this V1ParagraphNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ParagraphNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParagraphNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_parse_markdown_request.py b/memos/models/v1_parse_markdown_request.py new file mode 100644 index 0000000..84ee826 --- /dev/null +++ b/memos/models/v1_parse_markdown_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ParseMarkdownRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'markdown': 'str' + } + + attribute_map = { + 'markdown': 'markdown' + } + + def __init__(self, markdown=None): # noqa: E501 + """V1ParseMarkdownRequest - a model defined in Swagger""" # noqa: E501 + self._markdown = None + self.discriminator = None + if markdown is not None: + self.markdown = markdown + + @property + def markdown(self): + """Gets the markdown of this V1ParseMarkdownRequest. # noqa: E501 + + + :return: The markdown of this V1ParseMarkdownRequest. # noqa: E501 + :rtype: str + """ + return self._markdown + + @markdown.setter + def markdown(self, markdown): + """Sets the markdown of this V1ParseMarkdownRequest. + + + :param markdown: The markdown of this V1ParseMarkdownRequest. # noqa: E501 + :type: str + """ + + self._markdown = markdown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ParseMarkdownRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParseMarkdownRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_parse_markdown_response.py b/memos/models/v1_parse_markdown_response.py new file mode 100644 index 0000000..9408687 --- /dev/null +++ b/memos/models/v1_parse_markdown_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ParseMarkdownResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'nodes': 'list[V1Node]' + } + + attribute_map = { + 'nodes': 'nodes' + } + + def __init__(self, nodes=None): # noqa: E501 + """V1ParseMarkdownResponse - a model defined in Swagger""" # noqa: E501 + self._nodes = None + self.discriminator = None + if nodes is not None: + self.nodes = nodes + + @property + def nodes(self): + """Gets the nodes of this V1ParseMarkdownResponse. # noqa: E501 + + + :return: The nodes of this V1ParseMarkdownResponse. # noqa: E501 + :rtype: list[V1Node] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this V1ParseMarkdownResponse. + + + :param nodes: The nodes of this V1ParseMarkdownResponse. # noqa: E501 + :type: list[V1Node] + """ + + self._nodes = nodes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ParseMarkdownResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ParseMarkdownResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_reaction.py b/memos/models/v1_reaction.py new file mode 100644 index 0000000..8996dd7 --- /dev/null +++ b/memos/models/v1_reaction.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Reaction(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'creator': 'str', + 'content_id': 'str', + 'reaction_type': 'V1ReactionType' + } + + attribute_map = { + 'id': 'id', + 'creator': 'creator', + 'content_id': 'contentId', + 'reaction_type': 'reactionType' + } + + def __init__(self, id=None, creator=None, content_id=None, reaction_type=None): # noqa: E501 + """V1Reaction - a model defined in Swagger""" # noqa: E501 + self._id = None + self._creator = None + self._content_id = None + self._reaction_type = None + self.discriminator = None + if id is not None: + self.id = id + if creator is not None: + self.creator = creator + if content_id is not None: + self.content_id = content_id + if reaction_type is not None: + self.reaction_type = reaction_type + + @property + def id(self): + """Gets the id of this V1Reaction. # noqa: E501 + + + :return: The id of this V1Reaction. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1Reaction. + + + :param id: The id of this V1Reaction. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def creator(self): + """Gets the creator of this V1Reaction. # noqa: E501 + + + :return: The creator of this V1Reaction. # noqa: E501 + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this V1Reaction. + + + :param creator: The creator of this V1Reaction. # noqa: E501 + :type: str + """ + + self._creator = creator + + @property + def content_id(self): + """Gets the content_id of this V1Reaction. # noqa: E501 + + + :return: The content_id of this V1Reaction. # noqa: E501 + :rtype: str + """ + return self._content_id + + @content_id.setter + def content_id(self, content_id): + """Sets the content_id of this V1Reaction. + + + :param content_id: The content_id of this V1Reaction. # noqa: E501 + :type: str + """ + + self._content_id = content_id + + @property + def reaction_type(self): + """Gets the reaction_type of this V1Reaction. # noqa: E501 + + + :return: The reaction_type of this V1Reaction. # noqa: E501 + :rtype: V1ReactionType + """ + return self._reaction_type + + @reaction_type.setter + def reaction_type(self, reaction_type): + """Sets the reaction_type of this V1Reaction. + + + :param reaction_type: The reaction_type of this V1Reaction. # noqa: E501 + :type: V1ReactionType + """ + + self._reaction_type = reaction_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Reaction, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Reaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_reaction_type.py b/memos/models/v1_reaction_type.py new file mode 100644 index 0000000..3bcff66 --- /dev/null +++ b/memos/models/v1_reaction_type.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ReactionType(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED" + THUMBS_UP = "THUMBS_UP" + THUMBS_DOWN = "THUMBS_DOWN" + HEART = "HEART" + FIRE = "FIRE" + CLAPPING_HANDS = "CLAPPING_HANDS" + LAUGH = "LAUGH" + OK_HAND = "OK_HAND" + ROCKET = "ROCKET" + EYES = "EYES" + THINKING_FACE = "THINKING_FACE" + CLOWN_FACE = "CLOWN_FACE" + QUESTION_MARK = "QUESTION_MARK" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1ReactionType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ReactionType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReactionType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_referenced_content_node.py b/memos/models/v1_referenced_content_node.py new file mode 100644 index 0000000..3cb5582 --- /dev/null +++ b/memos/models/v1_referenced_content_node.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ReferencedContentNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_name': 'str', + 'params': 'str' + } + + attribute_map = { + 'resource_name': 'resourceName', + 'params': 'params' + } + + def __init__(self, resource_name=None, params=None): # noqa: E501 + """V1ReferencedContentNode - a model defined in Swagger""" # noqa: E501 + self._resource_name = None + self._params = None + self.discriminator = None + if resource_name is not None: + self.resource_name = resource_name + if params is not None: + self.params = params + + @property + def resource_name(self): + """Gets the resource_name of this V1ReferencedContentNode. # noqa: E501 + + + :return: The resource_name of this V1ReferencedContentNode. # noqa: E501 + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this V1ReferencedContentNode. + + + :param resource_name: The resource_name of this V1ReferencedContentNode. # noqa: E501 + :type: str + """ + + self._resource_name = resource_name + + @property + def params(self): + """Gets the params of this V1ReferencedContentNode. # noqa: E501 + + + :return: The params of this V1ReferencedContentNode. # noqa: E501 + :rtype: str + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this V1ReferencedContentNode. + + + :param params: The params of this V1ReferencedContentNode. # noqa: E501 + :type: str + """ + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ReferencedContentNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ReferencedContentNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_rename_tag_request.py b/memos/models/v1_rename_tag_request.py new file mode 100644 index 0000000..e2326d8 --- /dev/null +++ b/memos/models/v1_rename_tag_request.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1RenameTagRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'user': 'str', + 'old_name': 'str', + 'new_name': 'str' + } + + attribute_map = { + 'user': 'user', + 'old_name': 'oldName', + 'new_name': 'newName' + } + + def __init__(self, user=None, old_name=None, new_name=None): # noqa: E501 + """V1RenameTagRequest - a model defined in Swagger""" # noqa: E501 + self._user = None + self._old_name = None + self._new_name = None + self.discriminator = None + if user is not None: + self.user = user + if old_name is not None: + self.old_name = old_name + if new_name is not None: + self.new_name = new_name + + @property + def user(self): + """Gets the user of this V1RenameTagRequest. # noqa: E501 + + + :return: The user of this V1RenameTagRequest. # noqa: E501 + :rtype: str + """ + return self._user + + @user.setter + def user(self, user): + """Sets the user of this V1RenameTagRequest. + + + :param user: The user of this V1RenameTagRequest. # noqa: E501 + :type: str + """ + + self._user = user + + @property + def old_name(self): + """Gets the old_name of this V1RenameTagRequest. # noqa: E501 + + + :return: The old_name of this V1RenameTagRequest. # noqa: E501 + :rtype: str + """ + return self._old_name + + @old_name.setter + def old_name(self, old_name): + """Sets the old_name of this V1RenameTagRequest. + + + :param old_name: The old_name of this V1RenameTagRequest. # noqa: E501 + :type: str + """ + + self._old_name = old_name + + @property + def new_name(self): + """Gets the new_name of this V1RenameTagRequest. # noqa: E501 + + + :return: The new_name of this V1RenameTagRequest. # noqa: E501 + :rtype: str + """ + return self._new_name + + @new_name.setter + def new_name(self, new_name): + """Sets the new_name of this V1RenameTagRequest. + + + :param new_name: The new_name of this V1RenameTagRequest. # noqa: E501 + :type: str + """ + + self._new_name = new_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1RenameTagRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RenameTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_resource.py b/memos/models/v1_resource.py new file mode 100644 index 0000000..976fadb --- /dev/null +++ b/memos/models/v1_resource.py @@ -0,0 +1,322 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Resource(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'uid': 'str', + 'create_time': 'datetime', + 'filename': 'str', + 'content': 'str', + 'external_link': 'str', + 'type': 'str', + 'size': 'str', + 'memo': 'str' + } + + attribute_map = { + 'name': 'name', + 'uid': 'uid', + 'create_time': 'createTime', + 'filename': 'filename', + 'content': 'content', + 'external_link': 'externalLink', + 'type': 'type', + 'size': 'size', + 'memo': 'memo' + } + + def __init__(self, name=None, uid=None, create_time=None, filename=None, content=None, external_link=None, type=None, size=None, memo=None): # noqa: E501 + """V1Resource - a model defined in Swagger""" # noqa: E501 + self._name = None + self._uid = None + self._create_time = None + self._filename = None + self._content = None + self._external_link = None + self._type = None + self._size = None + self._memo = None + self.discriminator = None + if name is not None: + self.name = name + if uid is not None: + self.uid = uid + if create_time is not None: + self.create_time = create_time + if filename is not None: + self.filename = filename + if content is not None: + self.content = content + if external_link is not None: + self.external_link = external_link + if type is not None: + self.type = type + if size is not None: + self.size = size + if memo is not None: + self.memo = memo + + @property + def name(self): + """Gets the name of this V1Resource. # noqa: E501 + + The name of the resource. Format: resources/{id} id is the system generated unique identifier. # noqa: E501 + + :return: The name of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Resource. + + The name of the resource. Format: resources/{id} id is the system generated unique identifier. # noqa: E501 + + :param name: The name of this V1Resource. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def uid(self): + """Gets the uid of this V1Resource. # noqa: E501 + + The user defined id of the resource. # noqa: E501 + + :return: The uid of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1Resource. + + The user defined id of the resource. # noqa: E501 + + :param uid: The uid of this V1Resource. # noqa: E501 + :type: str + """ + + self._uid = uid + + @property + def create_time(self): + """Gets the create_time of this V1Resource. # noqa: E501 + + + :return: The create_time of this V1Resource. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1Resource. + + + :param create_time: The create_time of this V1Resource. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def filename(self): + """Gets the filename of this V1Resource. # noqa: E501 + + + :return: The filename of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this V1Resource. + + + :param filename: The filename of this V1Resource. # noqa: E501 + :type: str + """ + + self._filename = filename + + @property + def content(self): + """Gets the content of this V1Resource. # noqa: E501 + + + :return: The content of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1Resource. + + + :param content: The content of this V1Resource. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def external_link(self): + """Gets the external_link of this V1Resource. # noqa: E501 + + + :return: The external_link of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._external_link + + @external_link.setter + def external_link(self, external_link): + """Sets the external_link of this V1Resource. + + + :param external_link: The external_link of this V1Resource. # noqa: E501 + :type: str + """ + + self._external_link = external_link + + @property + def type(self): + """Gets the type of this V1Resource. # noqa: E501 + + + :return: The type of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1Resource. + + + :param type: The type of this V1Resource. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def size(self): + """Gets the size of this V1Resource. # noqa: E501 + + + :return: The size of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this V1Resource. + + + :param size: The size of this V1Resource. # noqa: E501 + :type: str + """ + + self._size = size + + @property + def memo(self): + """Gets the memo of this V1Resource. # noqa: E501 + + + :return: The memo of this V1Resource. # noqa: E501 + :rtype: str + """ + return self._memo + + @memo.setter + def memo(self, memo): + """Sets the memo of this V1Resource. + + + :param memo: The memo of this V1Resource. # noqa: E501 + :type: str + """ + + self._memo = memo + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Resource, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Resource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_resource_name_body.py b/memos/models/v1_resource_name_body.py new file mode 100644 index 0000000..ffa20f2 --- /dev/null +++ b/memos/models/v1_resource_name_body.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1ResourceNameBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'uid': 'str', + 'create_time': 'datetime', + 'filename': 'str', + 'content': 'str', + 'external_link': 'str', + 'type': 'str', + 'size': 'str', + 'memo': 'str' + } + + attribute_map = { + 'uid': 'uid', + 'create_time': 'createTime', + 'filename': 'filename', + 'content': 'content', + 'external_link': 'externalLink', + 'type': 'type', + 'size': 'size', + 'memo': 'memo' + } + + def __init__(self, uid=None, create_time=None, filename=None, content=None, external_link=None, type=None, size=None, memo=None): # noqa: E501 + """V1ResourceNameBody - a model defined in Swagger""" # noqa: E501 + self._uid = None + self._create_time = None + self._filename = None + self._content = None + self._external_link = None + self._type = None + self._size = None + self._memo = None + self.discriminator = None + if uid is not None: + self.uid = uid + if create_time is not None: + self.create_time = create_time + if filename is not None: + self.filename = filename + if content is not None: + self.content = content + if external_link is not None: + self.external_link = external_link + if type is not None: + self.type = type + if size is not None: + self.size = size + if memo is not None: + self.memo = memo + + @property + def uid(self): + """Gets the uid of this V1ResourceNameBody. # noqa: E501 + + The user defined id of the resource. # noqa: E501 + + :return: The uid of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this V1ResourceNameBody. + + The user defined id of the resource. # noqa: E501 + + :param uid: The uid of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._uid = uid + + @property + def create_time(self): + """Gets the create_time of this V1ResourceNameBody. # noqa: E501 + + + :return: The create_time of this V1ResourceNameBody. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1ResourceNameBody. + + + :param create_time: The create_time of this V1ResourceNameBody. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def filename(self): + """Gets the filename of this V1ResourceNameBody. # noqa: E501 + + + :return: The filename of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this V1ResourceNameBody. + + + :param filename: The filename of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._filename = filename + + @property + def content(self): + """Gets the content of this V1ResourceNameBody. # noqa: E501 + + + :return: The content of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1ResourceNameBody. + + + :param content: The content of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._content = content + + @property + def external_link(self): + """Gets the external_link of this V1ResourceNameBody. # noqa: E501 + + + :return: The external_link of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._external_link + + @external_link.setter + def external_link(self, external_link): + """Sets the external_link of this V1ResourceNameBody. + + + :param external_link: The external_link of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._external_link = external_link + + @property + def type(self): + """Gets the type of this V1ResourceNameBody. # noqa: E501 + + + :return: The type of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this V1ResourceNameBody. + + + :param type: The type of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def size(self): + """Gets the size of this V1ResourceNameBody. # noqa: E501 + + + :return: The size of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this V1ResourceNameBody. + + + :param size: The size of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._size = size + + @property + def memo(self): + """Gets the memo of this V1ResourceNameBody. # noqa: E501 + + + :return: The memo of this V1ResourceNameBody. # noqa: E501 + :rtype: str + """ + return self._memo + + @memo.setter + def memo(self, memo): + """Sets the memo of this V1ResourceNameBody. + + + :param memo: The memo of this V1ResourceNameBody. # noqa: E501 + :type: str + """ + + self._memo = memo + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1ResourceNameBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1ResourceNameBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_restore_markdown_request.py b/memos/models/v1_restore_markdown_request.py new file mode 100644 index 0000000..a2eb355 --- /dev/null +++ b/memos/models/v1_restore_markdown_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1RestoreMarkdownRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'nodes': 'list[V1Node]' + } + + attribute_map = { + 'nodes': 'nodes' + } + + def __init__(self, nodes=None): # noqa: E501 + """V1RestoreMarkdownRequest - a model defined in Swagger""" # noqa: E501 + self._nodes = None + self.discriminator = None + if nodes is not None: + self.nodes = nodes + + @property + def nodes(self): + """Gets the nodes of this V1RestoreMarkdownRequest. # noqa: E501 + + + :return: The nodes of this V1RestoreMarkdownRequest. # noqa: E501 + :rtype: list[V1Node] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """Sets the nodes of this V1RestoreMarkdownRequest. + + + :param nodes: The nodes of this V1RestoreMarkdownRequest. # noqa: E501 + :type: list[V1Node] + """ + + self._nodes = nodes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1RestoreMarkdownRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RestoreMarkdownRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_restore_markdown_response.py b/memos/models/v1_restore_markdown_response.py new file mode 100644 index 0000000..7f8858f --- /dev/null +++ b/memos/models/v1_restore_markdown_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1RestoreMarkdownResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'markdown': 'str' + } + + attribute_map = { + 'markdown': 'markdown' + } + + def __init__(self, markdown=None): # noqa: E501 + """V1RestoreMarkdownResponse - a model defined in Swagger""" # noqa: E501 + self._markdown = None + self.discriminator = None + if markdown is not None: + self.markdown = markdown + + @property + def markdown(self): + """Gets the markdown of this V1RestoreMarkdownResponse. # noqa: E501 + + + :return: The markdown of this V1RestoreMarkdownResponse. # noqa: E501 + :rtype: str + """ + return self._markdown + + @markdown.setter + def markdown(self, markdown): + """Sets the markdown of this V1RestoreMarkdownResponse. + + + :param markdown: The markdown of this V1RestoreMarkdownResponse. # noqa: E501 + :type: str + """ + + self._markdown = markdown + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1RestoreMarkdownResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RestoreMarkdownResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_row_status.py b/memos/models/v1_row_status.py new file mode 100644 index 0000000..0bb30be --- /dev/null +++ b/memos/models/v1_row_status.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1RowStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ROW_STATUS_UNSPECIFIED = "ROW_STATUS_UNSPECIFIED" + ACTIVE = "ACTIVE" + ARCHIVED = "ARCHIVED" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1RowStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1RowStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1RowStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_search_memos_response.py b/memos/models/v1_search_memos_response.py new file mode 100644 index 0000000..414d597 --- /dev/null +++ b/memos/models/v1_search_memos_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SearchMemosResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memos': 'list[V1Memo]' + } + + attribute_map = { + 'memos': 'memos' + } + + def __init__(self, memos=None): # noqa: E501 + """V1SearchMemosResponse - a model defined in Swagger""" # noqa: E501 + self._memos = None + self.discriminator = None + if memos is not None: + self.memos = memos + + @property + def memos(self): + """Gets the memos of this V1SearchMemosResponse. # noqa: E501 + + + :return: The memos of this V1SearchMemosResponse. # noqa: E501 + :rtype: list[V1Memo] + """ + return self._memos + + @memos.setter + def memos(self, memos): + """Sets the memos of this V1SearchMemosResponse. + + + :param memos: The memos of this V1SearchMemosResponse. # noqa: E501 + :type: list[V1Memo] + """ + + self._memos = memos + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SearchMemosResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SearchMemosResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_search_resources_response.py b/memos/models/v1_search_resources_response.py new file mode 100644 index 0000000..636b4cd --- /dev/null +++ b/memos/models/v1_search_resources_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SearchResourcesResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resources': 'list[V1Resource]' + } + + attribute_map = { + 'resources': 'resources' + } + + def __init__(self, resources=None): # noqa: E501 + """V1SearchResourcesResponse - a model defined in Swagger""" # noqa: E501 + self._resources = None + self.discriminator = None + if resources is not None: + self.resources = resources + + @property + def resources(self): + """Gets the resources of this V1SearchResourcesResponse. # noqa: E501 + + + :return: The resources of this V1SearchResourcesResponse. # noqa: E501 + :rtype: list[V1Resource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this V1SearchResourcesResponse. + + + :param resources: The resources of this V1SearchResourcesResponse. # noqa: E501 + :type: list[V1Resource] + """ + + self._resources = resources + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SearchResourcesResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SearchResourcesResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_search_users_response.py b/memos/models/v1_search_users_response.py new file mode 100644 index 0000000..a3e4d72 --- /dev/null +++ b/memos/models/v1_search_users_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SearchUsersResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'users': 'list[V1User]' + } + + attribute_map = { + 'users': 'users' + } + + def __init__(self, users=None): # noqa: E501 + """V1SearchUsersResponse - a model defined in Swagger""" # noqa: E501 + self._users = None + self.discriminator = None + if users is not None: + self.users = users + + @property + def users(self): + """Gets the users of this V1SearchUsersResponse. # noqa: E501 + + + :return: The users of this V1SearchUsersResponse. # noqa: E501 + :rtype: list[V1User] + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this V1SearchUsersResponse. + + + :param users: The users of this V1SearchUsersResponse. # noqa: E501 + :type: list[V1User] + """ + + self._users = users + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SearchUsersResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SearchUsersResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_setting_name_body.py b/memos/models/v1_setting_name_body.py new file mode 100644 index 0000000..794042b --- /dev/null +++ b/memos/models/v1_setting_name_body.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SettingNameBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'locale': 'str', + 'appearance': 'str', + 'memo_visibility': 'str' + } + + attribute_map = { + 'locale': 'locale', + 'appearance': 'appearance', + 'memo_visibility': 'memoVisibility' + } + + def __init__(self, locale=None, appearance=None, memo_visibility=None): # noqa: E501 + """V1SettingNameBody - a model defined in Swagger""" # noqa: E501 + self._locale = None + self._appearance = None + self._memo_visibility = None + self.discriminator = None + if locale is not None: + self.locale = locale + if appearance is not None: + self.appearance = appearance + if memo_visibility is not None: + self.memo_visibility = memo_visibility + + @property + def locale(self): + """Gets the locale of this V1SettingNameBody. # noqa: E501 + + The preferred locale of the user. # noqa: E501 + + :return: The locale of this V1SettingNameBody. # noqa: E501 + :rtype: str + """ + return self._locale + + @locale.setter + def locale(self, locale): + """Sets the locale of this V1SettingNameBody. + + The preferred locale of the user. # noqa: E501 + + :param locale: The locale of this V1SettingNameBody. # noqa: E501 + :type: str + """ + + self._locale = locale + + @property + def appearance(self): + """Gets the appearance of this V1SettingNameBody. # noqa: E501 + + The preferred appearance of the user. # noqa: E501 + + :return: The appearance of this V1SettingNameBody. # noqa: E501 + :rtype: str + """ + return self._appearance + + @appearance.setter + def appearance(self, appearance): + """Sets the appearance of this V1SettingNameBody. + + The preferred appearance of the user. # noqa: E501 + + :param appearance: The appearance of this V1SettingNameBody. # noqa: E501 + :type: str + """ + + self._appearance = appearance + + @property + def memo_visibility(self): + """Gets the memo_visibility of this V1SettingNameBody. # noqa: E501 + + The default visibility of the memo. # noqa: E501 + + :return: The memo_visibility of this V1SettingNameBody. # noqa: E501 + :rtype: str + """ + return self._memo_visibility + + @memo_visibility.setter + def memo_visibility(self, memo_visibility): + """Sets the memo_visibility of this V1SettingNameBody. + + The default visibility of the memo. # noqa: E501 + + :param memo_visibility: The memo_visibility of this V1SettingNameBody. # noqa: E501 + :type: str + """ + + self._memo_visibility = memo_visibility + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SettingNameBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SettingNameBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_spoiler_node.py b/memos/models/v1_spoiler_node.py new file mode 100644 index 0000000..9fcee9d --- /dev/null +++ b/memos/models/v1_spoiler_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SpoilerNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1SpoilerNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1SpoilerNode. # noqa: E501 + + + :return: The content of this V1SpoilerNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1SpoilerNode. + + + :param content: The content of this V1SpoilerNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SpoilerNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SpoilerNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_strikethrough_node.py b/memos/models/v1_strikethrough_node.py new file mode 100644 index 0000000..5f45866 --- /dev/null +++ b/memos/models/v1_strikethrough_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1StrikethroughNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1StrikethroughNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1StrikethroughNode. # noqa: E501 + + + :return: The content of this V1StrikethroughNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1StrikethroughNode. + + + :param content: The content of this V1StrikethroughNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1StrikethroughNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1StrikethroughNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_subscript_node.py b/memos/models/v1_subscript_node.py new file mode 100644 index 0000000..ce1cd35 --- /dev/null +++ b/memos/models/v1_subscript_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SubscriptNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1SubscriptNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1SubscriptNode. # noqa: E501 + + + :return: The content of this V1SubscriptNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1SubscriptNode. + + + :param content: The content of this V1SubscriptNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SubscriptNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SubscriptNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_superscript_node.py b/memos/models/v1_superscript_node.py new file mode 100644 index 0000000..fb87925 --- /dev/null +++ b/memos/models/v1_superscript_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1SuperscriptNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1SuperscriptNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1SuperscriptNode. # noqa: E501 + + + :return: The content of this V1SuperscriptNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1SuperscriptNode. + + + :param content: The content of this V1SuperscriptNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1SuperscriptNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1SuperscriptNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_table_node.py b/memos/models/v1_table_node.py new file mode 100644 index 0000000..9bccff5 --- /dev/null +++ b/memos/models/v1_table_node.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1TableNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'header': 'list[str]', + 'delimiter': 'list[str]', + 'rows': 'list[TableNodeRow]' + } + + attribute_map = { + 'header': 'header', + 'delimiter': 'delimiter', + 'rows': 'rows' + } + + def __init__(self, header=None, delimiter=None, rows=None): # noqa: E501 + """V1TableNode - a model defined in Swagger""" # noqa: E501 + self._header = None + self._delimiter = None + self._rows = None + self.discriminator = None + if header is not None: + self.header = header + if delimiter is not None: + self.delimiter = delimiter + if rows is not None: + self.rows = rows + + @property + def header(self): + """Gets the header of this V1TableNode. # noqa: E501 + + + :return: The header of this V1TableNode. # noqa: E501 + :rtype: list[str] + """ + return self._header + + @header.setter + def header(self, header): + """Sets the header of this V1TableNode. + + + :param header: The header of this V1TableNode. # noqa: E501 + :type: list[str] + """ + + self._header = header + + @property + def delimiter(self): + """Gets the delimiter of this V1TableNode. # noqa: E501 + + + :return: The delimiter of this V1TableNode. # noqa: E501 + :rtype: list[str] + """ + return self._delimiter + + @delimiter.setter + def delimiter(self, delimiter): + """Sets the delimiter of this V1TableNode. + + + :param delimiter: The delimiter of this V1TableNode. # noqa: E501 + :type: list[str] + """ + + self._delimiter = delimiter + + @property + def rows(self): + """Gets the rows of this V1TableNode. # noqa: E501 + + + :return: The rows of this V1TableNode. # noqa: E501 + :rtype: list[TableNodeRow] + """ + return self._rows + + @rows.setter + def rows(self, rows): + """Sets the rows of this V1TableNode. + + + :param rows: The rows of this V1TableNode. # noqa: E501 + :type: list[TableNodeRow] + """ + + self._rows = rows + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1TableNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1TableNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_tag.py b/memos/models/v1_tag.py new file mode 100644 index 0000000..0c4a198 --- /dev/null +++ b/memos/models/v1_tag.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Tag(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'creator': 'str' + } + + attribute_map = { + 'name': 'name', + 'creator': 'creator' + } + + def __init__(self, name=None, creator=None): # noqa: E501 + """V1Tag - a model defined in Swagger""" # noqa: E501 + self._name = None + self._creator = None + self.discriminator = None + if name is not None: + self.name = name + if creator is not None: + self.creator = creator + + @property + def name(self): + """Gets the name of this V1Tag. # noqa: E501 + + + :return: The name of this V1Tag. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Tag. + + + :param name: The name of this V1Tag. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def creator(self): + """Gets the creator of this V1Tag. # noqa: E501 + + + :return: The creator of this V1Tag. # noqa: E501 + :rtype: str + """ + return self._creator + + @creator.setter + def creator(self, creator): + """Sets the creator of this V1Tag. + + + :param creator: The creator of this V1Tag. # noqa: E501 + :type: str + """ + + self._creator = creator + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Tag, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Tag): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_tag_node.py b/memos/models/v1_tag_node.py new file mode 100644 index 0000000..b74563c --- /dev/null +++ b/memos/models/v1_tag_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1TagNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1TagNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1TagNode. # noqa: E501 + + + :return: The content of this V1TagNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1TagNode. + + + :param content: The content of this V1TagNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1TagNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1TagNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_task_list_node.py b/memos/models/v1_task_list_node.py new file mode 100644 index 0000000..c2b1e57 --- /dev/null +++ b/memos/models/v1_task_list_node.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1TaskListNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str', + 'indent': 'int', + 'complete': 'bool', + 'children': 'list[V1Node]' + } + + attribute_map = { + 'symbol': 'symbol', + 'indent': 'indent', + 'complete': 'complete', + 'children': 'children' + } + + def __init__(self, symbol=None, indent=None, complete=None, children=None): # noqa: E501 + """V1TaskListNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self._indent = None + self._complete = None + self._children = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + if indent is not None: + self.indent = indent + if complete is not None: + self.complete = complete + if children is not None: + self.children = children + + @property + def symbol(self): + """Gets the symbol of this V1TaskListNode. # noqa: E501 + + + :return: The symbol of this V1TaskListNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1TaskListNode. + + + :param symbol: The symbol of this V1TaskListNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + @property + def indent(self): + """Gets the indent of this V1TaskListNode. # noqa: E501 + + + :return: The indent of this V1TaskListNode. # noqa: E501 + :rtype: int + """ + return self._indent + + @indent.setter + def indent(self, indent): + """Sets the indent of this V1TaskListNode. + + + :param indent: The indent of this V1TaskListNode. # noqa: E501 + :type: int + """ + + self._indent = indent + + @property + def complete(self): + """Gets the complete of this V1TaskListNode. # noqa: E501 + + + :return: The complete of this V1TaskListNode. # noqa: E501 + :rtype: bool + """ + return self._complete + + @complete.setter + def complete(self, complete): + """Sets the complete of this V1TaskListNode. + + + :param complete: The complete of this V1TaskListNode. # noqa: E501 + :type: bool + """ + + self._complete = complete + + @property + def children(self): + """Gets the children of this V1TaskListNode. # noqa: E501 + + + :return: The children of this V1TaskListNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1TaskListNode. + + + :param children: The children of this V1TaskListNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1TaskListNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1TaskListNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_text_node.py b/memos/models/v1_text_node.py new file mode 100644 index 0000000..1c24a27 --- /dev/null +++ b/memos/models/v1_text_node.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1TextNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'content': 'str' + } + + attribute_map = { + 'content': 'content' + } + + def __init__(self, content=None): # noqa: E501 + """V1TextNode - a model defined in Swagger""" # noqa: E501 + self._content = None + self.discriminator = None + if content is not None: + self.content = content + + @property + def content(self): + """Gets the content of this V1TextNode. # noqa: E501 + + + :return: The content of this V1TextNode. # noqa: E501 + :rtype: str + """ + return self._content + + @content.setter + def content(self, content): + """Sets the content of this V1TextNode. + + + :param content: The content of this V1TextNode. # noqa: E501 + :type: str + """ + + self._content = content + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1TextNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1TextNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_unordered_list_node.py b/memos/models/v1_unordered_list_node.py new file mode 100644 index 0000000..2555a0d --- /dev/null +++ b/memos/models/v1_unordered_list_node.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1UnorderedListNode(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'symbol': 'str', + 'indent': 'int', + 'children': 'list[V1Node]' + } + + attribute_map = { + 'symbol': 'symbol', + 'indent': 'indent', + 'children': 'children' + } + + def __init__(self, symbol=None, indent=None, children=None): # noqa: E501 + """V1UnorderedListNode - a model defined in Swagger""" # noqa: E501 + self._symbol = None + self._indent = None + self._children = None + self.discriminator = None + if symbol is not None: + self.symbol = symbol + if indent is not None: + self.indent = indent + if children is not None: + self.children = children + + @property + def symbol(self): + """Gets the symbol of this V1UnorderedListNode. # noqa: E501 + + + :return: The symbol of this V1UnorderedListNode. # noqa: E501 + :rtype: str + """ + return self._symbol + + @symbol.setter + def symbol(self, symbol): + """Sets the symbol of this V1UnorderedListNode. + + + :param symbol: The symbol of this V1UnorderedListNode. # noqa: E501 + :type: str + """ + + self._symbol = symbol + + @property + def indent(self): + """Gets the indent of this V1UnorderedListNode. # noqa: E501 + + + :return: The indent of this V1UnorderedListNode. # noqa: E501 + :rtype: int + """ + return self._indent + + @indent.setter + def indent(self, indent): + """Sets the indent of this V1UnorderedListNode. + + + :param indent: The indent of this V1UnorderedListNode. # noqa: E501 + :type: int + """ + + self._indent = indent + + @property + def children(self): + """Gets the children of this V1UnorderedListNode. # noqa: E501 + + + :return: The children of this V1UnorderedListNode. # noqa: E501 + :rtype: list[V1Node] + """ + return self._children + + @children.setter + def children(self, children): + """Sets the children of this V1UnorderedListNode. + + + :param children: The children of this V1UnorderedListNode. # noqa: E501 + :type: list[V1Node] + """ + + self._children = children + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1UnorderedListNode, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1UnorderedListNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_upsert_tag_request.py b/memos/models/v1_upsert_tag_request.py new file mode 100644 index 0000000..bfc5e70 --- /dev/null +++ b/memos/models/v1_upsert_tag_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1UpsertTagRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """V1UpsertTagRequest - a model defined in Swagger""" # noqa: E501 + self._name = None + self.discriminator = None + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this V1UpsertTagRequest. # noqa: E501 + + + :return: The name of this V1UpsertTagRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1UpsertTagRequest. + + + :param name: The name of this V1UpsertTagRequest. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1UpsertTagRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1UpsertTagRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_user.py b/memos/models/v1_user.py new file mode 100644 index 0000000..3e94c20 --- /dev/null +++ b/memos/models/v1_user.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1User(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'id': 'int', + 'role': 'UserRole', + 'username': 'str', + 'email': 'str', + 'nickname': 'str', + 'avatar_url': 'str', + 'description': 'str', + 'password': 'str', + 'row_status': 'V1RowStatus', + 'create_time': 'datetime', + 'update_time': 'datetime' + } + + attribute_map = { + 'name': 'name', + 'id': 'id', + 'role': 'role', + 'username': 'username', + 'email': 'email', + 'nickname': 'nickname', + 'avatar_url': 'avatarUrl', + 'description': 'description', + 'password': 'password', + 'row_status': 'rowStatus', + 'create_time': 'createTime', + 'update_time': 'updateTime' + } + + def __init__(self, name=None, id=None, role=None, username=None, email=None, nickname=None, avatar_url=None, description=None, password=None, row_status=None, create_time=None, update_time=None): # noqa: E501 + """V1User - a model defined in Swagger""" # noqa: E501 + self._name = None + self._id = None + self._role = None + self._username = None + self._email = None + self._nickname = None + self._avatar_url = None + self._description = None + self._password = None + self._row_status = None + self._create_time = None + self._update_time = None + self.discriminator = None + if name is not None: + self.name = name + if id is not None: + self.id = id + if role is not None: + self.role = role + if username is not None: + self.username = username + if email is not None: + self.email = email + if nickname is not None: + self.nickname = nickname + if avatar_url is not None: + self.avatar_url = avatar_url + if description is not None: + self.description = description + if password is not None: + self.password = password + if row_status is not None: + self.row_status = row_status + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def name(self): + """Gets the name of this V1User. # noqa: E501 + + + :return: The name of this V1User. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1User. + + + :param name: The name of this V1User. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def id(self): + """Gets the id of this V1User. # noqa: E501 + + The system generated uid of the user. # noqa: E501 + + :return: The id of this V1User. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1User. + + The system generated uid of the user. # noqa: E501 + + :param id: The id of this V1User. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def role(self): + """Gets the role of this V1User. # noqa: E501 + + + :return: The role of this V1User. # noqa: E501 + :rtype: UserRole + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this V1User. + + + :param role: The role of this V1User. # noqa: E501 + :type: UserRole + """ + + self._role = role + + @property + def username(self): + """Gets the username of this V1User. # noqa: E501 + + + :return: The username of this V1User. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this V1User. + + + :param username: The username of this V1User. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def email(self): + """Gets the email of this V1User. # noqa: E501 + + + :return: The email of this V1User. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this V1User. + + + :param email: The email of this V1User. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def nickname(self): + """Gets the nickname of this V1User. # noqa: E501 + + + :return: The nickname of this V1User. # noqa: E501 + :rtype: str + """ + return self._nickname + + @nickname.setter + def nickname(self, nickname): + """Sets the nickname of this V1User. + + + :param nickname: The nickname of this V1User. # noqa: E501 + :type: str + """ + + self._nickname = nickname + + @property + def avatar_url(self): + """Gets the avatar_url of this V1User. # noqa: E501 + + + :return: The avatar_url of this V1User. # noqa: E501 + :rtype: str + """ + return self._avatar_url + + @avatar_url.setter + def avatar_url(self, avatar_url): + """Sets the avatar_url of this V1User. + + + :param avatar_url: The avatar_url of this V1User. # noqa: E501 + :type: str + """ + + self._avatar_url = avatar_url + + @property + def description(self): + """Gets the description of this V1User. # noqa: E501 + + + :return: The description of this V1User. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this V1User. + + + :param description: The description of this V1User. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def password(self): + """Gets the password of this V1User. # noqa: E501 + + + :return: The password of this V1User. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this V1User. + + + :param password: The password of this V1User. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def row_status(self): + """Gets the row_status of this V1User. # noqa: E501 + + + :return: The row_status of this V1User. # noqa: E501 + :rtype: V1RowStatus + """ + return self._row_status + + @row_status.setter + def row_status(self, row_status): + """Sets the row_status of this V1User. + + + :param row_status: The row_status of this V1User. # noqa: E501 + :type: V1RowStatus + """ + + self._row_status = row_status + + @property + def create_time(self): + """Gets the create_time of this V1User. # noqa: E501 + + + :return: The create_time of this V1User. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1User. + + + :param create_time: The create_time of this V1User. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this V1User. # noqa: E501 + + + :return: The update_time of this V1User. # noqa: E501 + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this V1User. + + + :param update_time: The update_time of this V1User. # noqa: E501 + :type: datetime + """ + + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1User, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1User): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_user_access_token.py b/memos/models/v1_user_access_token.py new file mode 100644 index 0000000..77b3cc0 --- /dev/null +++ b/memos/models/v1_user_access_token.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1UserAccessToken(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'access_token': 'str', + 'description': 'str', + 'issued_at': 'datetime', + 'expires_at': 'datetime' + } + + attribute_map = { + 'access_token': 'accessToken', + 'description': 'description', + 'issued_at': 'issuedAt', + 'expires_at': 'expiresAt' + } + + def __init__(self, access_token=None, description=None, issued_at=None, expires_at=None): # noqa: E501 + """V1UserAccessToken - a model defined in Swagger""" # noqa: E501 + self._access_token = None + self._description = None + self._issued_at = None + self._expires_at = None + self.discriminator = None + if access_token is not None: + self.access_token = access_token + if description is not None: + self.description = description + if issued_at is not None: + self.issued_at = issued_at + if expires_at is not None: + self.expires_at = expires_at + + @property + def access_token(self): + """Gets the access_token of this V1UserAccessToken. # noqa: E501 + + + :return: The access_token of this V1UserAccessToken. # noqa: E501 + :rtype: str + """ + return self._access_token + + @access_token.setter + def access_token(self, access_token): + """Sets the access_token of this V1UserAccessToken. + + + :param access_token: The access_token of this V1UserAccessToken. # noqa: E501 + :type: str + """ + + self._access_token = access_token + + @property + def description(self): + """Gets the description of this V1UserAccessToken. # noqa: E501 + + + :return: The description of this V1UserAccessToken. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this V1UserAccessToken. + + + :param description: The description of this V1UserAccessToken. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def issued_at(self): + """Gets the issued_at of this V1UserAccessToken. # noqa: E501 + + + :return: The issued_at of this V1UserAccessToken. # noqa: E501 + :rtype: datetime + """ + return self._issued_at + + @issued_at.setter + def issued_at(self, issued_at): + """Sets the issued_at of this V1UserAccessToken. + + + :param issued_at: The issued_at of this V1UserAccessToken. # noqa: E501 + :type: datetime + """ + + self._issued_at = issued_at + + @property + def expires_at(self): + """Gets the expires_at of this V1UserAccessToken. # noqa: E501 + + + :return: The expires_at of this V1UserAccessToken. # noqa: E501 + :rtype: datetime + """ + return self._expires_at + + @expires_at.setter + def expires_at(self, expires_at): + """Sets the expires_at of this V1UserAccessToken. + + + :param expires_at: The expires_at of this V1UserAccessToken. # noqa: E501 + :type: datetime + """ + + self._expires_at = expires_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1UserAccessToken, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1UserAccessToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_user_name_body.py b/memos/models/v1_user_name_body.py new file mode 100644 index 0000000..2290115 --- /dev/null +++ b/memos/models/v1_user_name_body.py @@ -0,0 +1,372 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1UserNameBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'role': 'UserRole', + 'username': 'str', + 'email': 'str', + 'nickname': 'str', + 'avatar_url': 'str', + 'description': 'str', + 'password': 'str', + 'row_status': 'V1RowStatus', + 'create_time': 'datetime', + 'update_time': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'role': 'role', + 'username': 'username', + 'email': 'email', + 'nickname': 'nickname', + 'avatar_url': 'avatarUrl', + 'description': 'description', + 'password': 'password', + 'row_status': 'rowStatus', + 'create_time': 'createTime', + 'update_time': 'updateTime' + } + + def __init__(self, id=None, role=None, username=None, email=None, nickname=None, avatar_url=None, description=None, password=None, row_status=None, create_time=None, update_time=None): # noqa: E501 + """V1UserNameBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._role = None + self._username = None + self._email = None + self._nickname = None + self._avatar_url = None + self._description = None + self._password = None + self._row_status = None + self._create_time = None + self._update_time = None + self.discriminator = None + if id is not None: + self.id = id + if role is not None: + self.role = role + if username is not None: + self.username = username + if email is not None: + self.email = email + if nickname is not None: + self.nickname = nickname + if avatar_url is not None: + self.avatar_url = avatar_url + if description is not None: + self.description = description + if password is not None: + self.password = password + if row_status is not None: + self.row_status = row_status + if create_time is not None: + self.create_time = create_time + if update_time is not None: + self.update_time = update_time + + @property + def id(self): + """Gets the id of this V1UserNameBody. # noqa: E501 + + The system generated uid of the user. # noqa: E501 + + :return: The id of this V1UserNameBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1UserNameBody. + + The system generated uid of the user. # noqa: E501 + + :param id: The id of this V1UserNameBody. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def role(self): + """Gets the role of this V1UserNameBody. # noqa: E501 + + + :return: The role of this V1UserNameBody. # noqa: E501 + :rtype: UserRole + """ + return self._role + + @role.setter + def role(self, role): + """Sets the role of this V1UserNameBody. + + + :param role: The role of this V1UserNameBody. # noqa: E501 + :type: UserRole + """ + + self._role = role + + @property + def username(self): + """Gets the username of this V1UserNameBody. # noqa: E501 + + + :return: The username of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this V1UserNameBody. + + + :param username: The username of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def email(self): + """Gets the email of this V1UserNameBody. # noqa: E501 + + + :return: The email of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this V1UserNameBody. + + + :param email: The email of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def nickname(self): + """Gets the nickname of this V1UserNameBody. # noqa: E501 + + + :return: The nickname of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._nickname + + @nickname.setter + def nickname(self, nickname): + """Sets the nickname of this V1UserNameBody. + + + :param nickname: The nickname of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._nickname = nickname + + @property + def avatar_url(self): + """Gets the avatar_url of this V1UserNameBody. # noqa: E501 + + + :return: The avatar_url of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._avatar_url + + @avatar_url.setter + def avatar_url(self, avatar_url): + """Sets the avatar_url of this V1UserNameBody. + + + :param avatar_url: The avatar_url of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._avatar_url = avatar_url + + @property + def description(self): + """Gets the description of this V1UserNameBody. # noqa: E501 + + + :return: The description of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this V1UserNameBody. + + + :param description: The description of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def password(self): + """Gets the password of this V1UserNameBody. # noqa: E501 + + + :return: The password of this V1UserNameBody. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this V1UserNameBody. + + + :param password: The password of this V1UserNameBody. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def row_status(self): + """Gets the row_status of this V1UserNameBody. # noqa: E501 + + + :return: The row_status of this V1UserNameBody. # noqa: E501 + :rtype: V1RowStatus + """ + return self._row_status + + @row_status.setter + def row_status(self, row_status): + """Sets the row_status of this V1UserNameBody. + + + :param row_status: The row_status of this V1UserNameBody. # noqa: E501 + :type: V1RowStatus + """ + + self._row_status = row_status + + @property + def create_time(self): + """Gets the create_time of this V1UserNameBody. # noqa: E501 + + + :return: The create_time of this V1UserNameBody. # noqa: E501 + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """Sets the create_time of this V1UserNameBody. + + + :param create_time: The create_time of this V1UserNameBody. # noqa: E501 + :type: datetime + """ + + self._create_time = create_time + + @property + def update_time(self): + """Gets the update_time of this V1UserNameBody. # noqa: E501 + + + :return: The update_time of this V1UserNameBody. # noqa: E501 + :rtype: datetime + """ + return self._update_time + + @update_time.setter + def update_time(self, update_time): + """Sets the update_time of this V1UserNameBody. + + + :param update_time: The update_time of this V1UserNameBody. # noqa: E501 + :type: datetime + """ + + self._update_time = update_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1UserNameBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1UserNameBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_visibility.py b/memos/models/v1_visibility.py new file mode 100644 index 0000000..97c6808 --- /dev/null +++ b/memos/models/v1_visibility.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Visibility(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + VISIBILITY_UNSPECIFIED = "VISIBILITY_UNSPECIFIED" + PRIVATE = "PRIVATE" + PROTECTED = "PROTECTED" + PUBLIC = "PUBLIC" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """V1Visibility - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Visibility, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Visibility): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_webhook.py b/memos/models/v1_webhook.py new file mode 100644 index 0000000..e256398 --- /dev/null +++ b/memos/models/v1_webhook.py @@ -0,0 +1,266 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1Webhook(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'creator_id': 'int', + 'created_time': 'datetime', + 'updated_time': 'datetime', + 'row_status': 'V1RowStatus', + 'name': 'str', + 'url': 'str' + } + + attribute_map = { + 'id': 'id', + 'creator_id': 'creatorId', + 'created_time': 'createdTime', + 'updated_time': 'updatedTime', + 'row_status': 'rowStatus', + 'name': 'name', + 'url': 'url' + } + + def __init__(self, id=None, creator_id=None, created_time=None, updated_time=None, row_status=None, name=None, url=None): # noqa: E501 + """V1Webhook - a model defined in Swagger""" # noqa: E501 + self._id = None + self._creator_id = None + self._created_time = None + self._updated_time = None + self._row_status = None + self._name = None + self._url = None + self.discriminator = None + if id is not None: + self.id = id + if creator_id is not None: + self.creator_id = creator_id + if created_time is not None: + self.created_time = created_time + if updated_time is not None: + self.updated_time = updated_time + if row_status is not None: + self.row_status = row_status + if name is not None: + self.name = name + if url is not None: + self.url = url + + @property + def id(self): + """Gets the id of this V1Webhook. # noqa: E501 + + + :return: The id of this V1Webhook. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this V1Webhook. + + + :param id: The id of this V1Webhook. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def creator_id(self): + """Gets the creator_id of this V1Webhook. # noqa: E501 + + + :return: The creator_id of this V1Webhook. # noqa: E501 + :rtype: int + """ + return self._creator_id + + @creator_id.setter + def creator_id(self, creator_id): + """Sets the creator_id of this V1Webhook. + + + :param creator_id: The creator_id of this V1Webhook. # noqa: E501 + :type: int + """ + + self._creator_id = creator_id + + @property + def created_time(self): + """Gets the created_time of this V1Webhook. # noqa: E501 + + + :return: The created_time of this V1Webhook. # noqa: E501 + :rtype: datetime + """ + return self._created_time + + @created_time.setter + def created_time(self, created_time): + """Sets the created_time of this V1Webhook. + + + :param created_time: The created_time of this V1Webhook. # noqa: E501 + :type: datetime + """ + + self._created_time = created_time + + @property + def updated_time(self): + """Gets the updated_time of this V1Webhook. # noqa: E501 + + + :return: The updated_time of this V1Webhook. # noqa: E501 + :rtype: datetime + """ + return self._updated_time + + @updated_time.setter + def updated_time(self, updated_time): + """Sets the updated_time of this V1Webhook. + + + :param updated_time: The updated_time of this V1Webhook. # noqa: E501 + :type: datetime + """ + + self._updated_time = updated_time + + @property + def row_status(self): + """Gets the row_status of this V1Webhook. # noqa: E501 + + + :return: The row_status of this V1Webhook. # noqa: E501 + :rtype: V1RowStatus + """ + return self._row_status + + @row_status.setter + def row_status(self, row_status): + """Sets the row_status of this V1Webhook. + + + :param row_status: The row_status of this V1Webhook. # noqa: E501 + :type: V1RowStatus + """ + + self._row_status = row_status + + @property + def name(self): + """Gets the name of this V1Webhook. # noqa: E501 + + + :return: The name of this V1Webhook. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this V1Webhook. + + + :param name: The name of this V1Webhook. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this V1Webhook. # noqa: E501 + + + :return: The url of this V1Webhook. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V1Webhook. + + + :param url: The url of this V1Webhook. # noqa: E501 + :type: str + """ + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1Webhook, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1Webhook): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/v1_workspace_profile.py b/memos/models/v1_workspace_profile.py new file mode 100644 index 0000000..4d3863f --- /dev/null +++ b/memos/models/v1_workspace_profile.py @@ -0,0 +1,164 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class V1WorkspaceProfile(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'owner': 'str', + 'version': 'str', + 'mode': 'str' + } + + attribute_map = { + 'owner': 'owner', + 'version': 'version', + 'mode': 'mode' + } + + def __init__(self, owner=None, version=None, mode=None): # noqa: E501 + """V1WorkspaceProfile - a model defined in Swagger""" # noqa: E501 + self._owner = None + self._version = None + self._mode = None + self.discriminator = None + if owner is not None: + self.owner = owner + if version is not None: + self.version = version + if mode is not None: + self.mode = mode + + @property + def owner(self): + """Gets the owner of this V1WorkspaceProfile. # noqa: E501 + + + :return: The owner of this V1WorkspaceProfile. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this V1WorkspaceProfile. + + + :param owner: The owner of this V1WorkspaceProfile. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def version(self): + """Gets the version of this V1WorkspaceProfile. # noqa: E501 + + + :return: The version of this V1WorkspaceProfile. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this V1WorkspaceProfile. + + + :param version: The version of this V1WorkspaceProfile. # noqa: E501 + :type: str + """ + + self._version = version + + @property + def mode(self): + """Gets the mode of this V1WorkspaceProfile. # noqa: E501 + + mode is the instance mode (e.g. \"prod\", \"dev\" or \"demo\"). # noqa: E501 + + :return: The mode of this V1WorkspaceProfile. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this V1WorkspaceProfile. + + mode is the instance mode (e.g. \"prod\", \"dev\" or \"demo\"). # noqa: E501 + + :param mode: The mode of this V1WorkspaceProfile. # noqa: E501 + :type: str + """ + + self._mode = mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(V1WorkspaceProfile, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, V1WorkspaceProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/memos/models/webhooks_webhook_id_body.py b/memos/models/webhooks_webhook_id_body.py index 1de8879..b71a99f 100644 --- a/memos/models/webhooks_webhook_id_body.py +++ b/memos/models/webhooks_webhook_id_body.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -31,7 +31,7 @@ class WebhooksWebhookIdBody(object): 'creator_id': 'int', 'created_time': 'datetime', 'updated_time': 'datetime', - 'row_status': 'Apiv2RowStatus', + 'row_status': 'V1RowStatus', 'name': 'str', 'url': 'str' } @@ -136,7 +136,7 @@ class WebhooksWebhookIdBody(object): :return: The row_status of this WebhooksWebhookIdBody. # noqa: E501 - :rtype: Apiv2RowStatus + :rtype: V1RowStatus """ return self._row_status @@ -146,7 +146,7 @@ class WebhooksWebhookIdBody(object): :param row_status: The row_status of this WebhooksWebhookIdBody. # noqa: E501 - :type: Apiv2RowStatus + :type: V1RowStatus """ self._row_status = row_status diff --git a/memos/rest.py b/memos/rest.py index cb93aa3..61abdf2 100644 --- a/memos/rest.py +++ b/memos/rest.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 diff --git a/setup.py b/setup.py index 62dfb6a..bc1d9fe 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ # coding: utf-8 """ - api/v2/activity_service.proto + api/v1/activity_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 @@ -26,10 +26,10 @@ REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] setup( name=NAME, version=VERSION, - description="api/v2/activity_service.proto", + description="api/v1/activity_service.proto", author_email="", url="https://github.com/looching/memos-python", - keywords=["Swagger", "api/v2/activity_service.proto"], + keywords=["Swagger", "api/v1/activity_service.proto"], install_requires=REQUIRES, packages=find_packages(), include_package_data=True, diff --git a/test/test_apiv1_activity_memo_comment_payload.py b/test/test_apiv1_activity_memo_comment_payload.py new file mode 100644 index 0000000..e6990fe --- /dev/null +++ b/test/test_apiv1_activity_memo_comment_payload.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_activity_memo_comment_payload import Apiv1ActivityMemoCommentPayload # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1ActivityMemoCommentPayload(unittest.TestCase): + """Apiv1ActivityMemoCommentPayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1ActivityMemoCommentPayload(self): + """Test Apiv1ActivityMemoCommentPayload""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_activity_memo_comment_payload.Apiv1ActivityMemoCommentPayload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_activity_payload.py b/test/test_apiv1_activity_payload.py new file mode 100644 index 0000000..acc2ebb --- /dev/null +++ b/test/test_apiv1_activity_payload.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_activity_payload import Apiv1ActivityPayload # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1ActivityPayload(unittest.TestCase): + """Apiv1ActivityPayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1ActivityPayload(self): + """Test Apiv1ActivityPayload""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_activity_payload.Apiv1ActivityPayload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_activity_version_update_payload.py b/test/test_apiv1_activity_version_update_payload.py new file mode 100644 index 0000000..2035372 --- /dev/null +++ b/test/test_apiv1_activity_version_update_payload.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_activity_version_update_payload import Apiv1ActivityVersionUpdatePayload # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1ActivityVersionUpdatePayload(unittest.TestCase): + """Apiv1ActivityVersionUpdatePayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1ActivityVersionUpdatePayload(self): + """Test Apiv1ActivityVersionUpdatePayload""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_activity_version_update_payload.Apiv1ActivityVersionUpdatePayload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_field_mapping.py b/test/test_apiv1_field_mapping.py new file mode 100644 index 0000000..6beead1 --- /dev/null +++ b/test/test_apiv1_field_mapping.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_field_mapping import Apiv1FieldMapping # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1FieldMapping(unittest.TestCase): + """Apiv1FieldMapping unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1FieldMapping(self): + """Test Apiv1FieldMapping""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_field_mapping.Apiv1FieldMapping() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_identity_provider.py b/test/test_apiv1_identity_provider.py new file mode 100644 index 0000000..b9f8fa6 --- /dev/null +++ b/test/test_apiv1_identity_provider.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_identity_provider import Apiv1IdentityProvider # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1IdentityProvider(unittest.TestCase): + """Apiv1IdentityProvider unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1IdentityProvider(self): + """Test Apiv1IdentityProvider""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_identity_provider.Apiv1IdentityProvider() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_identity_provider_config.py b/test/test_apiv1_identity_provider_config.py new file mode 100644 index 0000000..bbe33f0 --- /dev/null +++ b/test/test_apiv1_identity_provider_config.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_identity_provider_config import Apiv1IdentityProviderConfig # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1IdentityProviderConfig(unittest.TestCase): + """Apiv1IdentityProviderConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1IdentityProviderConfig(self): + """Test Apiv1IdentityProviderConfig""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_identity_provider_config.Apiv1IdentityProviderConfig() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_identity_provider_type.py b/test/test_apiv1_identity_provider_type.py new file mode 100644 index 0000000..c6a064d --- /dev/null +++ b/test/test_apiv1_identity_provider_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_identity_provider_type import Apiv1IdentityProviderType # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1IdentityProviderType(unittest.TestCase): + """Apiv1IdentityProviderType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1IdentityProviderType(self): + """Test Apiv1IdentityProviderType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_identity_provider_type.Apiv1IdentityProviderType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_o_auth2_config.py b/test/test_apiv1_o_auth2_config.py new file mode 100644 index 0000000..4fd7fd0 --- /dev/null +++ b/test/test_apiv1_o_auth2_config.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_o_auth2_config import Apiv1OAuth2Config # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1OAuth2Config(unittest.TestCase): + """Apiv1OAuth2Config unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1OAuth2Config(self): + """Test Apiv1OAuth2Config""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_o_auth2_config.Apiv1OAuth2Config() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_user_setting.py b/test/test_apiv1_user_setting.py new file mode 100644 index 0000000..5679a73 --- /dev/null +++ b/test/test_apiv1_user_setting.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_user_setting import Apiv1UserSetting # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1UserSetting(unittest.TestCase): + """Apiv1UserSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1UserSetting(self): + """Test Apiv1UserSetting""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_user_setting.Apiv1UserSetting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_custom_profile.py b/test/test_apiv1_workspace_custom_profile.py new file mode 100644 index 0000000..152c9f6 --- /dev/null +++ b/test/test_apiv1_workspace_custom_profile.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_custom_profile import Apiv1WorkspaceCustomProfile # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceCustomProfile(unittest.TestCase): + """Apiv1WorkspaceCustomProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceCustomProfile(self): + """Test Apiv1WorkspaceCustomProfile""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_custom_profile.Apiv1WorkspaceCustomProfile() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_general_setting.py b/test/test_apiv1_workspace_general_setting.py new file mode 100644 index 0000000..bf2fdb0 --- /dev/null +++ b/test/test_apiv1_workspace_general_setting.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_general_setting import Apiv1WorkspaceGeneralSetting # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceGeneralSetting(unittest.TestCase): + """Apiv1WorkspaceGeneralSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceGeneralSetting(self): + """Test Apiv1WorkspaceGeneralSetting""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_general_setting.Apiv1WorkspaceGeneralSetting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_memo_related_setting.py b/test/test_apiv1_workspace_memo_related_setting.py new file mode 100644 index 0000000..1acbd50 --- /dev/null +++ b/test/test_apiv1_workspace_memo_related_setting.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_memo_related_setting import Apiv1WorkspaceMemoRelatedSetting # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceMemoRelatedSetting(unittest.TestCase): + """Apiv1WorkspaceMemoRelatedSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceMemoRelatedSetting(self): + """Test Apiv1WorkspaceMemoRelatedSetting""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_memo_related_setting.Apiv1WorkspaceMemoRelatedSetting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_setting.py b/test/test_apiv1_workspace_setting.py new file mode 100644 index 0000000..a09f335 --- /dev/null +++ b/test/test_apiv1_workspace_setting.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_setting import Apiv1WorkspaceSetting # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceSetting(unittest.TestCase): + """Apiv1WorkspaceSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceSetting(self): + """Test Apiv1WorkspaceSetting""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_setting.Apiv1WorkspaceSetting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_storage_setting.py b/test/test_apiv1_workspace_storage_setting.py new file mode 100644 index 0000000..bafcef1 --- /dev/null +++ b/test/test_apiv1_workspace_storage_setting.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_storage_setting import Apiv1WorkspaceStorageSetting # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceStorageSetting(unittest.TestCase): + """Apiv1WorkspaceStorageSetting unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceStorageSetting(self): + """Test Apiv1WorkspaceStorageSetting""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_storage_setting.Apiv1WorkspaceStorageSetting() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_storage_setting_s3_config.py b/test/test_apiv1_workspace_storage_setting_s3_config.py new file mode 100644 index 0000000..320fc1c --- /dev/null +++ b/test/test_apiv1_workspace_storage_setting_s3_config.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_storage_setting_s3_config import Apiv1WorkspaceStorageSettingS3Config # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceStorageSettingS3Config(unittest.TestCase): + """Apiv1WorkspaceStorageSettingS3Config unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceStorageSettingS3Config(self): + """Test Apiv1WorkspaceStorageSettingS3Config""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_storage_setting_s3_config.Apiv1WorkspaceStorageSettingS3Config() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_apiv1_workspace_storage_setting_storage_type.py b/test/test_apiv1_workspace_storage_setting_storage_type.py new file mode 100644 index 0000000..9bc4d7f --- /dev/null +++ b/test/test_apiv1_workspace_storage_setting_storage_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.apiv1_workspace_storage_setting_storage_type import Apiv1WorkspaceStorageSettingStorageType # noqa: E501 +from memos.rest import ApiException + + +class TestApiv1WorkspaceStorageSettingStorageType(unittest.TestCase): + """Apiv1WorkspaceStorageSettingStorageType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiv1WorkspaceStorageSettingStorageType(self): + """Test Apiv1WorkspaceStorageSettingStorageType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.apiv1_workspace_storage_setting_storage_type.Apiv1WorkspaceStorageSettingStorageType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identity_provider_service_api.py b/test/test_identity_provider_service_api.py new file mode 100644 index 0000000..5465549 --- /dev/null +++ b/test/test_identity_provider_service_api.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.api.identity_provider_service_api import IdentityProviderServiceApi # noqa: E501 +from memos.rest import ApiException + + +class TestIdentityProviderServiceApi(unittest.TestCase): + """IdentityProviderServiceApi unit test stubs""" + + def setUp(self): + self.api = IdentityProviderServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_identity_provider_service_create_identity_provider(self): + """Test case for identity_provider_service_create_identity_provider + + CreateIdentityProvider creates an identity provider. # noqa: E501 + """ + pass + + def test_identity_provider_service_delete_identity_provider(self): + """Test case for identity_provider_service_delete_identity_provider + + DeleteIdentityProvider deletes an identity provider. # noqa: E501 + """ + pass + + def test_identity_provider_service_get_identity_provider(self): + """Test case for identity_provider_service_get_identity_provider + + GetIdentityProvider gets an identity provider. # noqa: E501 + """ + pass + + def test_identity_provider_service_list_identity_providers(self): + """Test case for identity_provider_service_list_identity_providers + + ListIdentityProviders lists identity providers. # noqa: E501 + """ + pass + + def test_identity_provider_service_update_identity_provider(self): + """Test case for identity_provider_service_update_identity_provider + + UpdateIdentityProvider updates an identity provider. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_markdown_service_api.py b/test/test_markdown_service_api.py new file mode 100644 index 0000000..a64a7fa --- /dev/null +++ b/test/test_markdown_service_api.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.api.markdown_service_api import MarkdownServiceApi # noqa: E501 +from memos.rest import ApiException + + +class TestMarkdownServiceApi(unittest.TestCase): + """MarkdownServiceApi unit test stubs""" + + def setUp(self): + self.api = MarkdownServiceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_markdown_service_get_link_metadata(self): + """Test case for markdown_service_get_link_metadata + + GetLinkMetadata returns metadata for a given link. # noqa: E501 + """ + pass + + def test_markdown_service_parse_markdown(self): + """Test case for markdown_service_parse_markdown + + Parses the given markdown content and returns a list of nodes. # noqa: E501 + """ + pass + + def test_markdown_service_restore_markdown(self): + """Test case for markdown_service_restore_markdown + + Restores the given nodes to markdown content. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_memo_service_upsert_memo_reaction_body.py b/test/test_memo_service_upsert_memo_reaction_body.py new file mode 100644 index 0000000..0a62cd4 --- /dev/null +++ b/test/test_memo_service_upsert_memo_reaction_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.memo_service_upsert_memo_reaction_body import MemoServiceUpsertMemoReactionBody # noqa: E501 +from memos.rest import ApiException + + +class TestMemoServiceUpsertMemoReactionBody(unittest.TestCase): + """MemoServiceUpsertMemoReactionBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMemoServiceUpsertMemoReactionBody(self): + """Test MemoServiceUpsertMemoReactionBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.memo_service_upsert_memo_reaction_body.MemoServiceUpsertMemoReactionBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_table_node_row.py b/test/test_table_node_row.py new file mode 100644 index 0000000..71afa32 --- /dev/null +++ b/test/test_table_node_row.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.table_node_row import TableNodeRow # noqa: E501 +from memos.rest import ApiException + + +class TestTableNodeRow(unittest.TestCase): + """TableNodeRow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTableNodeRow(self): + """Test TableNodeRow""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.table_node_row.TableNodeRow() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_the_identity_provider_to_update_.py b/test/test_the_identity_provider_to_update_.py new file mode 100644 index 0000000..b9b486a --- /dev/null +++ b/test/test_the_identity_provider_to_update_.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.the_identity_provider_to_update_ import TheIdentityProviderToUpdate_ # noqa: E501 +from memos.rest import ApiException + + +class TestTheIdentityProviderToUpdate_(unittest.TestCase): + """TheIdentityProviderToUpdate_ unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTheIdentityProviderToUpdate_(self): + """Test TheIdentityProviderToUpdate_""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.the_identity_provider_to_update_.TheIdentityProviderToUpdate_() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_activity.py b/test/test_v1_activity.py new file mode 100644 index 0000000..1599758 --- /dev/null +++ b/test/test_v1_activity.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_activity import V1Activity # noqa: E501 +from memos.rest import ApiException + + +class TestV1Activity(unittest.TestCase): + """V1Activity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Activity(self): + """Test V1Activity""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_activity.V1Activity() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_auto_link_node.py b/test/test_v1_auto_link_node.py new file mode 100644 index 0000000..3ac52a0 --- /dev/null +++ b/test/test_v1_auto_link_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_auto_link_node import V1AutoLinkNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1AutoLinkNode(unittest.TestCase): + """V1AutoLinkNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1AutoLinkNode(self): + """Test V1AutoLinkNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_auto_link_node.V1AutoLinkNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_batch_upsert_tag_request.py b/test/test_v1_batch_upsert_tag_request.py new file mode 100644 index 0000000..cb9fef5 --- /dev/null +++ b/test/test_v1_batch_upsert_tag_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_batch_upsert_tag_request import V1BatchUpsertTagRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1BatchUpsertTagRequest(unittest.TestCase): + """V1BatchUpsertTagRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BatchUpsertTagRequest(self): + """Test V1BatchUpsertTagRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_batch_upsert_tag_request.V1BatchUpsertTagRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_blockquote_node.py b/test/test_v1_blockquote_node.py new file mode 100644 index 0000000..56f164f --- /dev/null +++ b/test/test_v1_blockquote_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_blockquote_node import V1BlockquoteNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1BlockquoteNode(unittest.TestCase): + """V1BlockquoteNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BlockquoteNode(self): + """Test V1BlockquoteNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_blockquote_node.V1BlockquoteNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_bold_italic_node.py b/test/test_v1_bold_italic_node.py new file mode 100644 index 0000000..6bd0347 --- /dev/null +++ b/test/test_v1_bold_italic_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_bold_italic_node import V1BoldItalicNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1BoldItalicNode(unittest.TestCase): + """V1BoldItalicNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BoldItalicNode(self): + """Test V1BoldItalicNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_bold_italic_node.V1BoldItalicNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_bold_node.py b/test/test_v1_bold_node.py new file mode 100644 index 0000000..8333b18 --- /dev/null +++ b/test/test_v1_bold_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_bold_node import V1BoldNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1BoldNode(unittest.TestCase): + """V1BoldNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1BoldNode(self): + """Test V1BoldNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_bold_node.V1BoldNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_code_block_node.py b/test/test_v1_code_block_node.py new file mode 100644 index 0000000..560aec9 --- /dev/null +++ b/test/test_v1_code_block_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_code_block_node import V1CodeBlockNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1CodeBlockNode(unittest.TestCase): + """V1CodeBlockNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CodeBlockNode(self): + """Test V1CodeBlockNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_code_block_node.V1CodeBlockNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_code_node.py b/test/test_v1_code_node.py new file mode 100644 index 0000000..d1852c0 --- /dev/null +++ b/test/test_v1_code_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_code_node import V1CodeNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1CodeNode(unittest.TestCase): + """V1CodeNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CodeNode(self): + """Test V1CodeNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_code_node.V1CodeNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_create_memo_request.py b/test/test_v1_create_memo_request.py new file mode 100644 index 0000000..116dcbf --- /dev/null +++ b/test/test_v1_create_memo_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_create_memo_request import V1CreateMemoRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1CreateMemoRequest(unittest.TestCase): + """V1CreateMemoRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CreateMemoRequest(self): + """Test V1CreateMemoRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_create_memo_request.V1CreateMemoRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_create_webhook_request.py b/test/test_v1_create_webhook_request.py new file mode 100644 index 0000000..bb0f73f --- /dev/null +++ b/test/test_v1_create_webhook_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_create_webhook_request import V1CreateWebhookRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1CreateWebhookRequest(unittest.TestCase): + """V1CreateWebhookRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1CreateWebhookRequest(self): + """Test V1CreateWebhookRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_create_webhook_request.V1CreateWebhookRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_embedded_content_node.py b/test/test_v1_embedded_content_node.py new file mode 100644 index 0000000..1cd76f9 --- /dev/null +++ b/test/test_v1_embedded_content_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_embedded_content_node import V1EmbeddedContentNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1EmbeddedContentNode(unittest.TestCase): + """V1EmbeddedContentNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EmbeddedContentNode(self): + """Test V1EmbeddedContentNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_embedded_content_node.V1EmbeddedContentNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_escaping_character_node.py b/test/test_v1_escaping_character_node.py new file mode 100644 index 0000000..d22097e --- /dev/null +++ b/test/test_v1_escaping_character_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_escaping_character_node import V1EscapingCharacterNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1EscapingCharacterNode(unittest.TestCase): + """V1EscapingCharacterNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1EscapingCharacterNode(self): + """Test V1EscapingCharacterNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_escaping_character_node.V1EscapingCharacterNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_export_memos_request.py b/test/test_v1_export_memos_request.py new file mode 100644 index 0000000..068b50d --- /dev/null +++ b/test/test_v1_export_memos_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_export_memos_request import V1ExportMemosRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1ExportMemosRequest(unittest.TestCase): + """V1ExportMemosRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ExportMemosRequest(self): + """Test V1ExportMemosRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_export_memos_request.V1ExportMemosRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_export_memos_response.py b/test/test_v1_export_memos_response.py new file mode 100644 index 0000000..982dee8 --- /dev/null +++ b/test/test_v1_export_memos_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_export_memos_response import V1ExportMemosResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ExportMemosResponse(unittest.TestCase): + """V1ExportMemosResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ExportMemosResponse(self): + """Test V1ExportMemosResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_export_memos_response.V1ExportMemosResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_get_tag_suggestions_response.py b/test/test_v1_get_tag_suggestions_response.py new file mode 100644 index 0000000..a6b9e13 --- /dev/null +++ b/test/test_v1_get_tag_suggestions_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_get_tag_suggestions_response import V1GetTagSuggestionsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1GetTagSuggestionsResponse(unittest.TestCase): + """V1GetTagSuggestionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GetTagSuggestionsResponse(self): + """Test V1GetTagSuggestionsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_get_tag_suggestions_response.V1GetTagSuggestionsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_get_user_memos_stats_response.py b/test/test_v1_get_user_memos_stats_response.py new file mode 100644 index 0000000..3d8cd04 --- /dev/null +++ b/test/test_v1_get_user_memos_stats_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_get_user_memos_stats_response import V1GetUserMemosStatsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1GetUserMemosStatsResponse(unittest.TestCase): + """V1GetUserMemosStatsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GetUserMemosStatsResponse(self): + """Test V1GetUserMemosStatsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_get_user_memos_stats_response.V1GetUserMemosStatsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_heading_node.py b/test/test_v1_heading_node.py new file mode 100644 index 0000000..b0f16d4 --- /dev/null +++ b/test/test_v1_heading_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_heading_node import V1HeadingNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1HeadingNode(unittest.TestCase): + """V1HeadingNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HeadingNode(self): + """Test V1HeadingNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_heading_node.V1HeadingNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_highlight_node.py b/test/test_v1_highlight_node.py new file mode 100644 index 0000000..d6f61f9 --- /dev/null +++ b/test/test_v1_highlight_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_highlight_node import V1HighlightNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1HighlightNode(unittest.TestCase): + """V1HighlightNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HighlightNode(self): + """Test V1HighlightNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_highlight_node.V1HighlightNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_horizontal_rule_node.py b/test/test_v1_horizontal_rule_node.py new file mode 100644 index 0000000..29f470d --- /dev/null +++ b/test/test_v1_horizontal_rule_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_horizontal_rule_node import V1HorizontalRuleNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1HorizontalRuleNode(unittest.TestCase): + """V1HorizontalRuleNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1HorizontalRuleNode(self): + """Test V1HorizontalRuleNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_horizontal_rule_node.V1HorizontalRuleNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_image_node.py b/test/test_v1_image_node.py new file mode 100644 index 0000000..a1ef809 --- /dev/null +++ b/test/test_v1_image_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_image_node import V1ImageNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1ImageNode(unittest.TestCase): + """V1ImageNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ImageNode(self): + """Test V1ImageNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_image_node.V1ImageNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_inbox.py b/test/test_v1_inbox.py new file mode 100644 index 0000000..69d5730 --- /dev/null +++ b/test/test_v1_inbox.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_inbox import V1Inbox # noqa: E501 +from memos.rest import ApiException + + +class TestV1Inbox(unittest.TestCase): + """V1Inbox unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Inbox(self): + """Test V1Inbox""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_inbox.V1Inbox() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_inbox_name_body.py b/test/test_v1_inbox_name_body.py new file mode 100644 index 0000000..ebddb86 --- /dev/null +++ b/test/test_v1_inbox_name_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_inbox_name_body import V1InboxNameBody # noqa: E501 +from memos.rest import ApiException + + +class TestV1InboxNameBody(unittest.TestCase): + """V1InboxNameBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InboxNameBody(self): + """Test V1InboxNameBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_inbox_name_body.V1InboxNameBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_inbox_status.py b/test/test_v1_inbox_status.py new file mode 100644 index 0000000..e49c800 --- /dev/null +++ b/test/test_v1_inbox_status.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_inbox_status import V1InboxStatus # noqa: E501 +from memos.rest import ApiException + + +class TestV1InboxStatus(unittest.TestCase): + """V1InboxStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InboxStatus(self): + """Test V1InboxStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_inbox_status.V1InboxStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_inbox_type.py b/test/test_v1_inbox_type.py new file mode 100644 index 0000000..7777436 --- /dev/null +++ b/test/test_v1_inbox_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_inbox_type import V1InboxType # noqa: E501 +from memos.rest import ApiException + + +class TestV1InboxType(unittest.TestCase): + """V1InboxType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InboxType(self): + """Test V1InboxType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_inbox_type.V1InboxType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_italic_node.py b/test/test_v1_italic_node.py new file mode 100644 index 0000000..2ac1e6d --- /dev/null +++ b/test/test_v1_italic_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_italic_node import V1ItalicNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1ItalicNode(unittest.TestCase): + """V1ItalicNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ItalicNode(self): + """Test V1ItalicNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_italic_node.V1ItalicNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_line_break_node.py b/test/test_v1_line_break_node.py new file mode 100644 index 0000000..53b083a --- /dev/null +++ b/test/test_v1_line_break_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_line_break_node import V1LineBreakNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1LineBreakNode(unittest.TestCase): + """V1LineBreakNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LineBreakNode(self): + """Test V1LineBreakNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_line_break_node.V1LineBreakNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_link_metadata.py b/test/test_v1_link_metadata.py new file mode 100644 index 0000000..335411a --- /dev/null +++ b/test/test_v1_link_metadata.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_link_metadata import V1LinkMetadata # noqa: E501 +from memos.rest import ApiException + + +class TestV1LinkMetadata(unittest.TestCase): + """V1LinkMetadata unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LinkMetadata(self): + """Test V1LinkMetadata""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_link_metadata.V1LinkMetadata() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_link_node.py b/test/test_v1_link_node.py new file mode 100644 index 0000000..f12f278 --- /dev/null +++ b/test/test_v1_link_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_link_node import V1LinkNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1LinkNode(unittest.TestCase): + """V1LinkNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1LinkNode(self): + """Test V1LinkNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_link_node.V1LinkNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_identity_providers_response.py b/test/test_v1_list_identity_providers_response.py new file mode 100644 index 0000000..ba1a72d --- /dev/null +++ b/test/test_v1_list_identity_providers_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_identity_providers_response import V1ListIdentityProvidersResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListIdentityProvidersResponse(unittest.TestCase): + """V1ListIdentityProvidersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListIdentityProvidersResponse(self): + """Test V1ListIdentityProvidersResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_identity_providers_response.V1ListIdentityProvidersResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_inboxes_response.py b/test/test_v1_list_inboxes_response.py new file mode 100644 index 0000000..c6328cb --- /dev/null +++ b/test/test_v1_list_inboxes_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_inboxes_response import V1ListInboxesResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListInboxesResponse(unittest.TestCase): + """V1ListInboxesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListInboxesResponse(self): + """Test V1ListInboxesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_inboxes_response.V1ListInboxesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_memo_comments_response.py b/test/test_v1_list_memo_comments_response.py new file mode 100644 index 0000000..d737510 --- /dev/null +++ b/test/test_v1_list_memo_comments_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_memo_comments_response import V1ListMemoCommentsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListMemoCommentsResponse(unittest.TestCase): + """V1ListMemoCommentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListMemoCommentsResponse(self): + """Test V1ListMemoCommentsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_memo_comments_response.V1ListMemoCommentsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_memo_reactions_response.py b/test/test_v1_list_memo_reactions_response.py new file mode 100644 index 0000000..059f24f --- /dev/null +++ b/test/test_v1_list_memo_reactions_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_memo_reactions_response import V1ListMemoReactionsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListMemoReactionsResponse(unittest.TestCase): + """V1ListMemoReactionsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListMemoReactionsResponse(self): + """Test V1ListMemoReactionsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_memo_reactions_response.V1ListMemoReactionsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_memo_relations_response.py b/test/test_v1_list_memo_relations_response.py new file mode 100644 index 0000000..d76698a --- /dev/null +++ b/test/test_v1_list_memo_relations_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_memo_relations_response import V1ListMemoRelationsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListMemoRelationsResponse(unittest.TestCase): + """V1ListMemoRelationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListMemoRelationsResponse(self): + """Test V1ListMemoRelationsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_memo_relations_response.V1ListMemoRelationsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_memo_resources_response.py b/test/test_v1_list_memo_resources_response.py new file mode 100644 index 0000000..dd9b927 --- /dev/null +++ b/test/test_v1_list_memo_resources_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_memo_resources_response import V1ListMemoResourcesResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListMemoResourcesResponse(unittest.TestCase): + """V1ListMemoResourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListMemoResourcesResponse(self): + """Test V1ListMemoResourcesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_memo_resources_response.V1ListMemoResourcesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_memos_response.py b/test/test_v1_list_memos_response.py new file mode 100644 index 0000000..12ed6c3 --- /dev/null +++ b/test/test_v1_list_memos_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_memos_response import V1ListMemosResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListMemosResponse(unittest.TestCase): + """V1ListMemosResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListMemosResponse(self): + """Test V1ListMemosResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_memos_response.V1ListMemosResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_resources_response.py b/test/test_v1_list_resources_response.py new file mode 100644 index 0000000..bcea863 --- /dev/null +++ b/test/test_v1_list_resources_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_resources_response import V1ListResourcesResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListResourcesResponse(unittest.TestCase): + """V1ListResourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListResourcesResponse(self): + """Test V1ListResourcesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_resources_response.V1ListResourcesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_tags_response.py b/test/test_v1_list_tags_response.py new file mode 100644 index 0000000..a6e287a --- /dev/null +++ b/test/test_v1_list_tags_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_tags_response import V1ListTagsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListTagsResponse(unittest.TestCase): + """V1ListTagsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListTagsResponse(self): + """Test V1ListTagsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_tags_response.V1ListTagsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_user_access_tokens_response.py b/test/test_v1_list_user_access_tokens_response.py new file mode 100644 index 0000000..40e13ff --- /dev/null +++ b/test/test_v1_list_user_access_tokens_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_user_access_tokens_response import V1ListUserAccessTokensResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListUserAccessTokensResponse(unittest.TestCase): + """V1ListUserAccessTokensResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListUserAccessTokensResponse(self): + """Test V1ListUserAccessTokensResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_user_access_tokens_response.V1ListUserAccessTokensResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_users_response.py b/test/test_v1_list_users_response.py new file mode 100644 index 0000000..a8212cd --- /dev/null +++ b/test/test_v1_list_users_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_users_response import V1ListUsersResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListUsersResponse(unittest.TestCase): + """V1ListUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListUsersResponse(self): + """Test V1ListUsersResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_users_response.V1ListUsersResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_webhooks_response.py b/test/test_v1_list_webhooks_response.py new file mode 100644 index 0000000..9ff11cb --- /dev/null +++ b/test/test_v1_list_webhooks_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_webhooks_response import V1ListWebhooksResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListWebhooksResponse(unittest.TestCase): + """V1ListWebhooksResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListWebhooksResponse(self): + """Test V1ListWebhooksResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_webhooks_response.V1ListWebhooksResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_list_workspace_settings_response.py b/test/test_v1_list_workspace_settings_response.py new file mode 100644 index 0000000..3a1d77e --- /dev/null +++ b/test/test_v1_list_workspace_settings_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_list_workspace_settings_response import V1ListWorkspaceSettingsResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ListWorkspaceSettingsResponse(unittest.TestCase): + """V1ListWorkspaceSettingsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ListWorkspaceSettingsResponse(self): + """Test V1ListWorkspaceSettingsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_list_workspace_settings_response.V1ListWorkspaceSettingsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_math_block_node.py b/test/test_v1_math_block_node.py new file mode 100644 index 0000000..001515e --- /dev/null +++ b/test/test_v1_math_block_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_math_block_node import V1MathBlockNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1MathBlockNode(unittest.TestCase): + """V1MathBlockNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MathBlockNode(self): + """Test V1MathBlockNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_math_block_node.V1MathBlockNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_math_node.py b/test/test_v1_math_node.py new file mode 100644 index 0000000..48847df --- /dev/null +++ b/test/test_v1_math_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_math_node import V1MathNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1MathNode(unittest.TestCase): + """V1MathNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MathNode(self): + """Test V1MathNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_math_node.V1MathNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memo.py b/test/test_v1_memo.py new file mode 100644 index 0000000..11887a6 --- /dev/null +++ b/test/test_v1_memo.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_memo import V1Memo # noqa: E501 +from memos.rest import ApiException + + +class TestV1Memo(unittest.TestCase): + """V1Memo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Memo(self): + """Test V1Memo""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_memo.V1Memo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memo_name_body.py b/test/test_v1_memo_name_body.py new file mode 100644 index 0000000..f7c4ec4 --- /dev/null +++ b/test/test_v1_memo_name_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_memo_name_body import V1MemoNameBody # noqa: E501 +from memos.rest import ApiException + + +class TestV1MemoNameBody(unittest.TestCase): + """V1MemoNameBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MemoNameBody(self): + """Test V1MemoNameBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_memo_name_body.V1MemoNameBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memo_relation.py b/test/test_v1_memo_relation.py new file mode 100644 index 0000000..c769afd --- /dev/null +++ b/test/test_v1_memo_relation.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_memo_relation import V1MemoRelation # noqa: E501 +from memos.rest import ApiException + + +class TestV1MemoRelation(unittest.TestCase): + """V1MemoRelation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MemoRelation(self): + """Test V1MemoRelation""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_memo_relation.V1MemoRelation() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_memo_relation_type.py b/test/test_v1_memo_relation_type.py new file mode 100644 index 0000000..b66b861 --- /dev/null +++ b/test/test_v1_memo_relation_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_memo_relation_type import V1MemoRelationType # noqa: E501 +from memos.rest import ApiException + + +class TestV1MemoRelationType(unittest.TestCase): + """V1MemoRelationType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1MemoRelationType(self): + """Test V1MemoRelationType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_memo_relation_type.V1MemoRelationType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node.py b/test/test_v1_node.py new file mode 100644 index 0000000..f911d52 --- /dev/null +++ b/test/test_v1_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_node import V1Node # noqa: E501 +from memos.rest import ApiException + + +class TestV1Node(unittest.TestCase): + """V1Node unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Node(self): + """Test V1Node""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_node.V1Node() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_node_type.py b/test/test_v1_node_type.py new file mode 100644 index 0000000..76470d7 --- /dev/null +++ b/test/test_v1_node_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_node_type import V1NodeType # noqa: E501 +from memos.rest import ApiException + + +class TestV1NodeType(unittest.TestCase): + """V1NodeType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1NodeType(self): + """Test V1NodeType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_node_type.V1NodeType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ordered_list_node.py b/test/test_v1_ordered_list_node.py new file mode 100644 index 0000000..51f07d7 --- /dev/null +++ b/test/test_v1_ordered_list_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_ordered_list_node import V1OrderedListNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1OrderedListNode(unittest.TestCase): + """V1OrderedListNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1OrderedListNode(self): + """Test V1OrderedListNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_ordered_list_node.V1OrderedListNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_paragraph_node.py b/test/test_v1_paragraph_node.py new file mode 100644 index 0000000..51be42e --- /dev/null +++ b/test/test_v1_paragraph_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_paragraph_node import V1ParagraphNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1ParagraphNode(unittest.TestCase): + """V1ParagraphNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ParagraphNode(self): + """Test V1ParagraphNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_paragraph_node.V1ParagraphNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_parse_markdown_request.py b/test/test_v1_parse_markdown_request.py new file mode 100644 index 0000000..31d1680 --- /dev/null +++ b/test/test_v1_parse_markdown_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_parse_markdown_request import V1ParseMarkdownRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1ParseMarkdownRequest(unittest.TestCase): + """V1ParseMarkdownRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ParseMarkdownRequest(self): + """Test V1ParseMarkdownRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_parse_markdown_request.V1ParseMarkdownRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_parse_markdown_response.py b/test/test_v1_parse_markdown_response.py new file mode 100644 index 0000000..c8af2ea --- /dev/null +++ b/test/test_v1_parse_markdown_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_parse_markdown_response import V1ParseMarkdownResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1ParseMarkdownResponse(unittest.TestCase): + """V1ParseMarkdownResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ParseMarkdownResponse(self): + """Test V1ParseMarkdownResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_parse_markdown_response.V1ParseMarkdownResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_reaction.py b/test/test_v1_reaction.py new file mode 100644 index 0000000..492a684 --- /dev/null +++ b/test/test_v1_reaction.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_reaction import V1Reaction # noqa: E501 +from memos.rest import ApiException + + +class TestV1Reaction(unittest.TestCase): + """V1Reaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Reaction(self): + """Test V1Reaction""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_reaction.V1Reaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_reaction_type.py b/test/test_v1_reaction_type.py new file mode 100644 index 0000000..d69a5e1 --- /dev/null +++ b/test/test_v1_reaction_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_reaction_type import V1ReactionType # noqa: E501 +from memos.rest import ApiException + + +class TestV1ReactionType(unittest.TestCase): + """V1ReactionType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReactionType(self): + """Test V1ReactionType""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_reaction_type.V1ReactionType() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_referenced_content_node.py b/test/test_v1_referenced_content_node.py new file mode 100644 index 0000000..6f88e08 --- /dev/null +++ b/test/test_v1_referenced_content_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_referenced_content_node import V1ReferencedContentNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1ReferencedContentNode(unittest.TestCase): + """V1ReferencedContentNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ReferencedContentNode(self): + """Test V1ReferencedContentNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_referenced_content_node.V1ReferencedContentNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_rename_tag_request.py b/test/test_v1_rename_tag_request.py new file mode 100644 index 0000000..15d64da --- /dev/null +++ b/test/test_v1_rename_tag_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_rename_tag_request import V1RenameTagRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1RenameTagRequest(unittest.TestCase): + """V1RenameTagRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RenameTagRequest(self): + """Test V1RenameTagRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_rename_tag_request.V1RenameTagRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource.py b/test/test_v1_resource.py new file mode 100644 index 0000000..653bf1d --- /dev/null +++ b/test/test_v1_resource.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_resource import V1Resource # noqa: E501 +from memos.rest import ApiException + + +class TestV1Resource(unittest.TestCase): + """V1Resource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Resource(self): + """Test V1Resource""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_resource.V1Resource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_resource_name_body.py b/test/test_v1_resource_name_body.py new file mode 100644 index 0000000..58e0a3c --- /dev/null +++ b/test/test_v1_resource_name_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_resource_name_body import V1ResourceNameBody # noqa: E501 +from memos.rest import ApiException + + +class TestV1ResourceNameBody(unittest.TestCase): + """V1ResourceNameBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ResourceNameBody(self): + """Test V1ResourceNameBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_resource_name_body.V1ResourceNameBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_restore_markdown_request.py b/test/test_v1_restore_markdown_request.py new file mode 100644 index 0000000..dd48635 --- /dev/null +++ b/test/test_v1_restore_markdown_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_restore_markdown_request import V1RestoreMarkdownRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1RestoreMarkdownRequest(unittest.TestCase): + """V1RestoreMarkdownRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RestoreMarkdownRequest(self): + """Test V1RestoreMarkdownRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_restore_markdown_request.V1RestoreMarkdownRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_restore_markdown_response.py b/test/test_v1_restore_markdown_response.py new file mode 100644 index 0000000..9220fa6 --- /dev/null +++ b/test/test_v1_restore_markdown_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_restore_markdown_response import V1RestoreMarkdownResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1RestoreMarkdownResponse(unittest.TestCase): + """V1RestoreMarkdownResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RestoreMarkdownResponse(self): + """Test V1RestoreMarkdownResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_restore_markdown_response.V1RestoreMarkdownResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_row_status.py b/test/test_v1_row_status.py new file mode 100644 index 0000000..14443e4 --- /dev/null +++ b/test/test_v1_row_status.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_row_status import V1RowStatus # noqa: E501 +from memos.rest import ApiException + + +class TestV1RowStatus(unittest.TestCase): + """V1RowStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1RowStatus(self): + """Test V1RowStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_row_status.V1RowStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_search_memos_response.py b/test/test_v1_search_memos_response.py new file mode 100644 index 0000000..fd32454 --- /dev/null +++ b/test/test_v1_search_memos_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_search_memos_response import V1SearchMemosResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1SearchMemosResponse(unittest.TestCase): + """V1SearchMemosResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SearchMemosResponse(self): + """Test V1SearchMemosResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_search_memos_response.V1SearchMemosResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_search_resources_response.py b/test/test_v1_search_resources_response.py new file mode 100644 index 0000000..6b0bb04 --- /dev/null +++ b/test/test_v1_search_resources_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_search_resources_response import V1SearchResourcesResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1SearchResourcesResponse(unittest.TestCase): + """V1SearchResourcesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SearchResourcesResponse(self): + """Test V1SearchResourcesResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_search_resources_response.V1SearchResourcesResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_search_users_response.py b/test/test_v1_search_users_response.py new file mode 100644 index 0000000..c23f537 --- /dev/null +++ b/test/test_v1_search_users_response.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_search_users_response import V1SearchUsersResponse # noqa: E501 +from memos.rest import ApiException + + +class TestV1SearchUsersResponse(unittest.TestCase): + """V1SearchUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SearchUsersResponse(self): + """Test V1SearchUsersResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_search_users_response.V1SearchUsersResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_setting_name_body.py b/test/test_v1_setting_name_body.py new file mode 100644 index 0000000..4622024 --- /dev/null +++ b/test/test_v1_setting_name_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_setting_name_body import V1SettingNameBody # noqa: E501 +from memos.rest import ApiException + + +class TestV1SettingNameBody(unittest.TestCase): + """V1SettingNameBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SettingNameBody(self): + """Test V1SettingNameBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_setting_name_body.V1SettingNameBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_spoiler_node.py b/test/test_v1_spoiler_node.py new file mode 100644 index 0000000..5055505 --- /dev/null +++ b/test/test_v1_spoiler_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_spoiler_node import V1SpoilerNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1SpoilerNode(unittest.TestCase): + """V1SpoilerNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SpoilerNode(self): + """Test V1SpoilerNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_spoiler_node.V1SpoilerNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_strikethrough_node.py b/test/test_v1_strikethrough_node.py new file mode 100644 index 0000000..7e36d0c --- /dev/null +++ b/test/test_v1_strikethrough_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_strikethrough_node import V1StrikethroughNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1StrikethroughNode(unittest.TestCase): + """V1StrikethroughNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1StrikethroughNode(self): + """Test V1StrikethroughNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_strikethrough_node.V1StrikethroughNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_subscript_node.py b/test/test_v1_subscript_node.py new file mode 100644 index 0000000..3ff1015 --- /dev/null +++ b/test/test_v1_subscript_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_subscript_node import V1SubscriptNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1SubscriptNode(unittest.TestCase): + """V1SubscriptNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SubscriptNode(self): + """Test V1SubscriptNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_subscript_node.V1SubscriptNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_superscript_node.py b/test/test_v1_superscript_node.py new file mode 100644 index 0000000..b80f937 --- /dev/null +++ b/test/test_v1_superscript_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_superscript_node import V1SuperscriptNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1SuperscriptNode(unittest.TestCase): + """V1SuperscriptNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1SuperscriptNode(self): + """Test V1SuperscriptNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_superscript_node.V1SuperscriptNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_table_node.py b/test/test_v1_table_node.py new file mode 100644 index 0000000..d642f9b --- /dev/null +++ b/test/test_v1_table_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_table_node import V1TableNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1TableNode(unittest.TestCase): + """V1TableNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TableNode(self): + """Test V1TableNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_table_node.V1TableNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tag.py b/test/test_v1_tag.py new file mode 100644 index 0000000..d9b5775 --- /dev/null +++ b/test/test_v1_tag.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_tag import V1Tag # noqa: E501 +from memos.rest import ApiException + + +class TestV1Tag(unittest.TestCase): + """V1Tag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Tag(self): + """Test V1Tag""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_tag.V1Tag() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_tag_node.py b/test/test_v1_tag_node.py new file mode 100644 index 0000000..660d3ed --- /dev/null +++ b/test/test_v1_tag_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_tag_node import V1TagNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1TagNode(unittest.TestCase): + """V1TagNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TagNode(self): + """Test V1TagNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_tag_node.V1TagNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_task_list_node.py b/test/test_v1_task_list_node.py new file mode 100644 index 0000000..489c582 --- /dev/null +++ b/test/test_v1_task_list_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_task_list_node import V1TaskListNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1TaskListNode(unittest.TestCase): + """V1TaskListNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TaskListNode(self): + """Test V1TaskListNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_task_list_node.V1TaskListNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_text_node.py b/test/test_v1_text_node.py new file mode 100644 index 0000000..d859e2a --- /dev/null +++ b/test/test_v1_text_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_text_node import V1TextNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1TextNode(unittest.TestCase): + """V1TextNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1TextNode(self): + """Test V1TextNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_text_node.V1TextNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_unordered_list_node.py b/test/test_v1_unordered_list_node.py new file mode 100644 index 0000000..e36c106 --- /dev/null +++ b/test/test_v1_unordered_list_node.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_unordered_list_node import V1UnorderedListNode # noqa: E501 +from memos.rest import ApiException + + +class TestV1UnorderedListNode(unittest.TestCase): + """V1UnorderedListNode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UnorderedListNode(self): + """Test V1UnorderedListNode""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_unordered_list_node.V1UnorderedListNode() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_upsert_tag_request.py b/test/test_v1_upsert_tag_request.py new file mode 100644 index 0000000..e690315 --- /dev/null +++ b/test/test_v1_upsert_tag_request.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_upsert_tag_request import V1UpsertTagRequest # noqa: E501 +from memos.rest import ApiException + + +class TestV1UpsertTagRequest(unittest.TestCase): + """V1UpsertTagRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UpsertTagRequest(self): + """Test V1UpsertTagRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_upsert_tag_request.V1UpsertTagRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user.py b/test/test_v1_user.py new file mode 100644 index 0000000..7c6e224 --- /dev/null +++ b/test/test_v1_user.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_user import V1User # noqa: E501 +from memos.rest import ApiException + + +class TestV1User(unittest.TestCase): + """V1User unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1User(self): + """Test V1User""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_user.V1User() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_access_token.py b/test/test_v1_user_access_token.py new file mode 100644 index 0000000..37585aa --- /dev/null +++ b/test/test_v1_user_access_token.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_user_access_token import V1UserAccessToken # noqa: E501 +from memos.rest import ApiException + + +class TestV1UserAccessToken(unittest.TestCase): + """V1UserAccessToken unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserAccessToken(self): + """Test V1UserAccessToken""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_user_access_token.V1UserAccessToken() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_user_name_body.py b/test/test_v1_user_name_body.py new file mode 100644 index 0000000..d54cdf3 --- /dev/null +++ b/test/test_v1_user_name_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_user_name_body import V1UserNameBody # noqa: E501 +from memos.rest import ApiException + + +class TestV1UserNameBody(unittest.TestCase): + """V1UserNameBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1UserNameBody(self): + """Test V1UserNameBody""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_user_name_body.V1UserNameBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_visibility.py b/test/test_v1_visibility.py new file mode 100644 index 0000000..5241386 --- /dev/null +++ b/test/test_v1_visibility.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_visibility import V1Visibility # noqa: E501 +from memos.rest import ApiException + + +class TestV1Visibility(unittest.TestCase): + """V1Visibility unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Visibility(self): + """Test V1Visibility""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_visibility.V1Visibility() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_webhook.py b/test/test_v1_webhook.py new file mode 100644 index 0000000..1081f19 --- /dev/null +++ b/test/test_v1_webhook.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_webhook import V1Webhook # noqa: E501 +from memos.rest import ApiException + + +class TestV1Webhook(unittest.TestCase): + """V1Webhook unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1Webhook(self): + """Test V1Webhook""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_webhook.V1Webhook() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_workspace_profile.py b/test/test_v1_workspace_profile.py new file mode 100644 index 0000000..1fef9b2 --- /dev/null +++ b/test/test_v1_workspace_profile.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + api/v1/activity_service.proto + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: version not set + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import memos +from memos.models.v1_workspace_profile import V1WorkspaceProfile # noqa: E501 +from memos.rest import ApiException + + +class TestV1WorkspaceProfile(unittest.TestCase): + """V1WorkspaceProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1WorkspaceProfile(self): + """Test V1WorkspaceProfile""" + # FIXME: construct object with mandatory attributes with example values + # model = memos.models.v1_workspace_profile.V1WorkspaceProfile() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()