Skip to content

Commit 5dd601b

Browse files
committed
version up v0.53.0
1 parent 9a10b0e commit 5dd601b

File tree

2 files changed

+8
-311
lines changed

2 files changed

+8
-311
lines changed

annofabapi/generated_api.py

-184
Original file line numberDiff line numberDiff line change
@@ -544,146 +544,6 @@ def put_annotation_specs(self,
544544
}
545545
return self._request_wrapper(http_method, url_path, **keyword_params)
546546

547-
#########################################
548-
# Public Method : AfDeprecatedApi
549-
# NOTE: This method is auto generated by OpenAPI Generator
550-
#########################################
551-
552-
def permanent_redirect1(self,
553-
) -> Tuple[Any, requests.Response]: # noqa: E501
554-
"""所属プロジェクト一括取得
555-
556-
DEPRECATED
557-
558-
[/my/projects](#operation/getMyProjects)にリダイレクトされます。
559-
560-
Authorizations: Everyone,
561-
562-
Args:
563-
564-
Returns:
565-
Tuple[, requests.Response]
566-
567-
"""
568-
warnings.warn("deprecated", DeprecationWarning)
569-
url_path = f'/projects'
570-
http_method = 'GET'
571-
keyword_params: Dict[str, Any] = {}
572-
return self._request_wrapper(http_method, url_path, **keyword_params)
573-
574-
def permanent_redirect2(
575-
self,
576-
project_id: str,
577-
) -> Tuple[Any, requests.Response]: # noqa: E501
578-
"""自分のプロジェクトメンバー取得
579-
580-
DEPRECATED
581-
582-
[/my/projects/{project_id}/member](#operation/getMyMemberInProject) にリダイレクトされます。
583-
584-
Authorizations: AllProjectMember,
585-
586-
Args:
587-
project_id (str): プロジェクトID (required)
588-
589-
Returns:
590-
Tuple[, requests.Response]
591-
592-
"""
593-
warnings.warn("deprecated", DeprecationWarning)
594-
url_path = f'/projects/{project_id}/my-member'
595-
http_method = 'GET'
596-
keyword_params: Dict[str, Any] = {}
597-
return self._request_wrapper(http_method, url_path, **keyword_params)
598-
599-
def permanent_redirect3(self,
600-
) -> Tuple[Any, requests.Response]: # noqa: E501
601-
"""自分のアカウント取得
602-
603-
DEPRECATED
604-
605-
[/my/account](#operation/getMyAccount) にリダイレクトされます。
606-
607-
Authorizations: Everyone,
608-
609-
Args:
610-
611-
Returns:
612-
Tuple[, requests.Response]
613-
614-
"""
615-
warnings.warn("deprecated", DeprecationWarning)
616-
url_path = f'/accounts/my'
617-
http_method = 'GET'
618-
keyword_params: Dict[str, Any] = {}
619-
return self._request_wrapper(http_method, url_path, **keyword_params)
620-
621-
def permanent_redirect4(self,
622-
) -> Tuple[Any, requests.Response]: # noqa: E501
623-
"""自分のアカウント情報更新
624-
625-
DEPRECATED
626-
627-
[/my/account](#operation/putMyAccount) にリダイレクトされます。
628-
629-
Authorizations: Everyone,
630-
631-
Args:
632-
633-
Returns:
634-
Tuple[, requests.Response]
635-
636-
"""
637-
warnings.warn("deprecated", DeprecationWarning)
638-
url_path = f'/accounts/my'
639-
http_method = 'PUT'
640-
keyword_params: Dict[str, Any] = {}
641-
return self._request_wrapper(http_method, url_path, **keyword_params)
642-
643-
def permanent_redirect5(self,
644-
) -> Tuple[Any, requests.Response]: # noqa: E501
645-
"""アカウント削除step1
646-
647-
DEPRECATED
648-
649-
[/my/account/delete-request](#operation/initiateMyAccountDelete) にリダイレクトされます。
650-
651-
Authorizations: Everyone,
652-
653-
Args:
654-
655-
Returns:
656-
Tuple[, requests.Response]
657-
658-
"""
659-
warnings.warn("deprecated", DeprecationWarning)
660-
url_path = f'/accounts/my/delete-request'
661-
http_method = 'POST'
662-
keyword_params: Dict[str, Any] = {}
663-
return self._request_wrapper(http_method, url_path, **keyword_params)
664-
665-
def permanent_redirect6(self,
666-
) -> Tuple[Any, requests.Response]: # noqa: E501
667-
"""アカウント削除step2(確定)
668-
669-
DEPRECATED
670-
671-
[/my/account/delete-request/confirm](#operation/confirmMyAccountDelete) にリダイレクトされます。
672-
673-
Authorizations: EveryoneRequestBody,
674-
675-
Args:
676-
677-
Returns:
678-
Tuple[, requests.Response]
679-
680-
"""
681-
warnings.warn("deprecated", DeprecationWarning)
682-
url_path = f'/accounts/my/delete-request/confirm'
683-
http_method = 'POST'
684-
keyword_params: Dict[str, Any] = {}
685-
return self._request_wrapper(http_method, url_path, **keyword_params)
686-
687547
#########################################
688548
# Public Method : AfInputApi
689549
# NOTE: This method is auto generated by OpenAPI Generator
@@ -1489,50 +1349,6 @@ def get_projects_of_organization(
14891349
}
14901350
return self._request_wrapper(http_method, url_path, **keyword_params)
14911351

