@@ -611,7 +611,7 @@ def create_temp_path(self, project_id: str, header_params: Optional[Dict[str, An
611
611
authorizations: AllProjectMember
612
612
613
613
614
- 「複数の入力データを圧縮したZIPファイル」や「4MBを超える画像」などをAnnoFabに一時的に保存するための、URLと登録用データパスを発行します。 このAPIと他のAPIを以下に示すように使うことで、ZIPファイルなどをAFにアップロードできます。 1. 本APIを実行して、URLを取得する。 * `curl -X POST -H 'Content-Type: CONTENT_TYPE_HERE' 'https://annofab.com/api/v1/projects/(プロジェクトID) /create-temp-path` 2. 1で取得したURLに、一時保存したいファイルをPUTする。 * `curl -X PUT -H \" Content-Type: CONTENT_TYPE_HERE' --data-binary @/hoge.zip 'https://( 発行されたURL) '` 3. 1で取得した登録用データパスを [入力データ登録API](#operation/putInputData)のリクエストボディ `input_data_path` に指定する。 * `curl -X PUT -H 'Content-Type: text/json\" -d '{\" input_data_name\" :\" ... \" , \" input_data_path\" :\" (登録用データパス)\" }' '/projects/{project_id}/inputs/{input_data_id}'` ここで、1と2で `CONTENT_TYPE_HERE` は必ず一致しなければいけません。 ZIPファイルの場合は `application/zip` 、画像ファイルの場合は `image/png` など、適切な Content-Type を指定します。 登録するファイルはどのような内容であれ、アップロードから24時間経過すると削除されます。 したがって、ZIP圧縮した入力データを登録する場合は、URL発行から24時間以内に完了してください。
614
+ 「複数の入力データを圧縮したZIPファイル」や「4MBを超える画像」などをAnnoFabに一時的に保存するための、URLと登録用データパスを発行します。 このAPIと他のAPIを以下に示すように使うことで、ZIPファイルなどをAFにアップロードできます。 1. 本APIを実行して、URLを取得する。 * `curl -X POST -H 'Content-Type: CONTENT_TYPE_HERE' 'https://annofab.com/api/v1/projects/{project_id} /create-temp-path' ` 2. 1で取得したURLに、一時保存したいファイルをPUTする。 * `curl -X PUT -H ' Content-Type: CONTENT_TYPE_HERE' --data-binary @/hoge.zip 'https://( 発行されたURL) '` 3. 1で取得した登録用データパスを [入力データ登録API](#operation/putInputData)のリクエストボディ `input_data_path` に指定する。 * `curl -X PUT -H 'Content-Type: text/json' -d '{\" input_data_name\" :\" (表示名) \" , \" input_data_path\" :\" (登録用データパス)\" }' 'https://annofab.com/api/v1 /projects/{project_id}/inputs/{input_data_id}'` ここで、1と2で `CONTENT_TYPE_HERE` は必ず一致しなければいけません。 ZIPファイルの場合は `application/zip` 、画像ファイルの場合は `image/png` など、適切な Content-Type を指定します。 登録するファイルはどのような内容であれ、アップロードから24時間経過すると削除されます。 したがって、ZIP圧縮した入力データを登録する場合は、URL発行から24時間以内に完了してください。
615
615
616
616
Args:
617
617
project_id (str): プロジェクトID (required)
@@ -2094,58 +2094,6 @@ def delete_task(self, project_id: str, task_id: str, **kwargs) -> Tuple[Any, req
2094
2094
keyword_params : Dict [str , Any ] = {}
2095
2095
return self ._request_wrapper (http_method , url_path , ** keyword_params )
2096
2096
2097
- def get_histories_with_pro_id_tas_id_tas_his_id (self , project_id : str , task_id : str , task_history_id : str ,
2098
- ** kwargs ) -> Tuple [Any , requests .Response ]:
2099
- """タスク履歴取得
2100
-
2101
- .. deprecated:: X
2102
-
2103
- authorizations: AllProjectMember
2104
-
2105
-
2106
-
2107
- Args:
2108
- project_id (str): プロジェクトID (required)
2109
- task_id (str): タスクID (required)
2110
- task_history_id (str): タスク履歴ID (required)
2111
-
2112
- Returns:
2113
- Tuple[List[TaskHistory], requests.Response]
2114
-
2115
-
2116
- """
2117
- warnings .warn ("deprecated" , DeprecationWarning )
2118
- url_path = f'/projects/{ project_id } /tasks/{ task_id } /histories/{ task_history_id } '
2119
- http_method = 'GET'
2120
- keyword_params : Dict [str , Any ] = {}
2121
- return self ._request_wrapper (http_method , url_path , ** keyword_params )
2122
-
2123
- def get_history_events_with_pro_id_tas_id (self , project_id : str , task_id : str ,
2124
- ** kwargs ) -> Tuple [Any , requests .Response ]:
2125
- """タスク履歴イベント取得
2126
-
2127
- .. deprecated:: X
2128
-
2129
- authorizations: AllProjectMember
2130
-
2131
-
2132
- 作業時間を計算したタスク履歴ではなく、その元となったタスク履歴イベントを一括で取得します。
2133
-
2134
- Args:
2135
- project_id (str): プロジェクトID (required)
2136
- task_id (str): タスクID (required)
2137
-
2138
- Returns:
2139
- Tuple[List[TaskHistoryEvent], requests.Response]
2140
-
2141
-
2142
- """
2143
- warnings .warn ("deprecated" , DeprecationWarning )
2144
- url_path = f'/projects/{ project_id } /tasks/{ task_id } /history-events'
2145
- http_method = 'GET'
2146
- keyword_params : Dict [str , Any ] = {}
2147
- return self ._request_wrapper (http_method , url_path , ** keyword_params )
2148
-
2149
2097
def get_task (self , project_id : str , task_id : str , ** kwargs ) -> Tuple [Any , requests .Response ]:
2150
2098
"""タスク取得
2151
2099
@@ -2257,29 +2205,6 @@ def get_tasks(self, project_id: str, query_params: Optional[Dict[str, Any]] = No
2257
2205
}
2258
2206
return self ._request_wrapper (http_method , url_path , ** keyword_params )
2259
2207
2260
- def get_tasks_inputs_with_pro_id (self , project_id : str , ** kwargs ) -> Tuple [Any , requests .Response ]:
2261
- """【非推奨】タスク-入力データ一括取得
2262
-
2263
- .. deprecated:: X
2264
-
2265
- authorizations: AllProjectMember
2266
-
2267
-
2268
-
2269
- Args:
2270
- project_id (str): プロジェクトID (required)
2271
-
2272
- Returns:
2273
- Tuple[TasksInputs, requests.Response]
2274
-
2275
-
2276
- """
2277
- warnings .warn ("deprecated" , DeprecationWarning )
2278
- url_path = f'/projects/{ project_id } /tasks-inputs'
2279
- http_method = 'GET'
2280
- keyword_params : Dict [str , Any ] = {}
2281
- return self ._request_wrapper (http_method , url_path , ** keyword_params )
2282
-
2283
2208
def initiate_tasks_generation (self , project_id : str , request_body : Optional [Any ] = None ,
2284
2209
** kwargs ) -> Tuple [Any , requests .Response ]:
2285
2210
"""タスク一括作成
0 commit comments