Skip to content

Commit 6eb3f44

Browse files
authored
Merge pull request #101 from kurusugawa-computer/fix/v0.68.1
Fix/v0.68.1
2 parents 72d1ca1 + 83ca249 commit 6eb3f44

File tree

6 files changed

+143
-3
lines changed

6 files changed

+143
-3
lines changed

annofabapi/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.23.1'
1+
__version__ = '0.23.2'

annofabapi/generated_api2.py

+28
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,34 @@ def get_annotation_specs_v2(self, project_id: str, query_params: Optional[Dict[s
5858
}
5959
return self._request_wrapper(http_method, url_path, **keyword_params)
6060

61+
#########################################
62+
# Public Method : AfOrganizationV2Api
63+
# NOTE: This method is auto generated by OpenAPI Generator
64+
#########################################
65+
66+
def get_project_task_count_v2(self, organization_id: str, project_id: str,
67+
**kwargs) -> Tuple[Any, requests.Response]:
68+
"""プロジェクトのタスク件数取得
69+
70+
71+
authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature
72+
73+
74+
75+
Args:
76+
organization_id (str): 組織ID (required)
77+
project_id (str): プロジェクトID (required)
78+
79+
Returns:
80+
Tuple[ProjectTaskCounts, requests.Response]
81+
82+
83+
"""
84+
url_path = f'/organizations/{organization_id}/projects/{project_id}/task-counts'
85+
http_method = 'GET'
86+
keyword_params: Dict[str, Any] = {}
87+
return self._request_wrapper(http_method, url_path, **keyword_params)
88+
6189
#########################################
6290
# Public Method : AfProjectMemberV2Api
6391
# NOTE: This method is auto generated by OpenAPI Generator

annofabapi/models.py

+26
Original file line numberDiff line numberDiff line change
@@ -2699,6 +2699,32 @@ class ProjectStatus(Enum):
26992699
* last_tasks_updated_datetime: str
27002700
27012701
2702+
"""
2703+
2704+
ProjectTaskCounts = Dict[str, Any]
2705+
"""
2706+
2707+
2708+
Kyes of Dict
2709+
2710+
* task_counts: List[ProjectTaskCountsTaskCounts]
2711+
2712+
2713+
"""
2714+
2715+
ProjectTaskCountsTaskCounts = Dict[str, Any]
2716+
"""
2717+
2718+
2719+
Kyes of Dict
2720+
2721+
* phase: TaskPhase
2722+
2723+
* status: TaskStatus
2724+
2725+
* count: float
2726+
該当するタスクの数
2727+
27022728
"""
27032729

27042730
ProjectTaskStatistics = Dict[str, Any]

generate/swagger/swagger-api-components.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -3553,3 +3553,18 @@
35533553
type: string
35543554
description: UnknownLabel
35553555
example: "UnknownLabel"
3556+
ProjectTaskCounts:
3557+
type: object
3558+
properties:
3559+
task_counts:
3560+
type: array
3561+
items:
3562+
type: object
3563+
properties:
3564+
phase:
3565+
$ref: "#/components/schemas/TaskPhase"
3566+
status:
3567+
$ref: "#/components/schemas/TaskStatus"
3568+
count:
3569+
description: 該当するタスクの数
3570+
type: number

generate/swagger/swagger.v2.yaml

+57-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ info:
7676
WebhookID | プロジェクト内で一意
7777
入力データセットID | 組織内で一意
7878
79-
version: 0.68.0
79+
version: 0.68.1
8080
title: AnnoFab Web API
8181
x-logo:
8282
url: "https://annofab.com/images/logo_landscape.png"
@@ -92,6 +92,9 @@ tags:
9292
- name: af-cache-v2
9393
x-displayName: Cache
9494
description: キャッシュに関係
95+
- name: af-organization-v2
96+
x-displayName: Organization
97+
description: 組織に対する操作
9598
- name: af-project-member-v2
9699
x-displayName: Project Member
97100
description: プロジェクトメンバーに対する操作
@@ -106,6 +109,7 @@ x-tagGroups:
106109
tags:
107110
- af-annotation-specs-v2
108111
- af-cache-v2
112+
- af-organization-v2
109113
- af-project-member-v2
110114
- af-project-v2
111115
- af-statistics-v2
@@ -579,6 +583,43 @@ paths:
579583
$ref: "#/components/responses/ErrorMissingResource"
580584
503:
581585
$ref: "#/components/responses/ErrorUnderMaintenance"
586+
/organizations/{organization_id}/projects/{project_id}/task-counts:
587+
get:
588+
tags:
589+
- af-organization-v2
590+
summary: プロジェクトのタスク件数取得
591+
description: |
592+
security:
593+
- SignedCookieKeyPairId: []
594+
SignedCookiePolicy: []
595+
SignedCookieSignature: []
596+
operationId: getProjectTaskCountV2
597+
parameters:
598+
- name: organization_id
599+
in: path
600+
description: 組織ID
601+
required: true
602+
schema:
603+
$ref: "#/components/schemas/OrganizationId"
604+
- name: project_id
605+
in: path
606+
description: プロジェクトID
607+
required: true
608+
schema:
609+
$ref: "#/components/schemas/ProjectId"
610+
responses:
611+
200:
612+
description: 正常
613+
content:
614+
application/json:
615+
schema:
616+
$ref: "#/components/schemas/ProjectTaskCounts"
617+
401:
618+
$ref: "#/components/responses/ErrorUnauthorizedApi"
619+
404:
620+
$ref: "#/components/responses/ErrorMissingResource"
621+
503:
622+
$ref: "#/components/responses/ErrorUnderMaintenance"
582623
components:
583624
securitySchemes:
584625
SignedCookieKeyPairId:
@@ -4135,3 +4176,18 @@ components:
41354176
type: string
41364177
description: UnknownLabel
41374178
example: "UnknownLabel"
4179+
ProjectTaskCounts:
4180+
type: object
4181+
properties:
4182+
task_counts:
4183+
type: array
4184+
items:
4185+
type: object
4186+
properties:
4187+
phase:
4188+
$ref: "#/components/schemas/TaskPhase"
4189+
status:
4190+
$ref: "#/components/schemas/TaskStatus"
4191+
count:
4192+
description: 該当するタスクの数
4193+
type: number

generate/swagger/swagger.yaml

+16-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ info:
7676
WebhookID | プロジェクト内で一意
7777
入力データセットID | 組織内で一意
7878
79-
version: 0.68.0
79+
version: 0.68.1
8080
title: AnnoFab Web API
8181
x-logo:
8282
url: "https://annofab.com/images/logo_landscape.png"
@@ -8108,3 +8108,18 @@ components:
81088108
type: string
81098109
description: UnknownLabel
81108110
example: "UnknownLabel"
8111+
ProjectTaskCounts:
8112+
type: object
8113+
properties:
8114+
task_counts:
8115+
type: array
8116+
items:
8117+
type: object
8118+
properties:
8119+
phase:
8120+
$ref: "#/components/schemas/TaskPhase"
8121+
status:
8122+
$ref: "#/components/schemas/TaskStatus"
8123+
count:
8124+
description: 該当するタスクの数
8125+
type: number

0 commit comments

Comments
 (0)