1492-
def permanent_redirect7(self,
1493-
) -> Tuple[Any, requests.Response]: # noqa: E501
1494-
"""所属組織一括取得
1495-
1496-
DEPRECATED
1497-
1498-
[/my/organizations](#operation/getMyOrganizations) にリダイレクトされます。
1499-
1500-
Authorizations: AllOrganizationMember,
1501-
1502-
Args:
1503-
1504-
Returns:
1505-
Tuple[, requests.Response]
1506-
1507-
"""
1508-
warnings.warn("deprecated", DeprecationWarning)
1509-
url_path = f'/organizations'
1510-
http_method = 'GET'
1511-
keyword_params: Dict[str, Any] = {}
1512-
return self._request_wrapper(http_method, url_path, **keyword_params)
1513-
1514-
def permanent_redirect8(self,
1515-
) -> Tuple[Any, requests.Response]: # noqa: E501
1516-
"""組織名変更
1517-
1518-
DEPRECATED
1519-
1520-
[/my/organizations](#operation/updateOrganization) にリダイレクトされます。
1521-
1522-
Authorizations: OrganizationOwner,
1523-
1524-
Args:
1525-
1526-
Returns:
1527-
Tuple[, requests.Response]
1528-
1529-
"""
1530-
warnings.warn("deprecated", DeprecationWarning)
1531-
url_path = f'/organizations'
1532-
http_method = 'PUT'
1533-
keyword_params: Dict[str, Any] = {}
1534-
return self._request_wrapper(http_method, url_path, **keyword_params)
1535-
15361352
#########################################
15371353
# Public Method : AfOrganizationMemberApi
15381354
# NOTE: This method is auto generated by OpenAPI Generator

generate/swagger.yaml

