@@ -1011,7 +1011,7 @@ def delete_project_job(
1011
1011
1012
1012
Args:
1013
1013
project_id (str): プロジェクトID (required)
1014
- job_type (JobType ): ジョブの種別。[詳細はこちら](#section/JobType )。 (required)
1014
+ job_type (ProjectJobType ): ジョブの種別。[詳細はこちら](#section/ProjectJobType )。 (required)
1015
1015
job_id (str): ジョブID (required)
1016
1016
1017
1017
Returns:
@@ -1024,28 +1024,60 @@ def delete_project_job(
1024
1024
keyword_params : Dict [str , Any ] = {}
1025
1025
return self ._request_wrapper (http_method , url_path , ** keyword_params )
1026
1026
1027
+ def get_organization_job (
1028
+ self , organization_name : str , query_params : Optional [Dict [str , Any ]] = None , ** kwargs
1029
+ ) -> Tuple [Any , requests .Response ]:
1030
+ """組織のバックグラウンドジョブ情報取得
1031
+ https://annofab.com/docs/api/#operation/getOrganizationJob
1032
+
1033
+
1034
+ authorizations: AllOrganizationMember
1035
+
1036
+
1037
+ 組織のバックグラウンドジョブの情報を取得します。 取得されるジョブ情報は、作成日付の新しい順にソートされています。 バックグラウンドジョブ情報は、完了(失敗含む)から14日経過後に自動で削除されます。
1038
+
1039
+ Args:
1040
+ organization_name (str): 組織名 (required)
1041
+ query_params (Dict[str, Any]): Query Parameters
1042
+ type (str): 取得するジョブの種別。[詳細はこちら](#section/OrganizationJobType)。
1043
+ page (int): 検索結果のうち、取得したいページの番号(1始まり) 現在は未実装のパラメータです。(今後対応予定)
1044
+ limit (int): 1ページあたりの取得するデータ件数。 未指定時は1件のみ取得。
1045
+ exclusive_start_created_datetime (str): 取得するデータの直前の作成日時
1046
+
1047
+ Returns:
1048
+ Tuple[OrganizationJobInfoContainer, requests.Response]
1049
+
1050
+
1051
+ """
1052
+ url_path = f"/organizations/{ organization_name } /jobs"
1053
+ http_method = "GET"
1054
+ keyword_params : Dict [str , Any ] = {
1055
+ "query_params" : query_params ,
1056
+ }
1057
+ return self ._request_wrapper (http_method , url_path , ** keyword_params )
1058
+
1027
1059
def get_project_job (
1028
1060
self , project_id : str , query_params : Optional [Dict [str , Any ]] = None , ** kwargs
1029
1061
) -> Tuple [Any , requests .Response ]:
1030
- """バックグラウンドジョブ情報取得
1062
+ """プロジェクトのバックグラウンドジョブ情報取得
1031
1063
https://annofab.com/docs/api/#operation/getProjectJob
1032
1064
1033
1065
1034
1066
authorizations: AllProjectMember
1035
1067
1036
1068
1037
- バックグラウンドジョブの情報を取得します 。 取得されるジョブ情報は、作成日付の新しい順にソートされています。 バックグラウンドジョブ情報は、完了(失敗含む)から14日経過後に自動で削除されます。
1069
+ プロジェクトのバックグラウンドジョブの情報を取得します 。 取得されるジョブ情報は、作成日付の新しい順にソートされています。 バックグラウンドジョブ情報は、完了(失敗含む)から14日経過後に自動で削除されます。
1038
1070
1039
1071
Args:
1040
1072
project_id (str): プロジェクトID (required)
1041
1073
query_params (Dict[str, Any]): Query Parameters
1042
- type (JobType ): 取得するジョブの種別。[詳細はこちら](#section/JobType)。 (required)
1074
+ type (ProjectJobType ): 取得するジョブの種別。[詳細はこちら](#section/ProjectJobType)。
1043
1075
page (int): 検索結果のうち、取得したいページの番号(1始まり) 現在は未実装のパラメータです。(今後対応予定)
1044
1076
limit (int): 1ページあたりの取得するデータ件数。 未指定時は1件のみ取得。
1045
1077
exclusive_start_created_datetime (str): 取得するデータの直前の作成日時
1046
1078
1047
1079
Returns:
1048
- Tuple[JobInfoContainer , requests.Response]
1080
+ Tuple[ProjectJobInfoContainer , requests.Response]
1049
1081
1050
1082
1051
1083
"""
@@ -1410,6 +1442,7 @@ def get_projects_of_organization(
1410
1442
except_account_id (str): 指定したアカウントIDをメンバーに持たないプロジェクトで絞り込む。
1411
1443
title (str): プロジェクトタイトルでの部分一致検索。1文字以上あれば使用します。利便性のため、大文字小文字は区別しません。
1412
1444
status (ProjectStatus): 指定した状態のプロジェクトで絞り込む。未指定時は全プロジェクト。
1445
+ plugin_id (str): 指定したプラグインIDを使用しているプロジェクトで絞り込む。未指定時は指定なし。
1413
1446
input_data_type (InputDataType): 指定した入力データ種別でプロジェクトを絞り込む。未指定時は全プロジェクト。
1414
1447
sort_by (str): `date` を指定することでプロジェクトの最新のタスク更新時間の順にソートして出力する。 未指定時はプロジェクト名でソートする。
1415
1448
0 commit comments