Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions annofabapi/dataclass/annotation_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class InternationalizationMessage(DataClassJsonMixin):
""" """

messages: list[InternationalizationMessageMessages]
"""言語コードとメッセージ(テキスト)のリスト。 * アノテーションエディタなどでは、Annofabの表示言語(各ユーザーが個人設定で選んだ言語)のメッセージが使われます * 以下の名前は、[Simple Annotation](#section/Simple-Annotation-ZIP) では `en-US` のメッセージが使われます * ラベル名 * 属性名 * 選択肢名 * いずれの場合でも、表示しようとした言語が `messages` に含まれない場合、 `default_lang` に指定した言語のメッセージが使われます """
"""言語コードとメッセージ(テキスト)のリスト。 * アノテーションエディタなどでは、Annofabの表示言語(各ユーザーが個人設定で選んだ言語)のメッセージが使われます * 以下の名前は、[Simple Annotation](#tag/x-annotation-zip/Simple-Annotation-ZIP) では `en-US` のメッセージが使われます * ラベル名 * 属性名 * 選択肢名 * いずれの場合でも、表示しようとした言語が `messages` に含まれない場合、 `default_lang` に指定した言語のメッセージが使われます """

default_lang: str
"""希望された言語のメッセージが存在しない場合に、フォールバック先として使われる言語コード"""
Expand Down Expand Up @@ -610,7 +610,7 @@ class LabelV3(DataClassJsonMixin):
""""""

field_values: dict[str, AnnotationTypeFieldValue]
"""KeyがフィールドIdであるDictionaryです。 カスタムの[組織プラグイン](#operation/putOrganizationPlugin)で利用される[UserDefinedAnnotationTypeDefinition](#section/UserDefinedAnnotationTypeDefinition).`field_definitions`で定義されます。 """
"""KeyがフィールドIdであるDictionaryです。 カスタムの[組織プラグイン](#operation/putOrganizationPlugin)で利用される[UserDefinedAnnotationTypeDefinition](#tag/x-data-types/UserDefinedAnnotationTypeDefinition).`field_definitions`で定義されます。 """

additional_data_definitions: list[str]
"""ラベルに所属する属性のID"""
Expand Down
177 changes: 147 additions & 30 deletions annofabapi/generated_api.py

Large diffs are not rendered by default.

45 changes: 5 additions & 40 deletions annofabapi/generated_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_annotation_specs_v2(self, project_id: str, query_params: Optional[dict[s
project_id (str): プロジェクトID (required)
query_params (dict[str, Any]): Query Parameters
cache (str): CACHE TIMESTAMP
history_id (str): 過去のアノテーション仕様を取得する場合、[アノテーション仕様履歴取得](#operation/getAnnotationSpecsHistories)APIで取得した `history_id` の値を指定します。 未指定時は最新のアノテーション仕様を取得します。
history_id (str): 過去のアノテーション仕様を取得する場合、[アノテーション仕様履歴取得](/docs/api/#operation/getAnnotationSpecsHistories)APIで取得した `history_id` の値を指定します。 未指定時は最新のアノテーション仕様を取得します。
v (str): 取得するアノテーション仕様のフォーマットバージョンを指定します。

Returns:
Expand Down Expand Up @@ -373,7 +373,7 @@ def get_account_daily_statistics_v2(
authorizations: SignedCookieKeyPairIdSignedCookieSignatureSignedCookiePolicy


指定した期間の [ユーザー別タスク集計データ](/docs/api/#section/ArrayOfProjectAccountStatistics) を取得できるAPI。取得期間は最大3か月です。
指定した期間の [ユーザー別タスク集計データ](/docs/api/#tag/x-data-types/ArrayOfProjectAccountStatistics) を取得できるAPI。取得期間は最大3か月です。

Args:
project_id (str): プロジェクトID (required)
Expand Down Expand Up @@ -404,7 +404,7 @@ def get_inspection_daily_statistics_v2(
authorizations: SignedCookieKeyPairIdSignedCookieSignatureSignedCookiePolicy


指定した期間の [検査コメント集計データ](/docs/api/#section/ArrayOfInspectionStatistics) を取得できるAPI。取得期間は最大3か月です。
指定した期間の [検査コメント集計データ](/docs/api/#tag/x-data-types/ArrayOfInspectionStatistics) を取得できるAPI。取得期間は最大3か月です。

Args:
project_id (str): プロジェクトID (required)
Expand Down Expand Up @@ -463,7 +463,7 @@ def get_phase_daily_statistics_v2(
authorizations: SignedCookieKeyPairIdSignedCookieSignatureSignedCookiePolicy


指定した期間の [フェーズ別タスク集計データ](/docs/api/#section/ArrayOfTaskPhaseStatistics) を取得できるAPI。取得期間は最大3か月です。
指定した期間の [フェーズ別タスク集計データ](/docs/api/#tag/x-data-types/ArrayOfTaskPhaseStatistics) を取得できるAPI。取得期間は最大3か月です。

Args:
project_id (str): プロジェクトID (required)
Expand Down Expand Up @@ -492,7 +492,7 @@ def get_task_daily_statistics_v2(self, project_id: str, query_params: Optional[d
authorizations: SignedCookieKeyPairIdSignedCookieSignatureSignedCookiePolicy


指定した期間の [タスク集計データ](/docs/api/#section/ArrayOfProjectTaskStatisticsHistory) を取得できるAPI。取得期間は最大3か月です。
指定した期間の [タスク集計データ](/docs/api/#tag/x-data-types/ArrayOfProjectTaskStatisticsHistory) を取得できるAPI。取得期間は最大3か月です。

Args:
project_id (str): プロジェクトID (required)
Expand Down Expand Up @@ -688,38 +688,3 @@ def get_user_project_members_v2(self, account_id: str, query_params: Optional[di
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)

def get_user_projects_v2(self, account_id: str, query_params: Optional[dict[str, Any]] = None, **kwargs) -> tuple[Any, requests.Response]:
"""自分のプロジェクトメンバー情報検索
https://annofab.com/docs/api/#operation/getUserProjectsV2


authorizations: SignedCookieKeyPairIdSignedCookieSignatureSignedCookiePolicy


指定したユーザーが所属するプロジェクトを検索します。 本 API は `cache` クエリパラメータが同じであれば結果がキャッシュされ、以降は高速にレスポンスが返ります。

Args:
account_id (str): アカウントID (required)
query_params (dict[str, Any]): Query Parameters
page (int): 表示するページ番号
limit (int): 1ページあたりの取得するデータ件数
organization_id (str): 指定した組織に属するプロジェクトに絞り込む。未指定時は全プロジェクト。
title (str): プロジェクトタイトルでの部分一致検索。1文字以上あれば使用します。利便性のため、大文字小文字は区別しません。
status (ProjectStatus): 指定した状態のプロジェクトで絞り込む。未指定時は全プロジェクト。
input_data_type (InputDataType): 指定した入力データ種別でプロジェクトを絞り込む。未指定時は全プロジェクト
sort_by (str): `date` を指定することでプロジェクトの最新のタスク更新時間の順にソートして出力する。 未指定時はプロジェクト名でソートする。
cache (str): CACHE TIMESTAMP

Returns:
tuple[ProjectList, requests.Response]


"""
url_path = f"/users/{account_id}/projects"
http_method = "GET"
keyword_params: dict[str, Any] = {
"query_params": query_params,
}
keyword_params.update(**kwargs)
return self._request_wrapper(http_method, url_path, **keyword_params)
Loading