+8-127
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ openapi: "3.0.0"
22
info:
33
description: |
44
[AnnoFab](https://annofab.com) のWeb APIです。
5+
キャッシュされているV2のAPIは[こちら](https://annofab.com/docs/api/v2)です。
56
67
APIベースURL: https://annofab.com/api/v1<br>
78
例) /projects というAPIを使う場合、 https://annofab.com/api/v1/projects をリクエストします。
@@ -45,7 +46,7 @@ info:
4546
* `_type` 属性を指定しない場合は、リクエストボディで指定された `_type` 以外の属性からデコードすべき型を推論します。適切な型が見つからない場合はエラーになります。
4647
* `_type` 属性は「推論が失敗して別の型にデコードされる」ことを防ぐために指定することを推奨します。しかし、利便性のために一部APIを除き指定は必須ではありません。
4748
48-
version: 0.52.0
49+
version: 0.53.0
4950
title: AnnoFab Web API
5051
x-logo:
5152
url: "https://annofab.com/images/logo_landscape.png"
@@ -120,8 +121,6 @@ tags:
120121
description: バッチ処理ジョブに対する操作
121122
- name: af-webhook
122123
description: Webhookに対する操作
123-
- name: af-deprecated
124-
description: 廃止予定API
125124
paths:
126125
/login:
127126
post:
@@ -566,20 +565,6 @@ paths:
566565
401:
567566
$ref: "#/components/responses/ErrorUnauthorizedApi"
568567
/organizations:
569-
get:
570-
tags:
571-
- af-organization
572-
summary: 所属組織一括取得
573-
deprecated: true
574-
description: |
575-
[/my/organizations](#operation/getMyOrganizations) にリダイレクトされます。
576-
security:
577-
- AllOrganizationMember: []
578-
operationId: permanentRedirect7
579-
responses:
580-
308:
581-
description: リダイレクト
582-
content: {}
583568
post:
584569
tags:
585570
- af-organization
@@ -608,20 +593,6 @@ paths:
608593
$ref: "#/components/responses/ErrorUnauthorizedApi"
609594
503:
610595
$ref: "#/components/responses/ErrorUnderMaintenance"
611-
put:
612-
tags:
613-
- af-organization
614-
summary: 組織名変更
615-
deprecated: true
616-
description: |
617-
[/my/organizations](#operation/updateOrganization) にリダイレクトされます。
618-
security:
619-
- OrganizationOwner: []
620-
operationId: permanentRedirect8
621-
responses:
622-
308:
623-
description: リダイレクト
624-
content: {}
625596
/my/organizations:
626597
get:
627598
tags:
@@ -4303,102 +4274,6 @@ paths:
43034274
$ref: "#/components/responses/ErrorMissingResource"
43044275
503:
43054276
$ref: "#/components/responses/ErrorUnderMaintenance"
4306-
/projects:
4307-
get:
4308-
tags:
4309-
- af-deprecated
4310-
summary: 所属プロジェクト一括取得
4311-
deprecated: true
4312-
description: |
4313-
[/my/projects](#operation/getMyProjects)にリダイレクトされます。
4314-
security:
4315-
- Everyone: []
4316-
operationId: permanentRedirect1
4317-
responses:
4318-
308:
4319-
description: リダイレクト
4320-
content: {}
4321-
/projects/{project_id}/my-member:
4322-
get:
4323-
tags:
4324-
- af-deprecated
4325-
summary: 自分のプロジェクトメンバー取得
4326-
deprecated: true
4327-
description: |
4328-
[/my/projects/{project_id}/member](#operation/getMyMemberInProject) にリダイレクトされます。
4329-
security:
4330-
- AllProjectMember: []
4331-
operationId: permanentRedirect2
4332-
parameters:
4333-
- name: project_id
4334-
in: path
4335-
description: プロジェクトID
4336-
required: true
4337-
schema:
4338-
$ref: "#/components/schemas/ProjectId"
4339-
responses:
4340-
308:
4341-
description: リダイレクト
4342-
content: {}
4343-
/accounts/my:
4344-
get:
4345-
tags:
4346-
- af-deprecated
4347-
summary: 自分のアカウント取得
4348-
deprecated: true
4349-
description: |
4350-
[/my/account](#operation/getMyAccount) にリダイレクトされます。
4351-
security:
4352-
- Everyone: []
4353-
operationId: permanentRedirect3
4354-
responses:
4355-
308:
4356-
description: リダイレクト
4357-
content: {}
4358-
put:
4359-
tags:
4360-
- af-deprecated
4361-
summary: 自分のアカウント情報更新
4362-
deprecated: true
4363-
description: |
4364-
[/my/account](#operation/putMyAccount) にリダイレクトされます。
4365-
security:
4366-
- Everyone: []
4367-
operationId: permanentRedirect4
4368-
responses:
4369-
308:
4370-
description: リダイレクト
4371-
content: {}
4372-
/accounts/my/delete-request:
4373-
post:
4374-
tags:
4375-
- af-deprecated
4376-
summary: アカウント削除step1
4377-
deprecated: true
4378-
description: |
4379-
[/my/account/delete-request](#operation/initiateMyAccountDelete) にリダイレクトされます。
4380-
security:
4381-
- Everyone: []
4382-
operationId: permanentRedirect5
4383-
responses:
4384-
308:
4385-
description: リダイレクト
4386-
content: {}
4387-
/accounts/my/delete-request/confirm:
4388-
post:
4389-
tags:
4390-
- af-deprecated
4391-
summary: アカウント削除step2(確定)
4392-
deprecated: true
4393-
description: |
4394-
[/my/account/delete-request/confirm](#operation/confirmMyAccountDelete) にリダイレクトされます。
4395-
security:
4396-
- EveryoneRequestBody: []
4397-
operationId: permanentRedirect6
4398-
responses:
4399-
308:
4400-
description: リダイレクト
4401-
content: {}
44024277
components:
44034278
securitySchemes:
44044279
EveryoneRequestBody:
@@ -5494,6 +5369,12 @@ components:
54945369
true の場合はcopyInputs、copyTasksWithAnnotations によるコピー対象に加えて「補助情報」のコピーも行います。
54955370
false の場合はcopyInputs、copyTasksWithAnnotations によるコピー対象のコピーのみを行います。
54965371
default: false
5372+
copy_instructions:
5373+
type: boolean
5374+
description: |
5375+
true の場合はcopyInputs、copyTasksWithAnnotations によるコピー対象に加えて「作業ガイド」のコピーも行います。
5376+
false の場合はcopyInputs、copyTasksWithAnnotations によるコピー対象のコピーのみを行います。
5377+
default: false
54975378
ProjectMember:
54985379
type: object
54995380
required:

0 commit comments

Comments
 (0)