|
1 |
| -# ruff: noqa: E501, ANN401 |
2 |
| -# pylint: disable=too-many-lines,trailing-whitespace |
3 |
| - |
4 | 1 | """
|
5 | 2 | AbstractAnnofabApiのヘッダ部分
|
6 | 3 |
|
@@ -1446,6 +1443,89 @@ def put_organization(self, organization_name: str, request_body: Optional[Any] =
|
1446 | 1443 | keyword_params.update(**kwargs)
|
1447 | 1444 | return self._request_wrapper(http_method, url_path, **keyword_params)
|
1448 | 1445 |
|
| 1446 | + ######################################### |
| 1447 | + # Public Method : AfOrganizationIdpApi |
| 1448 | + # NOTE: This method is auto generated by OpenAPI Generator |
| 1449 | + ######################################### |
| 1450 | + |
| 1451 | + def delete_organization_idp(self, organization_name: str, id: str, **kwargs) -> tuple[Any, requests.Response]: |
| 1452 | + """組織のIDプロバイダーを削除 |
| 1453 | + https://annofab.com/docs/api/#operation/deleteOrganizationIdp |
| 1454 | +
|
| 1455 | +
|
| 1456 | + authorizations: OrganizationAdministrator, OrganizationOwner |
| 1457 | +
|
| 1458 | +
|
| 1459 | + 組織のIDプロバイダーを削除します。 **このAPIは Annofab に許可された組織だけで使用できます。また、予告なく変更されることがあります。** |
| 1460 | +
|
| 1461 | + Args: |
| 1462 | + organization_name (str): 組織名 (required) |
| 1463 | + id (str): (required) |
| 1464 | +
|
| 1465 | + Returns: |
| 1466 | + tuple[OrganizationOidcIdp, requests.Response] |
| 1467 | +
|
| 1468 | +
|
| 1469 | + """ |
| 1470 | + url_path = f"/organizations/{organization_name}/id-providers/{id}" |
| 1471 | + http_method = "DELETE" |
| 1472 | + keyword_params: dict[str, Any] = {} |
| 1473 | + keyword_params.update(**kwargs) |
| 1474 | + return self._request_wrapper(http_method, url_path, **keyword_params) |
| 1475 | + |
| 1476 | + def get_organization_idp_list(self, organization_name: str, **kwargs) -> tuple[Any, requests.Response]: |
| 1477 | + """組織のIDプロバイダー一覧取得 |
| 1478 | + https://annofab.com/docs/api/#operation/getOrganizationIdpList |
| 1479 | +
|
| 1480 | +
|
| 1481 | + authorizations: AllOrganizationMember |
| 1482 | +
|
| 1483 | +
|
| 1484 | + 組織のIDプロバイダー一覧を取得します。 2024/10現在、一つの組織が持つことのできるIDプロバイダーは1つのみです。 **このAPIは Annofab に許可された組織だけで使用できます。また、予告なく変更されることがあります。** |
| 1485 | +
|
| 1486 | + Args: |
| 1487 | + organization_name (str): 組織名 (required) |
| 1488 | +
|
| 1489 | + Returns: |
| 1490 | + tuple[list[OrganizationOidcIdp], requests.Response] |
| 1491 | +
|
| 1492 | +
|
| 1493 | + """ |
| 1494 | + url_path = f"/organizations/{organization_name}/id-providers" |
| 1495 | + http_method = "GET" |
| 1496 | + keyword_params: dict[str, Any] = {} |
| 1497 | + keyword_params.update(**kwargs) |
| 1498 | + return self._request_wrapper(http_method, url_path, **keyword_params) |
| 1499 | + |
| 1500 | + def put_organization_idp(self, organization_name: str, id: str, request_body: Optional[Any] = None, **kwargs) -> tuple[Any, requests.Response]: |
| 1501 | + """組織のIDプロバイダーを作成・更新 |
| 1502 | + https://annofab.com/docs/api/#operation/putOrganizationIdp |
| 1503 | +
|
| 1504 | +
|
| 1505 | + authorizations: OrganizationAdministrator, OrganizationOwner |
| 1506 | +
|
| 1507 | +
|
| 1508 | + 組織のIDプロバイダーを作成または更新します。 2024/10現在、一つの組織が持つことのできるIDプロバイダーは1つのみです。 **このAPIは Annofab に許可された組織だけで使用できます。また、予告なく変更されることがあります。** |
| 1509 | +
|
| 1510 | + Args: |
| 1511 | + organization_name (str): 組織名 (required) |
| 1512 | + id (str): (required) |
| 1513 | + request_body (Any): Request Body |
| 1514 | + put_organization_idp_body (PutOrganizationIdpBody): (required) |
| 1515 | +
|
| 1516 | + Returns: |
| 1517 | + tuple[OrganizationOidcIdp, requests.Response] |
| 1518 | +
|
| 1519 | +
|
| 1520 | + """ |
| 1521 | + url_path = f"/organizations/{organization_name}/id-providers/{id}" |
| 1522 | + http_method = "PUT" |
| 1523 | + keyword_params: dict[str, Any] = { |
| 1524 | + "request_body": request_body, |
| 1525 | + } |
| 1526 | + keyword_params.update(**kwargs) |
| 1527 | + return self._request_wrapper(http_method, url_path, **keyword_params) |
| 1528 | + |
1449 | 1529 | #########################################
|
1450 | 1530 | # Public Method : AfOrganizationInputApi
|
1451 | 1531 | # NOTE: This method is auto generated by OpenAPI Generator
|
|
0 commit comments