Skip to content

Fix/v0.68.1 #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 24, 2019
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
2 changes: 1 addition & 1 deletion annofabapi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.23.1'
__version__ = '0.23.2'
28 changes: 28 additions & 0 deletions annofabapi/generated_api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,34 @@ def get_annotation_specs_v2(self, project_id: str, query_params: Optional[Dict[s
}
return self._request_wrapper(http_method, url_path, **keyword_params)

#########################################
# Public Method : AfOrganizationV2Api
# NOTE: This method is auto generated by OpenAPI Generator
#########################################

def get_project_task_count_v2(self, organization_id: str, project_id: str,
**kwargs) -> Tuple[Any, requests.Response]:
"""プロジェクトのタスク件数取得


authorizations: SignedCookieKeyPairId, SignedCookiePolicy, SignedCookieSignature



Args:
organization_id (str): 組織ID (required)
project_id (str): プロジェクトID (required)

Returns:
Tuple[ProjectTaskCounts, requests.Response]


"""
url_path = f'/organizations/{organization_id}/projects/{project_id}/task-counts'
http_method = 'GET'
keyword_params: Dict[str, Any] = {}
return self._request_wrapper(http_method, url_path, **keyword_params)

#########################################
# Public Method : AfProjectMemberV2Api
# NOTE: This method is auto generated by OpenAPI Generator
Expand Down
26 changes: 26 additions & 0 deletions annofabapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,32 @@ class ProjectStatus(Enum):
* last_tasks_updated_datetime: str


"""

ProjectTaskCounts = Dict[str, Any]
"""


Kyes of Dict

* task_counts: List[ProjectTaskCountsTaskCounts]


"""

ProjectTaskCountsTaskCounts = Dict[str, Any]
"""


Kyes of Dict

* phase: TaskPhase

* status: TaskStatus

* count: float
該当するタスクの数

"""

ProjectTaskStatistics = Dict[str, Any]
Expand Down
15 changes: 15 additions & 0 deletions generate/swagger/swagger-api-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3553,3 +3553,18 @@
type: string
description: UnknownLabel
example: "UnknownLabel"
ProjectTaskCounts:
type: object
properties:
task_counts:
type: array
items:
type: object
properties:
phase:
$ref: "#/components/schemas/TaskPhase"
status:
$ref: "#/components/schemas/TaskStatus"
count:
description: 該当するタスクの数
type: number
58 changes: 57 additions & 1 deletion generate/swagger/swagger.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ info:
WebhookID | プロジェクト内で一意
入力データセットID | 組織内で一意

version: 0.68.0
version: 0.68.1
title: AnnoFab Web API
x-logo:
url: "https://annofab.com/images/logo_landscape.png"
Expand All @@ -92,6 +92,9 @@ tags:
- name: af-cache-v2
x-displayName: Cache
description: キャッシュに関係
- name: af-organization-v2
x-displayName: Organization
description: 組織に対する操作
- name: af-project-member-v2
x-displayName: Project Member
description: プロジェクトメンバーに対する操作
Expand All @@ -106,6 +109,7 @@ x-tagGroups:
tags:
- af-annotation-specs-v2
- af-cache-v2
- af-organization-v2
- af-project-member-v2
- af-project-v2
- af-statistics-v2
Expand Down Expand Up @@ -579,6 +583,43 @@ paths:
$ref: "#/components/responses/ErrorMissingResource"
503:
$ref: "#/components/responses/ErrorUnderMaintenance"
/organizations/{organization_id}/projects/{project_id}/task-counts:
get:
tags:
- af-organization-v2
summary: プロジェクトのタスク件数取得
description: |
security:
- SignedCookieKeyPairId: []
SignedCookiePolicy: []
SignedCookieSignature: []
operationId: getProjectTaskCountV2
parameters:
- name: organization_id
in: path
description: 組織ID
required: true
schema:
$ref: "#/components/schemas/OrganizationId"
- name: project_id
in: path
description: プロジェクトID
required: true
schema:
$ref: "#/components/schemas/ProjectId"
responses:
200:
description: 正常
content:
application/json:
schema:
$ref: "#/components/schemas/ProjectTaskCounts"
401:
$ref: "#/components/responses/ErrorUnauthorizedApi"
404:
$ref: "#/components/responses/ErrorMissingResource"
503:
$ref: "#/components/responses/ErrorUnderMaintenance"
components:
securitySchemes:
SignedCookieKeyPairId:
Expand Down Expand Up @@ -4135,3 +4176,18 @@ components:
type: string
description: UnknownLabel
example: "UnknownLabel"
ProjectTaskCounts:
type: object
properties:
task_counts:
type: array
items:
type: object
properties:
phase:
$ref: "#/components/schemas/TaskPhase"
status:
$ref: "#/components/schemas/TaskStatus"
count:
description: 該当するタスクの数
type: number
17 changes: 16 additions & 1 deletion generate/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ info:
WebhookID | プロジェクト内で一意
入力データセットID | 組織内で一意

version: 0.68.0
version: 0.68.1
title: AnnoFab Web API
x-logo:
url: "https://annofab.com/images/logo_landscape.png"
Expand Down Expand Up @@ -8108,3 +8108,18 @@ components:
type: string
description: UnknownLabel
example: "UnknownLabel"
ProjectTaskCounts:
type: object
properties:
task_counts:
type: array
items:
type: object
properties:
phase:
$ref: "#/components/schemas/TaskPhase"
status:
$ref: "#/components/schemas/TaskStatus"
count:
description: 該当するタスクの数
type: number