response = api.getConsumerList(page, size);
// TODO: test validations
}
@@ -426,7 +429,7 @@ public void getConsumerListTest() throws ApiException {
@Test
public void getConsumerTokenByAppIdTest() throws ApiException {
String appId = null;
- Object response = api.getConsumerTokenByAppId(appId);
+ OpenConsumerInfoDTO response = api.getConsumerTokenByAppId(appId);
// TODO: test validations
}
diff --git a/java-client/src/test/java/org/openapitools/client/api/ReleaseManagementApiTest.java b/java-client/src/test/java/org/openapitools/client/api/ReleaseManagementApiTest.java
index 6e8111d3..c0d14a4f 100644
--- a/java-client/src/test/java/org/openapitools/client/api/ReleaseManagementApiTest.java
+++ b/java-client/src/test/java/org/openapitools/client/api/ReleaseManagementApiTest.java
@@ -172,8 +172,6 @@ public void rollbackTest() throws ApiException {
String env = null;
Long releaseId = null;
String operator = null;
- Long toReleaseId = null;
- api.rollback(env, releaseId, operator, toReleaseId);
api.rollback(env, releaseId, operator);
// TODO: test validations
}
diff --git a/java-client/src/test/java/org/openapitools/client/api/PortalUserManagementApiTest.java b/java-client/src/test/java/org/openapitools/client/api/UserManagementApiTest.java
similarity index 70%
rename from java-client/src/test/java/org/openapitools/client/api/PortalUserManagementApiTest.java
rename to java-client/src/test/java/org/openapitools/client/api/UserManagementApiTest.java
index 20d981b9..32d92a03 100644
--- a/java-client/src/test/java/org/openapitools/client/api/PortalUserManagementApiTest.java
+++ b/java-client/src/test/java/org/openapitools/client/api/UserManagementApiTest.java
@@ -25,17 +25,17 @@
import java.util.Map;
/**
- * API tests for PortalUserManagementApi
+ * API tests for UserManagementApi
*/
@Disabled
-public class PortalUserManagementApiTest {
+public class UserManagementApiTest {
- private final PortalUserManagementApi api = new PortalUserManagementApi();
+ private final UserManagementApi api = new UserManagementApi();
/**
- * 修改Portal用户启用状态(new added)
+ * 修改用户启用状态(new added)
*
- * PUT /openapi/v1/users/enabled
+ * PUT /openapi/v1/users/enabled,Portal用户登录态使用当前登录用户作为operator;Consumer Token访问时需要具备ManageUsers权限并传入有效operator
*
* @throws ApiException if the Api call fails
*/
@@ -47,9 +47,9 @@ public void changeUserEnabledTest() throws ApiException {
}
/**
- * 创建或更新Portal用户(new added)
+ * 创建或更新用户(new added)
*
- * POST /openapi/v1/users
+ * POST /openapi/v1/users,Portal用户登录态使用当前登录用户作为operator;Consumer Token访问时需要具备ManageUsers权限并传入有效operator
*
* @throws ApiException if the Api call fails
*/
@@ -75,9 +75,23 @@ public void getCurrentUserTest() throws ApiException {
}
/**
- * 搜索Portal用户(new added)
+ * 获取指定用户(new added)
*
- * GET /openapi/v1/users
+ * GET /openapi/v1/users/{userId},支持Portal用户登录态或具备ManageUsers权限的Consumer Token访问
+ *
+ * @throws ApiException if the Api call fails
+ */
+ @Test
+ public void getUserByUserIdTest() throws ApiException {
+ String userId = null;
+ OpenUserInfoDTO response = api.getUserByUserId(userId);
+ // TODO: test validations
+ }
+
+ /**
+ * 搜索用户(new added)
+ *
+ * GET /openapi/v1/users,支持Portal用户登录态或具备ManageUsers权限的Consumer Token访问
*
* @throws ApiException if the Api call fails
*/
diff --git a/java-client/src/test/java/org/openapitools/client/model/OpenConsumerCreateRequestDTOTest.java b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerCreateRequestDTOTest.java
new file mode 100644
index 00000000..d0d8c2b9
--- /dev/null
+++ b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerCreateRequestDTOTest.java
@@ -0,0 +1,111 @@
+/*
+ * Apollo OpenAPI
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package org.openapitools.client.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+
+
+/**
+ * Model tests for OpenConsumerCreateRequestDTO
+ */
+public class OpenConsumerCreateRequestDTOTest {
+ private final OpenConsumerCreateRequestDTO model = new OpenConsumerCreateRequestDTO();
+
+ /**
+ * Model tests for OpenConsumerCreateRequestDTO
+ */
+ @Test
+ public void testOpenConsumerCreateRequestDTO() {
+ // TODO: test OpenConsumerCreateRequestDTO
+ }
+
+ /**
+ * Test the property 'appId'
+ */
+ @Test
+ public void appIdTest() {
+ // TODO: test appId
+ }
+
+ /**
+ * Test the property 'allowCreateApplication'
+ */
+ @Test
+ public void allowCreateApplicationTest() {
+ // TODO: test allowCreateApplication
+ }
+
+ /**
+ * Test the property 'allowManageUsers'
+ */
+ @Test
+ public void allowManageUsersTest() {
+ // TODO: test allowManageUsers
+ }
+
+ /**
+ * Test the property 'name'
+ */
+ @Test
+ public void nameTest() {
+ // TODO: test name
+ }
+
+ /**
+ * Test the property 'orgId'
+ */
+ @Test
+ public void orgIdTest() {
+ // TODO: test orgId
+ }
+
+ /**
+ * Test the property 'orgName'
+ */
+ @Test
+ public void orgNameTest() {
+ // TODO: test orgName
+ }
+
+ /**
+ * Test the property 'ownerName'
+ */
+ @Test
+ public void ownerNameTest() {
+ // TODO: test ownerName
+ }
+
+ /**
+ * Test the property 'rateLimitEnabled'
+ */
+ @Test
+ public void rateLimitEnabledTest() {
+ // TODO: test rateLimitEnabled
+ }
+
+ /**
+ * Test the property 'rateLimit'
+ */
+ @Test
+ public void rateLimitTest() {
+ // TODO: test rateLimit
+ }
+
+}
diff --git a/java-client/src/test/java/org/openapitools/client/model/OpenConsumerInfoDTOTest.java b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerInfoDTOTest.java
new file mode 100644
index 00000000..4bf9d7ea
--- /dev/null
+++ b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerInfoDTOTest.java
@@ -0,0 +1,135 @@
+/*
+ * Apollo OpenAPI
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package org.openapitools.client.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+
+
+/**
+ * Model tests for OpenConsumerInfoDTO
+ */
+public class OpenConsumerInfoDTOTest {
+ private final OpenConsumerInfoDTO model = new OpenConsumerInfoDTO();
+
+ /**
+ * Model tests for OpenConsumerInfoDTO
+ */
+ @Test
+ public void testOpenConsumerInfoDTO() {
+ // TODO: test OpenConsumerInfoDTO
+ }
+
+ /**
+ * Test the property 'appId'
+ */
+ @Test
+ public void appIdTest() {
+ // TODO: test appId
+ }
+
+ /**
+ * Test the property 'name'
+ */
+ @Test
+ public void nameTest() {
+ // TODO: test name
+ }
+
+ /**
+ * Test the property 'orgId'
+ */
+ @Test
+ public void orgIdTest() {
+ // TODO: test orgId
+ }
+
+ /**
+ * Test the property 'orgName'
+ */
+ @Test
+ public void orgNameTest() {
+ // TODO: test orgName
+ }
+
+ /**
+ * Test the property 'ownerName'
+ */
+ @Test
+ public void ownerNameTest() {
+ // TODO: test ownerName
+ }
+
+ /**
+ * Test the property 'ownerEmail'
+ */
+ @Test
+ public void ownerEmailTest() {
+ // TODO: test ownerEmail
+ }
+
+ /**
+ * Test the property 'consumerId'
+ */
+ @Test
+ public void consumerIdTest() {
+ // TODO: test consumerId
+ }
+
+ /**
+ * Test the property 'token'
+ */
+ @Test
+ public void tokenTest() {
+ // TODO: test token
+ }
+
+ /**
+ * Test the property 'allowCreateApplication'
+ */
+ @Test
+ public void allowCreateApplicationTest() {
+ // TODO: test allowCreateApplication
+ }
+
+ /**
+ * Test the property 'allowManageUsers'
+ */
+ @Test
+ public void allowManageUsersTest() {
+ // TODO: test allowManageUsers
+ }
+
+ /**
+ * Test the property 'rateLimit'
+ */
+ @Test
+ public void rateLimitTest() {
+ // TODO: test rateLimit
+ }
+
+ /**
+ * Test the property 'rateLimitEnabled'
+ */
+ @Test
+ public void rateLimitEnabledTest() {
+ // TODO: test rateLimitEnabled
+ }
+
+}
diff --git a/java-client/src/test/java/org/openapitools/client/model/OpenConsumerSummaryDTOTest.java b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerSummaryDTOTest.java
new file mode 100644
index 00000000..9170919e
--- /dev/null
+++ b/java-client/src/test/java/org/openapitools/client/model/OpenConsumerSummaryDTOTest.java
@@ -0,0 +1,127 @@
+/*
+ * Apollo OpenAPI
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package org.openapitools.client.model;
+
+import com.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import org.junit.jupiter.api.Disabled;
+import org.junit.jupiter.api.Test;
+
+
+/**
+ * Model tests for OpenConsumerSummaryDTO
+ */
+public class OpenConsumerSummaryDTOTest {
+ private final OpenConsumerSummaryDTO model = new OpenConsumerSummaryDTO();
+
+ /**
+ * Model tests for OpenConsumerSummaryDTO
+ */
+ @Test
+ public void testOpenConsumerSummaryDTO() {
+ // TODO: test OpenConsumerSummaryDTO
+ }
+
+ /**
+ * Test the property 'appId'
+ */
+ @Test
+ public void appIdTest() {
+ // TODO: test appId
+ }
+
+ /**
+ * Test the property 'name'
+ */
+ @Test
+ public void nameTest() {
+ // TODO: test name
+ }
+
+ /**
+ * Test the property 'orgId'
+ */
+ @Test
+ public void orgIdTest() {
+ // TODO: test orgId
+ }
+
+ /**
+ * Test the property 'orgName'
+ */
+ @Test
+ public void orgNameTest() {
+ // TODO: test orgName
+ }
+
+ /**
+ * Test the property 'ownerName'
+ */
+ @Test
+ public void ownerNameTest() {
+ // TODO: test ownerName
+ }
+
+ /**
+ * Test the property 'ownerEmail'
+ */
+ @Test
+ public void ownerEmailTest() {
+ // TODO: test ownerEmail
+ }
+
+ /**
+ * Test the property 'consumerId'
+ */
+ @Test
+ public void consumerIdTest() {
+ // TODO: test consumerId
+ }
+
+ /**
+ * Test the property 'allowCreateApplication'
+ */
+ @Test
+ public void allowCreateApplicationTest() {
+ // TODO: test allowCreateApplication
+ }
+
+ /**
+ * Test the property 'allowManageUsers'
+ */
+ @Test
+ public void allowManageUsersTest() {
+ // TODO: test allowManageUsers
+ }
+
+ /**
+ * Test the property 'rateLimit'
+ */
+ @Test
+ public void rateLimitTest() {
+ // TODO: test rateLimit
+ }
+
+ /**
+ * Test the property 'rateLimitEnabled'
+ */
+ @Test
+ public void rateLimitEnabledTest() {
+ // TODO: test rateLimitEnabled
+ }
+
+}
diff --git a/python/.openapi-generator/FILES b/python/.openapi-generator/FILES
index 8d323a98..684af19d 100644
--- a/python/.openapi-generator/FILES
+++ b/python/.openapi-generator/FILES
@@ -19,8 +19,8 @@ apollo_openapi/apis/tags/namespace_management_api.py
apollo_openapi/apis/tags/organization_management_api.py
apollo_openapi/apis/tags/permission_management_api.py
apollo_openapi/apis/tags/portal_management_api.py
-apollo_openapi/apis/tags/portal_user_management_api.py
apollo_openapi/apis/tags/release_management_api.py
+apollo_openapi/apis/tags/user_management_api.py
apollo_openapi/configuration.py
apollo_openapi/exceptions.py
apollo_openapi/model/__init__.py
@@ -44,6 +44,12 @@ apollo_openapi/model/open_cluster_dto.py
apollo_openapi/model/open_cluster_dto.pyi
apollo_openapi/model/open_cluster_namespace_role_user_dto.py
apollo_openapi/model/open_cluster_namespace_role_user_dto.pyi
+apollo_openapi/model/open_consumer_create_request_dto.py
+apollo_openapi/model/open_consumer_create_request_dto.pyi
+apollo_openapi/model/open_consumer_info_dto.py
+apollo_openapi/model/open_consumer_info_dto.pyi
+apollo_openapi/model/open_consumer_summary_dto.py
+apollo_openapi/model/open_consumer_summary_dto.pyi
apollo_openapi/model/open_create_app_dto.py
apollo_openapi/model/open_create_app_dto.pyi
apollo_openapi/model/open_create_namespace_dto.py
@@ -122,8 +128,8 @@ docs/apis/tags/NamespaceManagementApi.md
docs/apis/tags/OrganizationManagementApi.md
docs/apis/tags/PermissionManagementApi.md
docs/apis/tags/PortalManagementApi.md
-docs/apis/tags/PortalUserManagementApi.md
docs/apis/tags/ReleaseManagementApi.md
+docs/apis/tags/UserManagementApi.md
docs/models/ExceptionResponse.md
docs/models/MapString.md
docs/models/NamespaceGrayDelReleaseDTO.md
@@ -134,6 +140,9 @@ docs/models/OpenAppNamespaceDTO.md
docs/models/OpenAppRoleUserDTO.md
docs/models/OpenClusterDTO.md
docs/models/OpenClusterNamespaceRoleUserDTO.md
+docs/models/OpenConsumerCreateRequestDTO.md
+docs/models/OpenConsumerInfoDTO.md
+docs/models/OpenConsumerSummaryDTO.md
docs/models/OpenCreateAppDTO.md
docs/models/OpenCreateNamespaceDTO.md
docs/models/OpenEnvClusterDTO.md
@@ -182,6 +191,9 @@ test/test_models/test_open_app_namespace_dto.py
test/test_models/test_open_app_role_user_dto.py
test/test_models/test_open_cluster_dto.py
test/test_models/test_open_cluster_namespace_role_user_dto.py
+test/test_models/test_open_consumer_create_request_dto.py
+test/test_models/test_open_consumer_info_dto.py
+test/test_models/test_open_consumer_summary_dto.py
test/test_models/test_open_create_app_dto.py
test/test_models/test_open_create_namespace_dto.py
test/test_models/test_open_env_cluster_dto.py
diff --git a/python/README.md b/python/README.md
index 433209fd..11ac7486 100644
--- a/python/README.md
+++ b/python/README.md
@@ -18,8 +18,8 @@
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-- API version: 0.3.5
-- Package version: 0.3.5
+- API version: 0.3.6
+- Package version: 0.3.6
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
@@ -321,10 +321,6 @@ Class | Method | HTTP request | Description
*PortalManagementApi* | [**search_audit_logs**](docs/apis/tags/PortalManagementApi.md#search_audit_logs) | **get** /openapi/v1/apollo/audit/logs/by-name-or-type-or-operator | 搜索审计日志(new added)
*PortalManagementApi* | [**search_item_info_by_key_or_value**](docs/apis/tags/PortalManagementApi.md#search_item_info_by_key_or_value) | **get** /openapi/v1/global-search/item-info/by-key-or-value | 按Key或Value全局搜索配置(new added)
*PortalManagementApi* | [**top_favorite**](docs/apis/tags/PortalManagementApi.md#top_favorite) | **put** /openapi/v1/favorites/{favoriteId} | 收藏置顶(new added)
-*PortalUserManagementApi* | [**change_user_enabled**](docs/apis/tags/PortalUserManagementApi.md#change_user_enabled) | **put** /openapi/v1/users/enabled | 修改Portal用户启用状态(new added)
-*PortalUserManagementApi* | [**create_or_update_user**](docs/apis/tags/PortalUserManagementApi.md#create_or_update_user) | **post** /openapi/v1/users | 创建或更新Portal用户(new added)
-*PortalUserManagementApi* | [**get_current_user**](docs/apis/tags/PortalUserManagementApi.md#get_current_user) | **get** /openapi/v1/user | 获取当前Portal用户(new added)
-*PortalUserManagementApi* | [**search_users**](docs/apis/tags/PortalUserManagementApi.md#search_users) | **get** /openapi/v1/users | 搜索Portal用户(new added)
*ReleaseManagementApi* | [**compare_release**](docs/apis/tags/ReleaseManagementApi.md#compare_release) | **get** /openapi/v1/envs/{env}/releases/comparison | Compare two releases
*ReleaseManagementApi* | [**create_gray_del_release**](docs/apis/tags/ReleaseManagementApi.md#create_gray_del_release) | **post** /openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/gray-del-releases | 创建灰度删除发布 (original openapi)
*ReleaseManagementApi* | [**create_gray_release**](docs/apis/tags/ReleaseManagementApi.md#create_gray_release) | **post** /openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/branches/{branchName}/releases | 创建灰度发布 (original openapi)
@@ -333,6 +329,11 @@ Class | Method | HTTP request | Description
*ReleaseManagementApi* | [**get_release_by_id**](docs/apis/tags/ReleaseManagementApi.md#get_release_by_id) | **get** /openapi/v1/envs/{env}/releases/{releaseId} | 获取发布详情 (new added)
*ReleaseManagementApi* | [**load_latest_active_release**](docs/apis/tags/ReleaseManagementApi.md#load_latest_active_release) | **get** /openapi/v1/envs/{env}/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/releases/latest | 获取最新活跃发布 (original openapi)
*ReleaseManagementApi* | [**rollback**](docs/apis/tags/ReleaseManagementApi.md#rollback) | **put** /openapi/v1/envs/{env}/releases/{releaseId}/rollback | 回滚发布 (original openapi)
+*UserManagementApi* | [**change_user_enabled**](docs/apis/tags/UserManagementApi.md#change_user_enabled) | **put** /openapi/v1/users/enabled | 修改用户启用状态(new added)
+*UserManagementApi* | [**create_or_update_user**](docs/apis/tags/UserManagementApi.md#create_or_update_user) | **post** /openapi/v1/users | 创建或更新用户(new added)
+*UserManagementApi* | [**get_current_user**](docs/apis/tags/UserManagementApi.md#get_current_user) | **get** /openapi/v1/user | 获取当前Portal用户(new added)
+*UserManagementApi* | [**get_user_by_user_id**](docs/apis/tags/UserManagementApi.md#get_user_by_user_id) | **get** /openapi/v1/users/{userId} | 获取指定用户(new added)
+*UserManagementApi* | [**search_users**](docs/apis/tags/UserManagementApi.md#search_users) | **get** /openapi/v1/users | 搜索用户(new added)
## Documentation For Models
@@ -346,6 +347,9 @@ Class | Method | HTTP request | Description
- [OpenAppRoleUserDTO](docs/models/OpenAppRoleUserDTO.md)
- [OpenClusterDTO](docs/models/OpenClusterDTO.md)
- [OpenClusterNamespaceRoleUserDTO](docs/models/OpenClusterNamespaceRoleUserDTO.md)
+ - [OpenConsumerCreateRequestDTO](docs/models/OpenConsumerCreateRequestDTO.md)
+ - [OpenConsumerInfoDTO](docs/models/OpenConsumerInfoDTO.md)
+ - [OpenConsumerSummaryDTO](docs/models/OpenConsumerSummaryDTO.md)
- [OpenCreateAppDTO](docs/models/OpenCreateAppDTO.md)
- [OpenCreateNamespaceDTO](docs/models/OpenCreateNamespaceDTO.md)
- [OpenEnvClusterDTO](docs/models/OpenEnvClusterDTO.md)
diff --git a/python/apollo_openapi/__init__.py b/python/apollo_openapi/__init__.py
index 2148a5ac..e50ab444 100644
--- a/python/apollo_openapi/__init__.py
+++ b/python/apollo_openapi/__init__.py
@@ -10,7 +10,7 @@
Generated by: https://openapi-generator.tech
"""
-__version__ = "0.3.5"
+__version__ = "0.3.6"
# import ApiClient
from apollo_openapi.api_client import ApiClient
diff --git a/python/apollo_openapi/api_client.py b/python/apollo_openapi/api_client.py
index f2a64930..db3e6fee 100644
--- a/python/apollo_openapi/api_client.py
+++ b/python/apollo_openapi/api_client.py
@@ -1002,7 +1002,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/0.3.5/python'
+ self.user_agent = 'OpenAPI-Generator/0.3.6/python'
def __enter__(self):
return self
diff --git a/python/apollo_openapi/apis/path_to_api.py b/python/apollo_openapi/apis/path_to_api.py
index 0575979b..037ecff8 100644
--- a/python/apollo_openapi/apis/path_to_api.py
+++ b/python/apollo_openapi/apis/path_to_api.py
@@ -76,6 +76,7 @@
from apollo_openapi.apis.paths.openapi_v1_apps_app_id_envs_env_accesskeys_access_key_id_deactivation import OpenapiV1AppsAppIdEnvsEnvAccesskeysAccessKeyIdDeactivation
from apollo_openapi.apis.paths.openapi_v1_user import OpenapiV1User
from apollo_openapi.apis.paths.openapi_v1_users import OpenapiV1Users
+from apollo_openapi.apis.paths.openapi_v1_users_user_id import OpenapiV1UsersUserId
from apollo_openapi.apis.paths.openapi_v1_users_enabled import OpenapiV1UsersEnabled
from apollo_openapi.apis.paths.openapi_v1_apollo_audit_properties import OpenapiV1ApolloAuditProperties
from apollo_openapi.apis.paths.openapi_v1_apollo_audit_logs import OpenapiV1ApolloAuditLogs
@@ -186,6 +187,7 @@
PathValues.OPENAPI_V1_APPS_APP_ID_ENVS_ENV_ACCESSKEYS_ACCESS_KEY_ID_DEACTIVATION: OpenapiV1AppsAppIdEnvsEnvAccesskeysAccessKeyIdDeactivation,
PathValues.OPENAPI_V1_USER: OpenapiV1User,
PathValues.OPENAPI_V1_USERS: OpenapiV1Users,
+ PathValues.OPENAPI_V1_USERS_USER_ID: OpenapiV1UsersUserId,
PathValues.OPENAPI_V1_USERS_ENABLED: OpenapiV1UsersEnabled,
PathValues.OPENAPI_V1_APOLLO_AUDIT_PROPERTIES: OpenapiV1ApolloAuditProperties,
PathValues.OPENAPI_V1_APOLLO_AUDIT_LOGS: OpenapiV1ApolloAuditLogs,
@@ -297,6 +299,7 @@
PathValues.OPENAPI_V1_APPS_APP_ID_ENVS_ENV_ACCESSKEYS_ACCESS_KEY_ID_DEACTIVATION: OpenapiV1AppsAppIdEnvsEnvAccesskeysAccessKeyIdDeactivation,
PathValues.OPENAPI_V1_USER: OpenapiV1User,
PathValues.OPENAPI_V1_USERS: OpenapiV1Users,
+ PathValues.OPENAPI_V1_USERS_USER_ID: OpenapiV1UsersUserId,
PathValues.OPENAPI_V1_USERS_ENABLED: OpenapiV1UsersEnabled,
PathValues.OPENAPI_V1_APOLLO_AUDIT_PROPERTIES: OpenapiV1ApolloAuditProperties,
PathValues.OPENAPI_V1_APOLLO_AUDIT_LOGS: OpenapiV1ApolloAuditLogs,
diff --git a/python/apollo_openapi/apis/paths/openapi_v1_users_user_id.py b/python/apollo_openapi/apis/paths/openapi_v1_users_user_id.py
new file mode 100644
index 00000000..ed8499dc
--- /dev/null
+++ b/python/apollo_openapi/apis/paths/openapi_v1_users_user_id.py
@@ -0,0 +1,7 @@
+from apollo_openapi.paths.openapi_v1_users_user_id.get import ApiForget
+
+
+class OpenapiV1UsersUserId(
+ ApiForget,
+):
+ pass
diff --git a/python/apollo_openapi/apis/tag_to_api.py b/python/apollo_openapi/apis/tag_to_api.py
index 101378c1..e73bc616 100644
--- a/python/apollo_openapi/apis/tag_to_api.py
+++ b/python/apollo_openapi/apis/tag_to_api.py
@@ -14,7 +14,7 @@
from apollo_openapi.apis.tags.environment_management_api import EnvironmentManagementApi
from apollo_openapi.apis.tags.access_key_management_api import AccessKeyManagementApi
from apollo_openapi.apis.tags.permission_management_api import PermissionManagementApi
-from apollo_openapi.apis.tags.portal_user_management_api import PortalUserManagementApi
+from apollo_openapi.apis.tags.user_management_api import UserManagementApi
from apollo_openapi.apis.tags.portal_management_api import PortalManagementApi
TagToApi = typing_extensions.TypedDict(
@@ -33,7 +33,7 @@
TagValues.ENVIRONMENT_MANAGEMENT: EnvironmentManagementApi,
TagValues.ACCESS_KEY_MANAGEMENT: AccessKeyManagementApi,
TagValues.PERMISSION_MANAGEMENT: PermissionManagementApi,
- TagValues.PORTAL_USER_MANAGEMENT: PortalUserManagementApi,
+ TagValues.USER_MANAGEMENT: UserManagementApi,
TagValues.PORTAL_MANAGEMENT: PortalManagementApi,
}
)
@@ -53,7 +53,7 @@
TagValues.ENVIRONMENT_MANAGEMENT: EnvironmentManagementApi,
TagValues.ACCESS_KEY_MANAGEMENT: AccessKeyManagementApi,
TagValues.PERMISSION_MANAGEMENT: PermissionManagementApi,
- TagValues.PORTAL_USER_MANAGEMENT: PortalUserManagementApi,
+ TagValues.USER_MANAGEMENT: UserManagementApi,
TagValues.PORTAL_MANAGEMENT: PortalManagementApi,
}
)
diff --git a/python/apollo_openapi/apis/tags/__init__.py b/python/apollo_openapi/apis/tags/__init__.py
index 27a218e5..f6786e57 100644
--- a/python/apollo_openapi/apis/tags/__init__.py
+++ b/python/apollo_openapi/apis/tags/__init__.py
@@ -19,5 +19,5 @@ class TagValues(str, enum.Enum):
ENVIRONMENT_MANAGEMENT = "Environment Management"
ACCESS_KEY_MANAGEMENT = "AccessKey Management"
PERMISSION_MANAGEMENT = "Permission Management"
- PORTAL_USER_MANAGEMENT = "Portal User Management"
+ USER_MANAGEMENT = "User Management"
PORTAL_MANAGEMENT = "Portal Management"
diff --git a/python/apollo_openapi/apis/tags/portal_user_management_api.py b/python/apollo_openapi/apis/tags/user_management_api.py
similarity index 91%
rename from python/apollo_openapi/apis/tags/portal_user_management_api.py
rename to python/apollo_openapi/apis/tags/user_management_api.py
index 3a31b6f4..23300050 100644
--- a/python/apollo_openapi/apis/tags/portal_user_management_api.py
+++ b/python/apollo_openapi/apis/tags/user_management_api.py
@@ -11,13 +11,15 @@
from apollo_openapi.paths.openapi_v1_users_enabled.put import ChangeUserEnabled
from apollo_openapi.paths.openapi_v1_users.post import CreateOrUpdateUser
from apollo_openapi.paths.openapi_v1_user.get import GetCurrentUser
+from apollo_openapi.paths.openapi_v1_users_user_id.get import GetUserByUserId
from apollo_openapi.paths.openapi_v1_users.get import SearchUsers
-class PortalUserManagementApi(
+class UserManagementApi(
ChangeUserEnabled,
CreateOrUpdateUser,
GetCurrentUser,
+ GetUserByUserId,
SearchUsers,
):
"""NOTE: This class is auto generated by OpenAPI Generator
diff --git a/python/apollo_openapi/configuration.py b/python/apollo_openapi/configuration.py
index 20e7f83f..4f9d26e3 100644
--- a/python/apollo_openapi/configuration.py
+++ b/python/apollo_openapi/configuration.py
@@ -402,8 +402,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 0.3.5\n"\
- "SDK Package Version: 0.3.5".\
+ "Version of the API: 0.3.6\n"\
+ "SDK Package Version: 0.3.6".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self):
diff --git a/python/apollo_openapi/model/open_consumer_create_request_dto.py b/python/apollo_openapi/model/open_consumer_create_request_dto.py
new file mode 100644
index 00000000..26779136
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_create_request_dto.py
@@ -0,0 +1,165 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerCreateRequestDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ rateLimitEnabled = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+
+
+ class MetaOapg:
+ inclusive_minimum = 0
+ __annotations__ = {
+ "appId": appId,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "rateLimitEnabled": rateLimitEnabled,
+ "rateLimit": rateLimit,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "allowCreateApplication", "allowManageUsers", "name", "orgId", "orgName", "ownerName", "rateLimitEnabled", "rateLimit", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "allowCreateApplication", "allowManageUsers", "name", "orgId", "orgName", "ownerName", "rateLimitEnabled", "rateLimit", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerCreateRequestDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ rateLimitEnabled=rateLimitEnabled,
+ rateLimit=rateLimit,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/model/open_consumer_create_request_dto.pyi b/python/apollo_openapi/model/open_consumer_create_request_dto.pyi
new file mode 100644
index 00000000..26fe6747
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_create_request_dto.pyi
@@ -0,0 +1,162 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerCreateRequestDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ rateLimitEnabled = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+ pass
+ __annotations__ = {
+ "appId": appId,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "rateLimitEnabled": rateLimitEnabled,
+ "rateLimit": rateLimit,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "allowCreateApplication", "allowManageUsers", "name", "orgId", "orgName", "ownerName", "rateLimitEnabled", "rateLimit", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "allowCreateApplication", "allowManageUsers", "name", "orgId", "orgName", "ownerName", "rateLimitEnabled", "rateLimit", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerCreateRequestDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ rateLimitEnabled=rateLimitEnabled,
+ rateLimit=rateLimit,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/model/open_consumer_info_dto.py b/python/apollo_openapi/model/open_consumer_info_dto.py
new file mode 100644
index 00000000..cbbd983f
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_info_dto.py
@@ -0,0 +1,195 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerInfoDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ ownerEmail = schemas.StrSchema
+ consumerId = schemas.Int64Schema
+ token = schemas.StrSchema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+
+
+ class MetaOapg:
+ inclusive_minimum = 0
+ rateLimitEnabled = schemas.BoolSchema
+ __annotations__ = {
+ "appId": appId,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "ownerEmail": ownerEmail,
+ "consumerId": consumerId,
+ "token": token,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "rateLimit": rateLimit,
+ "rateLimitEnabled": rateLimitEnabled,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerEmail"]) -> MetaOapg.properties.ownerEmail: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["consumerId"]) -> MetaOapg.properties.consumerId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "token", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerEmail"]) -> typing.Union[MetaOapg.properties.ownerEmail, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["consumerId"]) -> typing.Union[MetaOapg.properties.consumerId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "token", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ ownerEmail: typing.Union[MetaOapg.properties.ownerEmail, str, schemas.Unset] = schemas.unset,
+ consumerId: typing.Union[MetaOapg.properties.consumerId, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerInfoDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ ownerEmail=ownerEmail,
+ consumerId=consumerId,
+ token=token,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ rateLimit=rateLimit,
+ rateLimitEnabled=rateLimitEnabled,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/model/open_consumer_info_dto.pyi b/python/apollo_openapi/model/open_consumer_info_dto.pyi
new file mode 100644
index 00000000..74edb892
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_info_dto.pyi
@@ -0,0 +1,192 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerInfoDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ ownerEmail = schemas.StrSchema
+ consumerId = schemas.Int64Schema
+ token = schemas.StrSchema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+ pass
+ rateLimitEnabled = schemas.BoolSchema
+ __annotations__ = {
+ "appId": appId,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "ownerEmail": ownerEmail,
+ "consumerId": consumerId,
+ "token": token,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "rateLimit": rateLimit,
+ "rateLimitEnabled": rateLimitEnabled,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerEmail"]) -> MetaOapg.properties.ownerEmail: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["consumerId"]) -> MetaOapg.properties.consumerId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["token"]) -> MetaOapg.properties.token: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "token", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerEmail"]) -> typing.Union[MetaOapg.properties.ownerEmail, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["consumerId"]) -> typing.Union[MetaOapg.properties.consumerId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["token"]) -> typing.Union[MetaOapg.properties.token, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "token", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ ownerEmail: typing.Union[MetaOapg.properties.ownerEmail, str, schemas.Unset] = schemas.unset,
+ consumerId: typing.Union[MetaOapg.properties.consumerId, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ token: typing.Union[MetaOapg.properties.token, str, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerInfoDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ ownerEmail=ownerEmail,
+ consumerId=consumerId,
+ token=token,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ rateLimit=rateLimit,
+ rateLimitEnabled=rateLimitEnabled,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/model/open_consumer_summary_dto.py b/python/apollo_openapi/model/open_consumer_summary_dto.py
new file mode 100644
index 00000000..cbd782aa
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_summary_dto.py
@@ -0,0 +1,185 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerSummaryDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ ownerEmail = schemas.StrSchema
+ consumerId = schemas.Int64Schema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+
+
+ class MetaOapg:
+ inclusive_minimum = 0
+ rateLimitEnabled = schemas.BoolSchema
+ __annotations__ = {
+ "appId": appId,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "ownerEmail": ownerEmail,
+ "consumerId": consumerId,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "rateLimit": rateLimit,
+ "rateLimitEnabled": rateLimitEnabled,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerEmail"]) -> MetaOapg.properties.ownerEmail: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["consumerId"]) -> MetaOapg.properties.consumerId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerEmail"]) -> typing.Union[MetaOapg.properties.ownerEmail, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["consumerId"]) -> typing.Union[MetaOapg.properties.consumerId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ ownerEmail: typing.Union[MetaOapg.properties.ownerEmail, str, schemas.Unset] = schemas.unset,
+ consumerId: typing.Union[MetaOapg.properties.consumerId, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerSummaryDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ ownerEmail=ownerEmail,
+ consumerId=consumerId,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ rateLimit=rateLimit,
+ rateLimitEnabled=rateLimitEnabled,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/model/open_consumer_summary_dto.pyi b/python/apollo_openapi/model/open_consumer_summary_dto.pyi
new file mode 100644
index 00000000..e3aeab06
--- /dev/null
+++ b/python/apollo_openapi/model/open_consumer_summary_dto.pyi
@@ -0,0 +1,182 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+
+class OpenConsumerSummaryDTO(
+ schemas.DictSchema
+):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+
+ class MetaOapg:
+
+ class properties:
+ appId = schemas.StrSchema
+ name = schemas.StrSchema
+ orgId = schemas.StrSchema
+ orgName = schemas.StrSchema
+ ownerName = schemas.StrSchema
+ ownerEmail = schemas.StrSchema
+ consumerId = schemas.Int64Schema
+ allowCreateApplication = schemas.BoolSchema
+ allowManageUsers = schemas.BoolSchema
+
+
+ class rateLimit(
+ schemas.IntSchema
+ ):
+ pass
+ rateLimitEnabled = schemas.BoolSchema
+ __annotations__ = {
+ "appId": appId,
+ "name": name,
+ "orgId": orgId,
+ "orgName": orgName,
+ "ownerName": ownerName,
+ "ownerEmail": ownerEmail,
+ "consumerId": consumerId,
+ "allowCreateApplication": allowCreateApplication,
+ "allowManageUsers": allowManageUsers,
+ "rateLimit": rateLimit,
+ "rateLimitEnabled": rateLimitEnabled,
+ }
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["appId"]) -> MetaOapg.properties.appId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgId"]) -> MetaOapg.properties.orgId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["orgName"]) -> MetaOapg.properties.orgName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerName"]) -> MetaOapg.properties.ownerName: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["ownerEmail"]) -> MetaOapg.properties.ownerEmail: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["consumerId"]) -> MetaOapg.properties.consumerId: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowCreateApplication"]) -> MetaOapg.properties.allowCreateApplication: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["allowManageUsers"]) -> MetaOapg.properties.allowManageUsers: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimit"]) -> MetaOapg.properties.rateLimit: ...
+
+ @typing.overload
+ def __getitem__(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> MetaOapg.properties.rateLimitEnabled: ...
+
+ @typing.overload
+ def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
+
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ # dict_instance[name] accessor
+ return super().__getitem__(name)
+
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["appId"]) -> typing.Union[MetaOapg.properties.appId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgId"]) -> typing.Union[MetaOapg.properties.orgId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["orgName"]) -> typing.Union[MetaOapg.properties.orgName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerName"]) -> typing.Union[MetaOapg.properties.ownerName, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["ownerEmail"]) -> typing.Union[MetaOapg.properties.ownerEmail, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["consumerId"]) -> typing.Union[MetaOapg.properties.consumerId, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowCreateApplication"]) -> typing.Union[MetaOapg.properties.allowCreateApplication, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["allowManageUsers"]) -> typing.Union[MetaOapg.properties.allowManageUsers, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimit"]) -> typing.Union[MetaOapg.properties.rateLimit, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: typing_extensions.Literal["rateLimitEnabled"]) -> typing.Union[MetaOapg.properties.rateLimitEnabled, schemas.Unset]: ...
+
+ @typing.overload
+ def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
+
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["appId", "name", "orgId", "orgName", "ownerName", "ownerEmail", "consumerId", "allowCreateApplication", "allowManageUsers", "rateLimit", "rateLimitEnabled", ], str]):
+ return super().get_item_oapg(name)
+
+
+ def __new__(
+ cls,
+ *_args: typing.Union[dict, frozendict.frozendict, ],
+ appId: typing.Union[MetaOapg.properties.appId, str, schemas.Unset] = schemas.unset,
+ name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
+ orgId: typing.Union[MetaOapg.properties.orgId, str, schemas.Unset] = schemas.unset,
+ orgName: typing.Union[MetaOapg.properties.orgName, str, schemas.Unset] = schemas.unset,
+ ownerName: typing.Union[MetaOapg.properties.ownerName, str, schemas.Unset] = schemas.unset,
+ ownerEmail: typing.Union[MetaOapg.properties.ownerEmail, str, schemas.Unset] = schemas.unset,
+ consumerId: typing.Union[MetaOapg.properties.consumerId, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ allowCreateApplication: typing.Union[MetaOapg.properties.allowCreateApplication, bool, schemas.Unset] = schemas.unset,
+ allowManageUsers: typing.Union[MetaOapg.properties.allowManageUsers, bool, schemas.Unset] = schemas.unset,
+ rateLimit: typing.Union[MetaOapg.properties.rateLimit, decimal.Decimal, int, schemas.Unset] = schemas.unset,
+ rateLimitEnabled: typing.Union[MetaOapg.properties.rateLimitEnabled, bool, schemas.Unset] = schemas.unset,
+ _configuration: typing.Optional[schemas.Configuration] = None,
+ **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
+ ) -> 'OpenConsumerSummaryDTO':
+ return super().__new__(
+ cls,
+ *_args,
+ appId=appId,
+ name=name,
+ orgId=orgId,
+ orgName=orgName,
+ ownerName=ownerName,
+ ownerEmail=ownerEmail,
+ consumerId=consumerId,
+ allowCreateApplication=allowCreateApplication,
+ allowManageUsers=allowManageUsers,
+ rateLimit=rateLimit,
+ rateLimitEnabled=rateLimitEnabled,
+ _configuration=_configuration,
+ **kwargs,
+ )
diff --git a/python/apollo_openapi/models/__init__.py b/python/apollo_openapi/models/__init__.py
index 37a0a05e..9201f39c 100644
--- a/python/apollo_openapi/models/__init__.py
+++ b/python/apollo_openapi/models/__init__.py
@@ -21,6 +21,9 @@
from apollo_openapi.model.open_app_role_user_dto import OpenAppRoleUserDTO
from apollo_openapi.model.open_cluster_dto import OpenClusterDTO
from apollo_openapi.model.open_cluster_namespace_role_user_dto import OpenClusterNamespaceRoleUserDTO
+from apollo_openapi.model.open_consumer_create_request_dto import OpenConsumerCreateRequestDTO
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+from apollo_openapi.model.open_consumer_summary_dto import OpenConsumerSummaryDTO
from apollo_openapi.model.open_create_app_dto import OpenCreateAppDTO
from apollo_openapi.model.open_create_namespace_dto import OpenCreateNamespaceDTO
from apollo_openapi.model.open_env_cluster_dto import OpenEnvClusterDTO
diff --git a/python/apollo_openapi/paths/__init__.py b/python/apollo_openapi/paths/__init__.py
index 993209a7..a49c1b84 100644
--- a/python/apollo_openapi/paths/__init__.py
+++ b/python/apollo_openapi/paths/__init__.py
@@ -81,6 +81,7 @@ class PathValues(str, enum.Enum):
OPENAPI_V1_APPS_APP_ID_ENVS_ENV_ACCESSKEYS_ACCESS_KEY_ID_DEACTIVATION = "/openapi/v1/apps/{appId}/envs/{env}/accesskeys/{accessKeyId}/deactivation"
OPENAPI_V1_USER = "/openapi/v1/user"
OPENAPI_V1_USERS = "/openapi/v1/users"
+ OPENAPI_V1_USERS_USER_ID = "/openapi/v1/users/{userId}"
OPENAPI_V1_USERS_ENABLED = "/openapi/v1/users/enabled"
OPENAPI_V1_APOLLO_AUDIT_PROPERTIES = "/openapi/v1/apollo/audit/properties"
OPENAPI_V1_APOLLO_AUDIT_LOGS = "/openapi/v1/apollo/audit/logs"
diff --git a/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.py b/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.py
index e686fef7..9e70bf8d 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.py
+++ b/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.py
@@ -25,6 +25,8 @@
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+
from . import path
# Query params
@@ -57,7 +59,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams)
_auth = [
'ApiKeyAuth',
]
-SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema
+SchemaFor200ResponseBodyApplicationJson = OpenConsumerInfoDTO
@dataclass
diff --git a/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.pyi b/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.pyi
index 0d65bd82..087cf92f 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_consumer_tokens_by_app_id/get.pyi
@@ -25,6 +25,8 @@ import frozendict # noqa: F401
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+
# Query params
AppIdSchema = schemas.StrSchema
RequestRequiredQueryParams = typing_extensions.TypedDict(
@@ -52,7 +54,7 @@ request_query_app_id = api_client.QueryParameter(
required=True,
explode=True,
)
-SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema
+SchemaFor200ResponseBodyApplicationJson = OpenConsumerInfoDTO
@dataclass
diff --git a/python/apollo_openapi/paths/openapi_v1_consumers/get.py b/python/apollo_openapi/paths/openapi_v1_consumers/get.py
index a1925445..3d499c5d 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumers/get.py
+++ b/python/apollo_openapi/paths/openapi_v1_consumers/get.py
@@ -25,6 +25,8 @@
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_summary_dto import OpenConsumerSummaryDTO
+
from . import path
# Query params
@@ -72,11 +74,14 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- items = schemas.DictSchema
+
+ @staticmethod
+ def items() -> typing.Type['OpenConsumerSummaryDTO']:
+ return OpenConsumerSummaryDTO
def __new__(
cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
+ _arg: typing.Union[typing.Tuple['OpenConsumerSummaryDTO'], typing.List['OpenConsumerSummaryDTO']],
_configuration: typing.Optional[schemas.Configuration] = None,
) -> 'SchemaFor200ResponseBodyApplicationJson':
return super().__new__(
@@ -85,7 +90,7 @@ def __new__(
_configuration=_configuration,
)
- def __getitem__(self, i: int) -> MetaOapg.items:
+ def __getitem__(self, i: int) -> 'OpenConsumerSummaryDTO':
return super().__getitem__(i)
diff --git a/python/apollo_openapi/paths/openapi_v1_consumers/get.pyi b/python/apollo_openapi/paths/openapi_v1_consumers/get.pyi
index 8cb91c70..eb33c2d4 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumers/get.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_consumers/get.pyi
@@ -25,6 +25,8 @@ import frozendict # noqa: F401
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_summary_dto import OpenConsumerSummaryDTO
+
# Query params
PageSchema = schemas.IntSchema
SizeSchema = schemas.IntSchema
@@ -67,11 +69,14 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- items = schemas.DictSchema
+
+ @staticmethod
+ def items() -> typing.Type['OpenConsumerSummaryDTO']:
+ return OpenConsumerSummaryDTO
def __new__(
cls,
- _arg: typing.Union[typing.Tuple[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]], typing.List[typing.Union[MetaOapg.items, dict, frozendict.frozendict, ]]],
+ _arg: typing.Union[typing.Tuple['OpenConsumerSummaryDTO'], typing.List['OpenConsumerSummaryDTO']],
_configuration: typing.Optional[schemas.Configuration] = None,
) -> 'SchemaFor200ResponseBodyApplicationJson':
return super().__new__(
@@ -80,7 +85,7 @@ class SchemaFor200ResponseBodyApplicationJson(
_configuration=_configuration,
)
- def __getitem__(self, i: int) -> MetaOapg.items:
+ def __getitem__(self, i: int) -> 'OpenConsumerSummaryDTO':
return super().__getitem__(i)
diff --git a/python/apollo_openapi/paths/openapi_v1_consumers/post.py b/python/apollo_openapi/paths/openapi_v1_consumers/post.py
index c8e63f3e..449a8974 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumers/post.py
+++ b/python/apollo_openapi/paths/openapi_v1_consumers/post.py
@@ -25,6 +25,9 @@
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_create_request_dto import OpenConsumerCreateRequestDTO
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+
from . import path
# Query params
@@ -54,10 +57,10 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams)
explode=True,
)
# body param
-SchemaForRequestBodyApplicationJson = schemas.DictSchema
+SchemaForRequestBodyApplicationJson = OpenConsumerCreateRequestDTO
-request_body_body = api_client.RequestBody(
+request_body_open_consumer_create_request_dto = api_client.RequestBody(
content={
'application/json': api_client.MediaType(
schema=SchemaForRequestBodyApplicationJson),
@@ -67,7 +70,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams)
_auth = [
'ApiKeyAuth',
]
-SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema
+SchemaFor200ResponseBodyApplicationJson = OpenConsumerInfoDTO
@dataclass
@@ -98,7 +101,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -112,7 +115,7 @@ def _create_consumer_oapg(
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -127,7 +130,7 @@ def _create_consumer_oapg(
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -139,7 +142,7 @@ def _create_consumer_oapg(
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -153,7 +156,7 @@ def _create_consumer_oapg(
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -194,7 +197,7 @@ class instances
'The required body parameter has an invalid value of: unset. Set a valid value instead')
_fields = None
_body = None
- serialized_data = request_body_body.serialize(body, content_type)
+ serialized_data = request_body_open_consumer_create_request_dto.serialize(body, content_type)
_headers.add('Content-Type', content_type)
if 'fields' in serialized_data:
_fields = serialized_data['fields']
@@ -236,7 +239,7 @@ class CreateConsumer(BaseApi):
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -250,7 +253,7 @@ def create_consumer(
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -265,7 +268,7 @@ def create_consumer(
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -277,7 +280,7 @@ def create_consumer(
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -291,7 +294,7 @@ def create_consumer(
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -316,7 +319,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -330,7 +333,7 @@ def post(
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -345,7 +348,7 @@ def post(
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -357,7 +360,7 @@ def post(
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -371,7 +374,7 @@ def post(
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
diff --git a/python/apollo_openapi/paths/openapi_v1_consumers/post.pyi b/python/apollo_openapi/paths/openapi_v1_consumers/post.pyi
index f654cf1c..2de54dd0 100644
--- a/python/apollo_openapi/paths/openapi_v1_consumers/post.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_consumers/post.pyi
@@ -25,6 +25,9 @@ import frozendict # noqa: F401
from apollo_openapi import schemas # noqa: F401
+from apollo_openapi.model.open_consumer_create_request_dto import OpenConsumerCreateRequestDTO
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+
# Query params
ExpiresSchema = schemas.StrSchema
RequestRequiredQueryParams = typing_extensions.TypedDict(
@@ -52,17 +55,17 @@ request_query_expires = api_client.QueryParameter(
explode=True,
)
# body param
-SchemaForRequestBodyApplicationJson = schemas.DictSchema
+SchemaForRequestBodyApplicationJson = OpenConsumerCreateRequestDTO
-request_body_body = api_client.RequestBody(
+request_body_open_consumer_create_request_dto = api_client.RequestBody(
content={
'application/json': api_client.MediaType(
schema=SchemaForRequestBodyApplicationJson),
},
required=True,
)
-SchemaFor200ResponseBodyApplicationJson = schemas.DictSchema
+SchemaFor200ResponseBodyApplicationJson = OpenConsumerInfoDTO
@dataclass
@@ -90,7 +93,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -104,7 +107,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -119,7 +122,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -131,7 +134,7 @@ class BaseApi(api_client.Api):
@typing.overload
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -145,7 +148,7 @@ class BaseApi(api_client.Api):
def _create_consumer_oapg(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -186,7 +189,7 @@ class BaseApi(api_client.Api):
'The required body parameter has an invalid value of: unset. Set a valid value instead')
_fields = None
_body = None
- serialized_data = request_body_body.serialize(body, content_type)
+ serialized_data = request_body_open_consumer_create_request_dto.serialize(body, content_type)
_headers.add('Content-Type', content_type)
if 'fields' in serialized_data:
_fields = serialized_data['fields']
@@ -228,7 +231,7 @@ class CreateConsumer(BaseApi):
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -242,7 +245,7 @@ class CreateConsumer(BaseApi):
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -257,7 +260,7 @@ class CreateConsumer(BaseApi):
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -269,7 +272,7 @@ class CreateConsumer(BaseApi):
@typing.overload
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -283,7 +286,7 @@ class CreateConsumer(BaseApi):
def create_consumer(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -308,7 +311,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -322,7 +325,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -337,7 +340,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
@@ -349,7 +352,7 @@ class ApiForpost(BaseApi):
@typing.overload
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
@@ -363,7 +366,7 @@ class ApiForpost(BaseApi):
def post(
self,
- body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ],
+ body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
diff --git a/python/apollo_openapi/paths/openapi_v1_users/get.py b/python/apollo_openapi/paths/openapi_v1_users/get.py
index a337db20..aeff3a1d 100644
--- a/python/apollo_openapi/paths/openapi_v1_users/get.py
+++ b/python/apollo_openapi/paths/openapi_v1_users/get.py
@@ -237,7 +237,7 @@ def _search_users_oapg(
skip_deserialization: bool = False,
):
"""
- 搜索Portal用户(new added)
+ 搜索用户(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
diff --git a/python/apollo_openapi/paths/openapi_v1_users/get.pyi b/python/apollo_openapi/paths/openapi_v1_users/get.pyi
index 423d695a..b7f898ab 100644
--- a/python/apollo_openapi/paths/openapi_v1_users/get.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_users/get.pyi
@@ -221,7 +221,7 @@ class BaseApi(api_client.Api):
skip_deserialization: bool = False,
):
"""
- 搜索Portal用户(new added)
+ 搜索用户(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
diff --git a/python/apollo_openapi/paths/openapi_v1_users/post.py b/python/apollo_openapi/paths/openapi_v1_users/post.py
index 785600a2..76b13cbc 100644
--- a/python/apollo_openapi/paths/openapi_v1_users/post.py
+++ b/python/apollo_openapi/paths/openapi_v1_users/post.py
@@ -32,6 +32,7 @@
# Query params
IsCreateSchema = schemas.BoolSchema
+OperatorSchema = schemas.StrSchema
RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
@@ -41,6 +42,7 @@
'RequestOptionalQueryParams',
{
'isCreate': typing.Union[IsCreateSchema, bool, ],
+ 'operator': typing.Union[OperatorSchema, str, ],
},
total=False
)
@@ -56,6 +58,12 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams)
schema=IsCreateSchema,
explode=True,
)
+request_query_operator = api_client.QueryParameter(
+ name="operator",
+ style=api_client.ParameterStyle.FORM,
+ schema=OperatorSchema,
+ explode=True,
+)
# body param
SchemaForRequestBodyApplicationJson = OpenUserDTO
@@ -198,7 +206,7 @@ def _create_or_update_user_oapg(
skip_deserialization: bool = False,
):
"""
- 创建或更新Portal用户(new added)
+ 创建或更新用户(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
@@ -209,6 +217,7 @@ class instances
prefix_separator_iterator = None
for parameter in (
request_query_is_create,
+ request_query_operator,
):
parameter_data = query_params.get(parameter.name, schemas.unset)
if parameter_data is schemas.unset:
diff --git a/python/apollo_openapi/paths/openapi_v1_users/post.pyi b/python/apollo_openapi/paths/openapi_v1_users/post.pyi
index 6530dc69..0dcde8c0 100644
--- a/python/apollo_openapi/paths/openapi_v1_users/post.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_users/post.pyi
@@ -30,6 +30,7 @@ from apollo_openapi.model.exception_response import ExceptionResponse
# Query params
IsCreateSchema = schemas.BoolSchema
+OperatorSchema = schemas.StrSchema
RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
@@ -39,6 +40,7 @@ RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'isCreate': typing.Union[IsCreateSchema, bool, ],
+ 'operator': typing.Union[OperatorSchema, str, ],
},
total=False
)
@@ -54,6 +56,12 @@ request_query_is_create = api_client.QueryParameter(
schema=IsCreateSchema,
explode=True,
)
+request_query_operator = api_client.QueryParameter(
+ name="operator",
+ style=api_client.ParameterStyle.FORM,
+ schema=OperatorSchema,
+ explode=True,
+)
# body param
SchemaForRequestBodyApplicationJson = OpenUserDTO
@@ -188,7 +196,7 @@ class BaseApi(api_client.Api):
skip_deserialization: bool = False,
):
"""
- 创建或更新Portal用户(new added)
+ 创建或更新用户(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
@@ -199,6 +207,7 @@ class BaseApi(api_client.Api):
prefix_separator_iterator = None
for parameter in (
request_query_is_create,
+ request_query_operator,
):
parameter_data = query_params.get(parameter.name, schemas.unset)
if parameter_data is schemas.unset:
diff --git a/python/apollo_openapi/paths/openapi_v1_users_enabled/put.py b/python/apollo_openapi/paths/openapi_v1_users_enabled/put.py
index 3220ef11..0b52aa13 100644
--- a/python/apollo_openapi/paths/openapi_v1_users_enabled/put.py
+++ b/python/apollo_openapi/paths/openapi_v1_users_enabled/put.py
@@ -30,6 +30,32 @@
from . import path
+# Query params
+OperatorSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'operator': typing.Union[OperatorSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_operator = api_client.QueryParameter(
+ name="operator",
+ style=api_client.ParameterStyle.FORM,
+ schema=OperatorSchema,
+ explode=True,
+)
# body param
SchemaForRequestBodyApplicationJson = OpenUserDTO
@@ -110,6 +136,7 @@ def _change_user_enabled_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -123,6 +150,7 @@ def _change_user_enabled_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -138,6 +166,7 @@ def _change_user_enabled_oapg(
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -148,6 +177,7 @@ def _change_user_enabled_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -161,19 +191,34 @@ def _change_user_enabled_oapg(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
"""
- 修改Portal用户启用状态(new added)
+ 修改用户启用状态(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
"""
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
used_path = path.value
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_operator,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
_headers = HTTPHeaderDict()
# TODO add cookie handling
if accept_content_types:
@@ -229,6 +274,7 @@ def change_user_enabled(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -242,6 +288,7 @@ def change_user_enabled(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -257,6 +304,7 @@ def change_user_enabled(
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -267,6 +315,7 @@ def change_user_enabled(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -280,6 +329,7 @@ def change_user_enabled(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -287,6 +337,7 @@ def change_user_enabled(
):
return self._change_user_enabled_oapg(
body=body,
+ query_params=query_params,
content_type=content_type,
accept_content_types=accept_content_types,
stream=stream,
@@ -303,6 +354,7 @@ def put(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -316,6 +368,7 @@ def put(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -331,6 +384,7 @@ def put(
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -341,6 +395,7 @@ def put(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -354,6 +409,7 @@ def put(
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -361,6 +417,7 @@ def put(
):
return self._change_user_enabled_oapg(
body=body,
+ query_params=query_params,
content_type=content_type,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/python/apollo_openapi/paths/openapi_v1_users_enabled/put.pyi b/python/apollo_openapi/paths/openapi_v1_users_enabled/put.pyi
index 5c3b3bae..23cbc95c 100644
--- a/python/apollo_openapi/paths/openapi_v1_users_enabled/put.pyi
+++ b/python/apollo_openapi/paths/openapi_v1_users_enabled/put.pyi
@@ -28,6 +28,32 @@ from apollo_openapi import schemas # noqa: F401
from apollo_openapi.model.open_user_dto import OpenUserDTO
from apollo_openapi.model.exception_response import ExceptionResponse
+# Query params
+OperatorSchema = schemas.StrSchema
+RequestRequiredQueryParams = typing_extensions.TypedDict(
+ 'RequestRequiredQueryParams',
+ {
+ }
+)
+RequestOptionalQueryParams = typing_extensions.TypedDict(
+ 'RequestOptionalQueryParams',
+ {
+ 'operator': typing.Union[OperatorSchema, str, ],
+ },
+ total=False
+)
+
+
+class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams):
+ pass
+
+
+request_query_operator = api_client.QueryParameter(
+ name="operator",
+ style=api_client.ParameterStyle.FORM,
+ schema=OperatorSchema,
+ explode=True,
+)
# body param
SchemaForRequestBodyApplicationJson = OpenUserDTO
@@ -100,6 +126,7 @@ class BaseApi(api_client.Api):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -113,6 +140,7 @@ class BaseApi(api_client.Api):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -128,6 +156,7 @@ class BaseApi(api_client.Api):
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -138,6 +167,7 @@ class BaseApi(api_client.Api):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -151,19 +181,34 @@ class BaseApi(api_client.Api):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
skip_deserialization: bool = False,
):
"""
- 修改Portal用户启用状态(new added)
+ 修改用户启用状态(new added)
:param skip_deserialization: If true then api_response.response will be set but
api_response.body and api_response.headers will not be deserialized into schema
class instances
"""
+ self._verify_typed_dict_inputs_oapg(RequestQueryParams, query_params)
used_path = path.value
+ prefix_separator_iterator = None
+ for parameter in (
+ request_query_operator,
+ ):
+ parameter_data = query_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ if prefix_separator_iterator is None:
+ prefix_separator_iterator = parameter.get_prefix_separator_iterator()
+ serialized_data = parameter.serialize(parameter_data, prefix_separator_iterator)
+ for serialized_value in serialized_data.values():
+ used_path += serialized_value
+
_headers = HTTPHeaderDict()
# TODO add cookie handling
if accept_content_types:
@@ -219,6 +264,7 @@ class ChangeUserEnabled(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -232,6 +278,7 @@ class ChangeUserEnabled(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -247,6 +294,7 @@ class ChangeUserEnabled(BaseApi):
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -257,6 +305,7 @@ class ChangeUserEnabled(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -270,6 +319,7 @@ class ChangeUserEnabled(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -277,6 +327,7 @@ class ChangeUserEnabled(BaseApi):
):
return self._change_user_enabled_oapg(
body=body,
+ query_params=query_params,
content_type=content_type,
accept_content_types=accept_content_types,
stream=stream,
@@ -293,6 +344,7 @@ class ApiForput(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: typing_extensions.Literal["application/json"] = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -306,6 +358,7 @@ class ApiForput(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -321,6 +374,7 @@ class ApiForput(BaseApi):
body: typing.Union[SchemaForRequestBodyApplicationJson,],
skip_deserialization: typing_extensions.Literal[True],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -331,6 +385,7 @@ class ApiForput(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = ...,
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -344,6 +399,7 @@ class ApiForput(BaseApi):
self,
body: typing.Union[SchemaForRequestBodyApplicationJson,],
content_type: str = 'application/json',
+ query_params: RequestQueryParams = frozendict.frozendict(),
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
stream: bool = False,
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
@@ -351,6 +407,7 @@ class ApiForput(BaseApi):
):
return self._change_user_enabled_oapg(
body=body,
+ query_params=query_params,
content_type=content_type,
accept_content_types=accept_content_types,
stream=stream,
diff --git a/python/apollo_openapi/paths/openapi_v1_users_user_id/__init__.py b/python/apollo_openapi/paths/openapi_v1_users_user_id/__init__.py
new file mode 100644
index 00000000..bfb5689a
--- /dev/null
+++ b/python/apollo_openapi/paths/openapi_v1_users_user_id/__init__.py
@@ -0,0 +1,7 @@
+# do not import all endpoints into this module because that uses a lot of memory and stack frames
+# if you need the ability to import all endpoints from this module, import them with
+# from apollo_openapi.paths.openapi_v1_users_user_id import Api
+
+from apollo_openapi.paths import PathValues
+
+path = PathValues.OPENAPI_V1_USERS_USER_ID
diff --git a/python/apollo_openapi/paths/openapi_v1_users_user_id/get.py b/python/apollo_openapi/paths/openapi_v1_users_user_id/get.py
new file mode 100644
index 00000000..e1142f85
--- /dev/null
+++ b/python/apollo_openapi/paths/openapi_v1_users_user_id/get.py
@@ -0,0 +1,356 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from dataclasses import dataclass
+import typing_extensions
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from apollo_openapi import api_client, exceptions
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+from apollo_openapi.model.exception_response import ExceptionResponse
+from apollo_openapi.model.open_user_info_dto import OpenUserInfoDTO
+
+from . import path
+
+# Path params
+UserIdSchema = schemas.StrSchema
+RequestRequiredPathParams = typing_extensions.TypedDict(
+ 'RequestRequiredPathParams',
+ {
+ 'userId': typing.Union[UserIdSchema, str, ],
+ }
+)
+RequestOptionalPathParams = typing_extensions.TypedDict(
+ 'RequestOptionalPathParams',
+ {
+ },
+ total=False
+)
+
+
+class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
+ pass
+
+
+request_path_user_id = api_client.PathParameter(
+ name="userId",
+ style=api_client.ParameterStyle.SIMPLE,
+ schema=UserIdSchema,
+ required=True,
+)
+_auth = [
+ 'ApiKeyAuth',
+]
+SchemaFor200ResponseBodyApplicationJson = OpenUserInfoDTO
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ },
+)
+SchemaFor400ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor400(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor400ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_400 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor400,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor400ResponseBodyApplicationJson),
+ },
+)
+SchemaFor401ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor401(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor401ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_401 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor401,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor401ResponseBodyApplicationJson),
+ },
+)
+SchemaFor403ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor403(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor403ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_403 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor403,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor403ResponseBodyApplicationJson),
+ },
+)
+_status_code_to_response = {
+ '200': _response_for_200,
+ '400': _response_for_400,
+ '401': _response_for_401,
+ '403': _response_for_403,
+}
+_all_accept_content_types = (
+ 'application/json',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ 获取指定用户(new added)
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
+ used_path = path.value
+
+ _path_params = {}
+ for parameter in (
+ request_path_user_id,
+ ):
+ parameter_data = path_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ serialized_data = parameter.serialize(parameter_data)
+ _path_params.update(serialized_data)
+
+ for k, v in _path_params.items():
+ used_path = used_path.replace('{%s}' % k, v)
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class GetUserByUserId(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._get_user_by_user_id_oapg(
+ path_params=path_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._get_user_by_user_id_oapg(
+ path_params=path_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
diff --git a/python/apollo_openapi/paths/openapi_v1_users_user_id/get.pyi b/python/apollo_openapi/paths/openapi_v1_users_user_id/get.pyi
new file mode 100644
index 00000000..f829f7b9
--- /dev/null
+++ b/python/apollo_openapi/paths/openapi_v1_users_user_id/get.pyi
@@ -0,0 +1,345 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+from dataclasses import dataclass
+import typing_extensions
+import urllib3
+from urllib3._collections import HTTPHeaderDict
+
+from apollo_openapi import api_client, exceptions
+from datetime import date, datetime # noqa: F401
+import decimal # noqa: F401
+import functools # noqa: F401
+import io # noqa: F401
+import re # noqa: F401
+import typing # noqa: F401
+import typing_extensions # noqa: F401
+import uuid # noqa: F401
+
+import frozendict # noqa: F401
+
+from apollo_openapi import schemas # noqa: F401
+
+from apollo_openapi.model.exception_response import ExceptionResponse
+from apollo_openapi.model.open_user_info_dto import OpenUserInfoDTO
+
+# Path params
+UserIdSchema = schemas.StrSchema
+RequestRequiredPathParams = typing_extensions.TypedDict(
+ 'RequestRequiredPathParams',
+ {
+ 'userId': typing.Union[UserIdSchema, str, ],
+ }
+)
+RequestOptionalPathParams = typing_extensions.TypedDict(
+ 'RequestOptionalPathParams',
+ {
+ },
+ total=False
+)
+
+
+class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
+ pass
+
+
+request_path_user_id = api_client.PathParameter(
+ name="userId",
+ style=api_client.ParameterStyle.SIMPLE,
+ schema=UserIdSchema,
+ required=True,
+)
+SchemaFor200ResponseBodyApplicationJson = OpenUserInfoDTO
+
+
+@dataclass
+class ApiResponseFor200(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor200ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_200 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor200,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor200ResponseBodyApplicationJson),
+ },
+)
+SchemaFor400ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor400(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor400ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_400 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor400,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor400ResponseBodyApplicationJson),
+ },
+)
+SchemaFor401ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor401(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor401ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_401 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor401,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor401ResponseBodyApplicationJson),
+ },
+)
+SchemaFor403ResponseBodyApplicationJson = ExceptionResponse
+
+
+@dataclass
+class ApiResponseFor403(api_client.ApiResponse):
+ response: urllib3.HTTPResponse
+ body: typing.Union[
+ SchemaFor403ResponseBodyApplicationJson,
+ ]
+ headers: schemas.Unset = schemas.unset
+
+
+_response_for_403 = api_client.OpenApiResponse(
+ response_cls=ApiResponseFor403,
+ content={
+ 'application/json': api_client.MediaType(
+ schema=SchemaFor403ResponseBodyApplicationJson),
+ },
+)
+_all_accept_content_types = (
+ 'application/json',
+)
+
+
+class BaseApi(api_client.Api):
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def _get_user_by_user_id_oapg(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ """
+ 获取指定用户(new added)
+ :param skip_deserialization: If true then api_response.response will be set but
+ api_response.body and api_response.headers will not be deserialized into schema
+ class instances
+ """
+ self._verify_typed_dict_inputs_oapg(RequestPathParams, path_params)
+ used_path = path.value
+
+ _path_params = {}
+ for parameter in (
+ request_path_user_id,
+ ):
+ parameter_data = path_params.get(parameter.name, schemas.unset)
+ if parameter_data is schemas.unset:
+ continue
+ serialized_data = parameter.serialize(parameter_data)
+ _path_params.update(serialized_data)
+
+ for k, v in _path_params.items():
+ used_path = used_path.replace('{%s}' % k, v)
+
+ _headers = HTTPHeaderDict()
+ # TODO add cookie handling
+ if accept_content_types:
+ for accept_content_type in accept_content_types:
+ _headers.add('Accept', accept_content_type)
+
+ response = self.api_client.call_api(
+ resource_path=used_path,
+ method='get'.upper(),
+ headers=_headers,
+ auth_settings=_auth,
+ stream=stream,
+ timeout=timeout,
+ )
+
+ if skip_deserialization:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+ else:
+ response_for_status = _status_code_to_response.get(str(response.status))
+ if response_for_status:
+ api_response = response_for_status.deserialize(response, self.api_client.configuration)
+ else:
+ api_response = api_client.ApiResponseWithoutDeserialization(response=response)
+
+ if not 200 <= response.status <= 299:
+ raise exceptions.ApiException(
+ status=response.status,
+ reason=response.reason,
+ api_response=api_response
+ )
+
+ return api_response
+
+
+class GetUserByUserId(BaseApi):
+ # this class is used by api classes that refer to endpoints with operationId fn names
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get_user_by_user_id(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._get_user_by_user_id_oapg(
+ path_params=path_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
+
+
+class ApiForget(BaseApi):
+ # this class is used by api classes that refer to endpoints by path and http method names
+
+ @typing.overload
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: typing_extensions.Literal[False] = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ ]: ...
+
+ @typing.overload
+ def get(
+ self,
+ skip_deserialization: typing_extensions.Literal[True],
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ ) -> api_client.ApiResponseWithoutDeserialization: ...
+
+ @typing.overload
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = ...,
+ ) -> typing.Union[
+ ApiResponseFor200,
+ api_client.ApiResponseWithoutDeserialization,
+ ]: ...
+
+ def get(
+ self,
+ path_params: RequestPathParams = frozendict.frozendict(),
+ accept_content_types: typing.Tuple[str] = _all_accept_content_types,
+ stream: bool = False,
+ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
+ skip_deserialization: bool = False,
+ ):
+ return self._get_user_by_user_id_oapg(
+ path_params=path_params,
+ accept_content_types=accept_content_types,
+ stream=stream,
+ timeout=timeout,
+ skip_deserialization=skip_deserialization
+ )
diff --git a/python/docs/apis/tags/PortalManagementApi.md b/python/docs/apis/tags/PortalManagementApi.md
index 22013e18..0ba39a1f 100644
--- a/python/docs/apis/tags/PortalManagementApi.md
+++ b/python/docs/apis/tags/PortalManagementApi.md
@@ -521,7 +521,7 @@ dict, frozendict.frozendict, | frozendict.frozendict, | |
# **create_consumer**
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} create_consumer(body)
+> OpenConsumerInfoDTO create_consumer(open_consumer_create_request_dto)
创建开放平台消费者(new added)
@@ -533,6 +533,8 @@ POST /openapi/v1/consumers
```python
import apollo_openapi
from apollo_openapi.apis.tags import portal_management_api
+from apollo_openapi.model.open_consumer_create_request_dto import OpenConsumerCreateRequestDTO
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
@@ -558,7 +560,17 @@ with apollo_openapi.ApiClient(configuration) as api_client:
# example passing only required values which don't have defaults set
query_params = {
}
- body = dict()
+ body = OpenConsumerCreateRequestDTO(
+ app_id="app_id_example",
+ allow_create_application=False,
+ allow_manage_users=False,
+ name="name_example",
+ org_id="org_id_example",
+ org_name="org_name_example",
+ owner_name="owner_name_example",
+ rate_limit_enabled=False,
+ rate_limit=0,
+ )
try:
# 创建开放平台消费者(new added)
api_response = api_instance.create_consumer(
@@ -573,7 +585,17 @@ with apollo_openapi.ApiClient(configuration) as api_client:
query_params = {
'expires': "expires_example",
}
- body = dict()
+ body = OpenConsumerCreateRequestDTO(
+ app_id="app_id_example",
+ allow_create_application=False,
+ allow_manage_users=False,
+ name="name_example",
+ org_id="org_id_example",
+ org_name="org_name_example",
+ owner_name="owner_name_example",
+ rate_limit_enabled=False,
+ rate_limit=0,
+ )
try:
# 创建开放平台消费者(new added)
api_response = api_instance.create_consumer(
@@ -599,11 +621,10 @@ skip_deserialization | bool | default is False | when True, headers and body wil
### body
# SchemaForRequestBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**OpenConsumerCreateRequestDTO**](../../models/OpenConsumerCreateRequestDTO.md) | |
-## Model Type Info
-Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | -------------
-dict, frozendict.frozendict, | frozendict.frozendict, | |
### query_params
#### RequestQueryParams
@@ -637,11 +658,10 @@ body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | |
headers | Unset | headers were not defined |
# SchemaFor200ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**OpenConsumerInfoDTO**](../../models/OpenConsumerInfoDTO.md) | |
-## Model Type Info
-Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | -------------
-dict, frozendict.frozendict, | frozendict.frozendict, | |
### Authorization
@@ -2955,7 +2975,7 @@ dict, frozendict.frozendict, | frozendict.frozendict, | |
# **get_consumer_list**
-> [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}] get_consumer_list()
+> [OpenConsumerSummaryDTO] get_consumer_list()
查询开放平台消费者列表(new added)
@@ -2967,6 +2987,7 @@ GET /openapi/v1/consumers
```python
import apollo_openapi
from apollo_openapi.apis.tags import portal_management_api
+from apollo_openapi.model.open_consumer_summary_dto import OpenConsumerSummaryDTO
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
@@ -3060,14 +3081,7 @@ list, tuple, | tuple, | |
### Tuple Items
Class Name | Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | ------------- | -------------
-[items](#items) | dict, frozendict.frozendict, | frozendict.frozendict, | |
-
-# items
-
-## Model Type Info
-Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | -------------
-dict, frozendict.frozendict, | frozendict.frozendict, | |
+[**OpenConsumerSummaryDTO**]({{complexTypePrefix}}OpenConsumerSummaryDTO.md) | [**OpenConsumerSummaryDTO**]({{complexTypePrefix}}OpenConsumerSummaryDTO.md) | [**OpenConsumerSummaryDTO**]({{complexTypePrefix}}OpenConsumerSummaryDTO.md) | |
### Authorization
@@ -3077,7 +3091,7 @@ dict, frozendict.frozendict, | frozendict.frozendict, | |
# **get_consumer_token_by_app_id**
-> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_consumer_token_by_app_id(app_id)
+> OpenConsumerInfoDTO get_consumer_token_by_app_id(app_id)
按应用ID查询消费者Token(new added)
@@ -3089,6 +3103,7 @@ GET /openapi/v1/consumer-tokens/by-appId
```python
import apollo_openapi
from apollo_openapi.apis.tags import portal_management_api
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
@@ -3164,11 +3179,10 @@ body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | |
headers | Unset | headers were not defined |
# SchemaFor200ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**OpenConsumerInfoDTO**](../../models/OpenConsumerInfoDTO.md) | |
-## Model Type Info
-Input Type | Accessed Type | Description | Notes
------------- | ------------- | ------------- | -------------
-dict, frozendict.frozendict, | frozendict.frozendict, | |
### Authorization
diff --git a/python/docs/apis/tags/PortalUserManagementApi.md b/python/docs/apis/tags/UserManagementApi.md
similarity index 69%
rename from python/docs/apis/tags/PortalUserManagementApi.md
rename to python/docs/apis/tags/UserManagementApi.md
index c98f8250..1672e29f 100644
--- a/python/docs/apis/tags/PortalUserManagementApi.md
+++ b/python/docs/apis/tags/UserManagementApi.md
@@ -1,29 +1,30 @@
-# apollo_openapi.apis.tags.portal_user_management_api.PortalUserManagementApi
+# apollo_openapi.apis.tags.user_management_api.UserManagementApi
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**change_user_enabled**](#change_user_enabled) | **put** /openapi/v1/users/enabled | 修改Portal用户启用状态(new added)
-[**create_or_update_user**](#create_or_update_user) | **post** /openapi/v1/users | 创建或更新Portal用户(new added)
+[**change_user_enabled**](#change_user_enabled) | **put** /openapi/v1/users/enabled | 修改用户启用状态(new added)
+[**create_or_update_user**](#create_or_update_user) | **post** /openapi/v1/users | 创建或更新用户(new added)
[**get_current_user**](#get_current_user) | **get** /openapi/v1/user | 获取当前Portal用户(new added)
-[**search_users**](#search_users) | **get** /openapi/v1/users | 搜索Portal用户(new added)
+[**get_user_by_user_id**](#get_user_by_user_id) | **get** /openapi/v1/users/{userId} | 获取指定用户(new added)
+[**search_users**](#search_users) | **get** /openapi/v1/users | 搜索用户(new added)
# **change_user_enabled**
> change_user_enabled(open_user_dto)
-修改Portal用户启用状态(new added)
+修改用户启用状态(new added)
-PUT /openapi/v1/users/enabled
+PUT /openapi/v1/users/enabled,Portal用户登录态使用当前登录用户作为operator;Consumer Token访问时需要具备ManageUsers权限并传入有效operator
### Example
* Api Key Authentication (ApiKeyAuth):
```python
import apollo_openapi
-from apollo_openapi.apis.tags import portal_user_management_api
+from apollo_openapi.apis.tags import user_management_api
from apollo_openapi.model.open_user_dto import OpenUserDTO
from apollo_openapi.model.exception_response import ExceptionResponse
from pprint import pprint
@@ -46,9 +47,31 @@ configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
# Enter a context with an instance of the API client
with apollo_openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = portal_user_management_api.PortalUserManagementApi(api_client)
+ api_instance = user_management_api.UserManagementApi(api_client)
# example passing only required values which don't have defaults set
+ query_params = {
+ }
+ body = OpenUserDTO(
+ username="username_example",
+ user_display_name="user_display_name_example",
+ password="password_example",
+ email="email_example",
+ enabled=1,
+ )
+ try:
+ # 修改用户启用状态(new added)
+ api_response = api_instance.change_user_enabled(
+ query_params=query_params,
+ body=body,
+ )
+ except apollo_openapi.ApiException as e:
+ print("Exception when calling UserManagementApi->change_user_enabled: %s\n" % e)
+
+ # example passing only optional values
+ query_params = {
+ 'operator': "operator_example",
+ }
body = OpenUserDTO(
username="username_example",
user_display_name="user_display_name_example",
@@ -57,18 +80,20 @@ with apollo_openapi.ApiClient(configuration) as api_client:
enabled=1,
)
try:
- # 修改Portal用户启用状态(new added)
+ # 修改用户启用状态(new added)
api_response = api_instance.change_user_enabled(
+ query_params=query_params,
body=body,
)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->change_user_enabled: %s\n" % e)
+ print("Exception when calling UserManagementApi->change_user_enabled: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
body | typing.Union[SchemaForRequestBodyApplicationJson] | required |
+query_params | RequestQueryParams | |
content_type | str | optional, default is 'application/json' | Selects the schema and serialization of the request body
accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client
stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
@@ -83,6 +108,21 @@ Type | Description | Notes
[**OpenUserDTO**](../../models/OpenUserDTO.md) | |
+### query_params
+#### RequestQueryParams
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+operator | OperatorSchema | | optional
+
+
+# OperatorSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
### Return Types, Responses
Code | Class | Description
@@ -135,16 +175,16 @@ Type | Description | Notes
> create_or_update_user(open_user_dto)
-创建或更新Portal用户(new added)
+创建或更新用户(new added)
-POST /openapi/v1/users
+POST /openapi/v1/users,Portal用户登录态使用当前登录用户作为operator;Consumer Token访问时需要具备ManageUsers权限并传入有效operator
### Example
* Api Key Authentication (ApiKeyAuth):
```python
import apollo_openapi
-from apollo_openapi.apis.tags import portal_user_management_api
+from apollo_openapi.apis.tags import user_management_api
from apollo_openapi.model.open_user_dto import OpenUserDTO
from apollo_openapi.model.exception_response import ExceptionResponse
from pprint import pprint
@@ -167,7 +207,7 @@ configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
# Enter a context with an instance of the API client
with apollo_openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = portal_user_management_api.PortalUserManagementApi(api_client)
+ api_instance = user_management_api.UserManagementApi(api_client)
# example passing only required values which don't have defaults set
query_params = {
@@ -180,17 +220,18 @@ with apollo_openapi.ApiClient(configuration) as api_client:
enabled=1,
)
try:
- # 创建或更新Portal用户(new added)
+ # 创建或更新用户(new added)
api_response = api_instance.create_or_update_user(
query_params=query_params,
body=body,
)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->create_or_update_user: %s\n" % e)
+ print("Exception when calling UserManagementApi->create_or_update_user: %s\n" % e)
# example passing only optional values
query_params = {
'isCreate': False,
+ 'operator': "operator_example",
}
body = OpenUserDTO(
username="username_example",
@@ -200,13 +241,13 @@ with apollo_openapi.ApiClient(configuration) as api_client:
enabled=1,
)
try:
- # 创建或更新Portal用户(new added)
+ # 创建或更新用户(new added)
api_response = api_instance.create_or_update_user(
query_params=query_params,
body=body,
)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->create_or_update_user: %s\n" % e)
+ print("Exception when calling UserManagementApi->create_or_update_user: %s\n" % e)
```
### Parameters
@@ -234,6 +275,7 @@ Type | Description | Notes
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
isCreate | IsCreateSchema | | optional
+operator | OperatorSchema | | optional
# IsCreateSchema
@@ -243,6 +285,13 @@ Input Type | Accessed Type | Description | Notes
------------ | ------------- | ------------- | -------------
bool, | BoolClass, | | if omitted the server will use the default value of False
+# OperatorSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
### Return Types, Responses
Code | Class | Description
@@ -304,7 +353,7 @@ GET /openapi/v1/user
* Api Key Authentication (ApiKeyAuth):
```python
import apollo_openapi
-from apollo_openapi.apis.tags import portal_user_management_api
+from apollo_openapi.apis.tags import user_management_api
from apollo_openapi.model.exception_response import ExceptionResponse
from apollo_openapi.model.open_user_info_dto import OpenUserInfoDTO
from pprint import pprint
@@ -327,7 +376,7 @@ configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
# Enter a context with an instance of the API client
with apollo_openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = portal_user_management_api.PortalUserManagementApi(api_client)
+ api_instance = user_management_api.UserManagementApi(api_client)
# example, this endpoint has no required or optional parameters
try:
@@ -335,7 +384,7 @@ with apollo_openapi.ApiClient(configuration) as api_client:
api_response = api_instance.get_current_user()
pprint(api_response)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->get_current_user: %s\n" % e)
+ print("Exception when calling UserManagementApi->get_current_user: %s\n" % e)
```
### Parameters
This endpoint does not need any parameter.
@@ -388,6 +437,149 @@ Type | Description | Notes
[**ExceptionResponse**](../../models/ExceptionResponse.md) | |
+### Authorization
+
+[ApiKeyAuth](../../../README.md#ApiKeyAuth)
+
+[[Back to top]](#__pageTop) [[Back to API list]](../../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../../README.md#documentation-for-models) [[Back to README]](../../../README.md)
+
+# **get_user_by_user_id**
+
+> OpenUserInfoDTO get_user_by_user_id(user_id)
+
+获取指定用户(new added)
+
+GET /openapi/v1/users/{userId},支持Portal用户登录态或具备ManageUsers权限的Consumer Token访问
+
+### Example
+
+* Api Key Authentication (ApiKeyAuth):
+```python
+import apollo_openapi
+from apollo_openapi.apis.tags import user_management_api
+from apollo_openapi.model.exception_response import ExceptionResponse
+from apollo_openapi.model.open_user_info_dto import OpenUserInfoDTO
+from pprint import pprint
+# Defining the host is optional and defaults to http://localhost
+# See configuration.py for a list of all supported configuration parameters.
+configuration = apollo_openapi.Configuration(
+ host = "http://localhost"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+# Enter a context with an instance of the API client
+with apollo_openapi.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = user_management_api.UserManagementApi(api_client)
+
+ # example passing only required values which don't have defaults set
+ path_params = {
+ 'userId': "userId_example",
+ }
+ try:
+ # 获取指定用户(new added)
+ api_response = api_instance.get_user_by_user_id(
+ path_params=path_params,
+ )
+ pprint(api_response)
+ except apollo_openapi.ApiException as e:
+ print("Exception when calling UserManagementApi->get_user_by_user_id: %s\n" % e)
+```
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+path_params | RequestPathParams | |
+accept_content_types | typing.Tuple[str] | default is ('application/json', ) | Tells the server the content type(s) that are accepted by the client
+stream | bool | default is False | if True then the response.content will be streamed and loaded from a file like object. When downloading a file, set this to True to force the code to deserialize the content to a FileSchema file
+timeout | typing.Optional[typing.Union[int, typing.Tuple]] | default is None | the timeout used by the rest client
+skip_deserialization | bool | default is False | when True, headers and body will be unset and an instance of api_client.ApiResponseWithoutDeserialization will be returned
+
+### path_params
+#### RequestPathParams
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+userId | UserIdSchema | |
+
+# UserIdSchema
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+str, | str, | |
+
+### Return Types, Responses
+
+Code | Class | Description
+------------- | ------------- | -------------
+n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
+200 | [ApiResponseFor200](#get_user_by_user_id.ApiResponseFor200) | 成功获取用户
+400 | [ApiResponseFor400](#get_user_by_user_id.ApiResponseFor400) | 请求参数错误或用户不存在
+401 | [ApiResponseFor401](#get_user_by_user_id.ApiResponseFor401) | 未登录或未认证
+403 | [ApiResponseFor403](#get_user_by_user_id.ApiResponseFor403) | 权限不足
+
+#### get_user_by_user_id.ApiResponseFor200
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor200ResponseBodyApplicationJson, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor200ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**OpenUserInfoDTO**](../../models/OpenUserInfoDTO.md) | |
+
+
+#### get_user_by_user_id.ApiResponseFor400
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor400ResponseBodyApplicationJson, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor400ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**ExceptionResponse**](../../models/ExceptionResponse.md) | |
+
+
+#### get_user_by_user_id.ApiResponseFor401
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor401ResponseBodyApplicationJson, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor401ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**ExceptionResponse**](../../models/ExceptionResponse.md) | |
+
+
+#### get_user_by_user_id.ApiResponseFor403
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+response | urllib3.HTTPResponse | Raw response |
+body | typing.Union[SchemaFor403ResponseBodyApplicationJson, ] | |
+headers | Unset | headers were not defined |
+
+# SchemaFor403ResponseBodyApplicationJson
+Type | Description | Notes
+------------- | ------------- | -------------
+[**ExceptionResponse**](../../models/ExceptionResponse.md) | |
+
+
### Authorization
[ApiKeyAuth](../../../README.md#ApiKeyAuth)
@@ -398,16 +590,16 @@ Type | Description | Notes
> [OpenUserInfoDTO] search_users(keyword)
-搜索Portal用户(new added)
+搜索用户(new added)
-GET /openapi/v1/users
+GET /openapi/v1/users,支持Portal用户登录态或具备ManageUsers权限的Consumer Token访问
### Example
* Api Key Authentication (ApiKeyAuth):
```python
import apollo_openapi
-from apollo_openapi.apis.tags import portal_user_management_api
+from apollo_openapi.apis.tags import user_management_api
from apollo_openapi.model.exception_response import ExceptionResponse
from apollo_openapi.model.open_user_info_dto import OpenUserInfoDTO
from pprint import pprint
@@ -430,20 +622,20 @@ configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
# Enter a context with an instance of the API client
with apollo_openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = portal_user_management_api.PortalUserManagementApi(api_client)
+ api_instance = user_management_api.UserManagementApi(api_client)
# example passing only required values which don't have defaults set
query_params = {
'keyword': "keyword_example",
}
try:
- # 搜索Portal用户(new added)
+ # 搜索用户(new added)
api_response = api_instance.search_users(
query_params=query_params,
)
pprint(api_response)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->search_users: %s\n" % e)
+ print("Exception when calling UserManagementApi->search_users: %s\n" % e)
# example passing only optional values
query_params = {
@@ -453,13 +645,13 @@ with apollo_openapi.ApiClient(configuration) as api_client:
'limit': 10,
}
try:
- # 搜索Portal用户(new added)
+ # 搜索用户(new added)
api_response = api_instance.search_users(
query_params=query_params,
)
pprint(api_response)
except apollo_openapi.ApiException as e:
- print("Exception when calling PortalUserManagementApi->search_users: %s\n" % e)
+ print("Exception when calling UserManagementApi->search_users: %s\n" % e)
```
### Parameters
@@ -517,7 +709,7 @@ Code | Class | Description
n/a | api_client.ApiResponseWithoutDeserialization | When skip_deserialization is True this response is returned
200 | [ApiResponseFor200](#search_users.ApiResponseFor200) | 成功获取用户列表
401 | [ApiResponseFor401](#search_users.ApiResponseFor401) | 未登录或未授权访问
-403 | [ApiResponseFor403](#search_users.ApiResponseFor403) | 仅支持Portal用户登录态访问
+403 | [ApiResponseFor403](#search_users.ApiResponseFor403) | 权限不足
#### search_users.ApiResponseFor200
Name | Type | Description | Notes
diff --git a/python/docs/models/OpenConsumerCreateRequestDTO.md b/python/docs/models/OpenConsumerCreateRequestDTO.md
new file mode 100644
index 00000000..e5740884
--- /dev/null
+++ b/python/docs/models/OpenConsumerCreateRequestDTO.md
@@ -0,0 +1,22 @@
+# apollo_openapi.model.open_consumer_create_request_dto.OpenConsumerCreateRequestDTO
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**appId** | str, | str, | 第三方应用ID | [optional]
+**allowCreateApplication** | bool, | BoolClass, | 是否允许该Consumer Token创建应用 | [optional] if omitted the server will use the default value of False
+**allowManageUsers** | bool, | BoolClass, | 是否允许该Consumer Token管理用户 | [optional] if omitted the server will use the default value of False
+**name** | str, | str, | 第三方应用名称 | [optional]
+**orgId** | str, | str, | 部门ID | [optional]
+**orgName** | str, | str, | 部门名称 | [optional]
+**ownerName** | str, | str, | 负责人用户名 | [optional]
+**rateLimitEnabled** | bool, | BoolClass, | 是否开启限流 | [optional] if omitted the server will use the default value of False
+**rateLimit** | decimal.Decimal, int, | decimal.Decimal, | 限流QPS,0表示不限流 | [optional] if omitted the server will use the default value of 0
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
diff --git a/python/docs/models/OpenConsumerInfoDTO.md b/python/docs/models/OpenConsumerInfoDTO.md
new file mode 100644
index 00000000..8595323d
--- /dev/null
+++ b/python/docs/models/OpenConsumerInfoDTO.md
@@ -0,0 +1,25 @@
+# apollo_openapi.model.open_consumer_info_dto.OpenConsumerInfoDTO
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**appId** | str, | str, | 第三方应用ID | [optional]
+**name** | str, | str, | 第三方应用名称 | [optional]
+**orgId** | str, | str, | 部门ID | [optional]
+**orgName** | str, | str, | 部门名称 | [optional]
+**ownerName** | str, | str, | 负责人用户名 | [optional]
+**ownerEmail** | str, | str, | 负责人邮箱 | [optional]
+**consumerId** | decimal.Decimal, int, | decimal.Decimal, | Consumer ID | [optional] value must be a 64 bit integer
+**token** | str, | str, | Consumer Token,仅在创建或按应用查询详情时返回 | [optional]
+**allowCreateApplication** | bool, | BoolClass, | 是否允许该Consumer Token创建应用 | [optional] if omitted the server will use the default value of False
+**allowManageUsers** | bool, | BoolClass, | 是否允许该Consumer Token管理用户 | [optional] if omitted the server will use the default value of False
+**rateLimit** | decimal.Decimal, int, | decimal.Decimal, | 限流QPS,0表示不限流 | [optional] if omitted the server will use the default value of 0
+**rateLimitEnabled** | bool, | BoolClass, | 是否开启限流 | [optional] if omitted the server will use the default value of False
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
diff --git a/python/docs/models/OpenConsumerSummaryDTO.md b/python/docs/models/OpenConsumerSummaryDTO.md
new file mode 100644
index 00000000..08268ad3
--- /dev/null
+++ b/python/docs/models/OpenConsumerSummaryDTO.md
@@ -0,0 +1,24 @@
+# apollo_openapi.model.open_consumer_summary_dto.OpenConsumerSummaryDTO
+
+## Model Type Info
+Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+dict, frozendict.frozendict, | frozendict.frozendict, | |
+
+### Dictionary Keys
+Key | Input Type | Accessed Type | Description | Notes
+------------ | ------------- | ------------- | ------------- | -------------
+**appId** | str, | str, | 第三方应用ID | [optional]
+**name** | str, | str, | 第三方应用名称 | [optional]
+**orgId** | str, | str, | 部门ID | [optional]
+**orgName** | str, | str, | 部门名称 | [optional]
+**ownerName** | str, | str, | 负责人用户名 | [optional]
+**ownerEmail** | str, | str, | 负责人邮箱 | [optional]
+**consumerId** | decimal.Decimal, int, | decimal.Decimal, | Consumer ID | [optional] value must be a 64 bit integer
+**allowCreateApplication** | bool, | BoolClass, | 是否允许该Consumer Token创建应用 | [optional] if omitted the server will use the default value of False
+**allowManageUsers** | bool, | BoolClass, | 是否允许该Consumer Token管理用户 | [optional] if omitted the server will use the default value of False
+**rateLimit** | decimal.Decimal, int, | decimal.Decimal, | 限流QPS,0表示不限流 | [optional] if omitted the server will use the default value of 0
+**rateLimitEnabled** | bool, | BoolClass, | 是否开启限流 | [optional] if omitted the server will use the default value of False
+**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
+
+[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
diff --git a/python/setup.py b/python/setup.py
index 8e72146d..c9b4d2b3 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -11,7 +11,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "apollo-openapi"
-VERSION = "0.3.5"
+VERSION = "0.3.6"
# To install the library, run the following
#
# python setup.py install
diff --git a/python/test/test_models/test_open_consumer_create_request_dto.py b/python/test/test_models/test_open_consumer_create_request_dto.py
new file mode 100644
index 00000000..d88ed1d3
--- /dev/null
+++ b/python/test/test_models/test_open_consumer_create_request_dto.py
@@ -0,0 +1,24 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import unittest
+
+import apollo_openapi
+from apollo_openapi.model.open_consumer_create_request_dto import OpenConsumerCreateRequestDTO
+from apollo_openapi import configuration
+
+
+class TestOpenConsumerCreateRequestDTO(unittest.TestCase):
+ """OpenConsumerCreateRequestDTO unit test stubs"""
+ _configuration = configuration.Configuration()
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python/test/test_models/test_open_consumer_info_dto.py b/python/test/test_models/test_open_consumer_info_dto.py
new file mode 100644
index 00000000..559a81ed
--- /dev/null
+++ b/python/test/test_models/test_open_consumer_info_dto.py
@@ -0,0 +1,24 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import unittest
+
+import apollo_openapi
+from apollo_openapi.model.open_consumer_info_dto import OpenConsumerInfoDTO
+from apollo_openapi import configuration
+
+
+class TestOpenConsumerInfoDTO(unittest.TestCase):
+ """OpenConsumerInfoDTO unit test stubs"""
+ _configuration = configuration.Configuration()
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python/test/test_models/test_open_consumer_summary_dto.py b/python/test/test_models/test_open_consumer_summary_dto.py
new file mode 100644
index 00000000..76399f12
--- /dev/null
+++ b/python/test/test_models/test_open_consumer_summary_dto.py
@@ -0,0 +1,24 @@
+# coding: utf-8
+
+"""
+ Apollo OpenAPI
+
+ Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
# noqa: E501
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import unittest
+
+import apollo_openapi
+from apollo_openapi.model.open_consumer_summary_dto import OpenConsumerSummaryDTO
+from apollo_openapi import configuration
+
+
+class TestOpenConsumerSummaryDTO(unittest.TestCase):
+ """OpenConsumerSummaryDTO unit test stubs"""
+ _configuration = configuration.Configuration()
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/python/test/test_paths/test_openapi_v1_users/test_get.py b/python/test/test_paths/test_openapi_v1_users/test_get.py
index b6d9f9e4..5820c4c1 100644
--- a/python/test/test_paths/test_openapi_v1_users/test_get.py
+++ b/python/test/test_paths/test_openapi_v1_users/test_get.py
@@ -21,7 +21,7 @@
class TestOpenapiV1Users(ApiTestMixin, unittest.TestCase):
"""
OpenapiV1Users unit test stubs
- 搜索Portal用户(new added) # noqa: E501
+ 搜索用户(new added) # noqa: E501
"""
_configuration = configuration.Configuration()
diff --git a/python/test/test_paths/test_openapi_v1_users/test_post.py b/python/test/test_paths/test_openapi_v1_users/test_post.py
index 0e5d19c5..a449ba39 100644
--- a/python/test/test_paths/test_openapi_v1_users/test_post.py
+++ b/python/test/test_paths/test_openapi_v1_users/test_post.py
@@ -21,7 +21,7 @@
class TestOpenapiV1Users(ApiTestMixin, unittest.TestCase):
"""
OpenapiV1Users unit test stubs
- 创建或更新Portal用户(new added) # noqa: E501
+ 创建或更新用户(new added) # noqa: E501
"""
_configuration = configuration.Configuration()
diff --git a/python/test/test_paths/test_openapi_v1_users_enabled/test_put.py b/python/test/test_paths/test_openapi_v1_users_enabled/test_put.py
index 84c59575..00a17d5b 100644
--- a/python/test/test_paths/test_openapi_v1_users_enabled/test_put.py
+++ b/python/test/test_paths/test_openapi_v1_users_enabled/test_put.py
@@ -21,7 +21,7 @@
class TestOpenapiV1UsersEnabled(ApiTestMixin, unittest.TestCase):
"""
OpenapiV1UsersEnabled unit test stubs
- 修改Portal用户启用状态(new added) # noqa: E501
+ 修改用户启用状态(new added) # noqa: E501
"""
_configuration = configuration.Configuration()
diff --git a/python/test/test_paths/test_openapi_v1_users_user_id/__init__.py b/python/test/test_paths/test_openapi_v1_users_user_id/__init__.py
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/python/test/test_paths/test_openapi_v1_users_user_id/__init__.py
@@ -0,0 +1 @@
+
diff --git a/python/test/test_paths/test_openapi_v1_users_user_id/test_get.py b/python/test/test_paths/test_openapi_v1_users_user_id/test_get.py
new file mode 100644
index 00000000..f2278426
--- /dev/null
+++ b/python/test/test_paths/test_openapi_v1_users_user_id/test_get.py
@@ -0,0 +1,41 @@
+# coding: utf-8
+
+"""
+
+
+ Generated by: https://openapi-generator.tech
+"""
+
+import unittest
+from unittest.mock import patch
+
+import urllib3
+
+import apollo_openapi
+from apollo_openapi.paths.openapi_v1_users_user_id import get # noqa: E501
+from apollo_openapi import configuration, schemas, api_client
+
+from .. import ApiTestMixin
+
+
+class TestOpenapiV1UsersUserId(ApiTestMixin, unittest.TestCase):
+ """
+ OpenapiV1UsersUserId unit test stubs
+ 获取指定用户(new added) # noqa: E501
+ """
+ _configuration = configuration.Configuration()
+
+ def setUp(self):
+ used_api_client = api_client.ApiClient(configuration=self._configuration)
+ self.api = get.ApiForget(api_client=used_api_client) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ response_status = 200
+
+
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/rust/.openapi-generator/FILES b/rust/.openapi-generator/FILES
index 3b1adb58..6e635f7d 100644
--- a/rust/.openapi-generator/FILES
+++ b/rust/.openapi-generator/FILES
@@ -12,6 +12,9 @@ docs/OpenAppNamespaceDto.md
docs/OpenAppRoleUserDto.md
docs/OpenClusterDto.md
docs/OpenClusterNamespaceRoleUserDto.md
+docs/OpenConsumerCreateRequestDto.md
+docs/OpenConsumerInfoDto.md
+docs/OpenConsumerSummaryDto.md
docs/OpenCreateAppDto.md
docs/OpenCreateNamespaceDto.md
docs/OpenEnvClusterDto.md
@@ -56,6 +59,9 @@ src/models/open_app_namespace_dto.rs
src/models/open_app_role_user_dto.rs
src/models/open_cluster_dto.rs
src/models/open_cluster_namespace_role_user_dto.rs
+src/models/open_consumer_create_request_dto.rs
+src/models/open_consumer_info_dto.rs
+src/models/open_consumer_summary_dto.rs
src/models/open_create_app_dto.rs
src/models/open_create_namespace_dto.rs
src/models/open_env_cluster_dto.rs
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index f9f6d8b9..d167287b 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "apollo-openapi"
-version = "0.3.5"
+version = "0.3.6"
authors = ["OpenAPI Generator team and contributors"]
description = "Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
"
# Override this license by providing a License Object in the OpenAPI.
diff --git a/rust/README.md b/rust/README.md
index eec2009b..ba71cf00 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -22,8 +22,8 @@
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client.
-- API version: 0.3.5
-- Package version: 0.3.5
+- API version: 0.3.6
+- Package version: 0.3.6
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
## Installation
@@ -53,6 +53,9 @@ Class | Method | HTTP request | Description
- [OpenAppRoleUserDto](docs/OpenAppRoleUserDto.md)
- [OpenClusterDto](docs/OpenClusterDto.md)
- [OpenClusterNamespaceRoleUserDto](docs/OpenClusterNamespaceRoleUserDto.md)
+ - [OpenConsumerCreateRequestDto](docs/OpenConsumerCreateRequestDto.md)
+ - [OpenConsumerInfoDto](docs/OpenConsumerInfoDto.md)
+ - [OpenConsumerSummaryDto](docs/OpenConsumerSummaryDto.md)
- [OpenCreateAppDto](docs/OpenCreateAppDto.md)
- [OpenCreateNamespaceDto](docs/OpenCreateNamespaceDto.md)
- [OpenEnvClusterDto](docs/OpenEnvClusterDto.md)
diff --git a/rust/docs/OpenConsumerCreateRequestDto.md b/rust/docs/OpenConsumerCreateRequestDto.md
new file mode 100644
index 00000000..7fb5dc6e
--- /dev/null
+++ b/rust/docs/OpenConsumerCreateRequestDto.md
@@ -0,0 +1,17 @@
+# OpenConsumerCreateRequestDto
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**app_id** | Option<**String**> | 第三方应用ID | [optional]
+**allow_create_application** | Option<**bool**> | 是否允许该Consumer Token创建应用 | [optional][default to false]
+**allow_manage_users** | Option<**bool**> | 是否允许该Consumer Token管理用户 | [optional][default to false]
+**name** | Option<**String**> | 第三方应用名称 | [optional]
+**org_id** | Option<**String**> | 部门ID | [optional]
+**org_name** | Option<**String**> | 部门名称 | [optional]
+**owner_name** | Option<**String**> | 负责人用户名 | [optional]
+**rate_limit_enabled** | Option<**bool**> | 是否开启限流 | [optional][default to false]
+**rate_limit** | Option<**i32**> | 限流QPS,0表示不限流 | [optional][default to 0]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/rust/docs/OpenConsumerInfoDto.md b/rust/docs/OpenConsumerInfoDto.md
new file mode 100644
index 00000000..b995a1e8
--- /dev/null
+++ b/rust/docs/OpenConsumerInfoDto.md
@@ -0,0 +1,20 @@
+# OpenConsumerInfoDto
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**app_id** | Option<**String**> | 第三方应用ID | [optional]
+**name** | Option<**String**> | 第三方应用名称 | [optional]
+**org_id** | Option<**String**> | 部门ID | [optional]
+**org_name** | Option<**String**> | 部门名称 | [optional]
+**owner_name** | Option<**String**> | 负责人用户名 | [optional]
+**owner_email** | Option<**String**> | 负责人邮箱 | [optional]
+**consumer_id** | Option<**i64**> | Consumer ID | [optional]
+**token** | Option<**String**> | Consumer Token,仅在创建或按应用查询详情时返回 | [optional]
+**allow_create_application** | Option<**bool**> | 是否允许该Consumer Token创建应用 | [optional][default to false]
+**allow_manage_users** | Option<**bool**> | 是否允许该Consumer Token管理用户 | [optional][default to false]
+**rate_limit** | Option<**i32**> | 限流QPS,0表示不限流 | [optional][default to 0]
+**rate_limit_enabled** | Option<**bool**> | 是否开启限流 | [optional][default to false]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/rust/docs/OpenConsumerSummaryDto.md b/rust/docs/OpenConsumerSummaryDto.md
new file mode 100644
index 00000000..a8469f06
--- /dev/null
+++ b/rust/docs/OpenConsumerSummaryDto.md
@@ -0,0 +1,19 @@
+# OpenConsumerSummaryDto
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**app_id** | Option<**String**> | 第三方应用ID | [optional]
+**name** | Option<**String**> | 第三方应用名称 | [optional]
+**org_id** | Option<**String**> | 部门ID | [optional]
+**org_name** | Option<**String**> | 部门名称 | [optional]
+**owner_name** | Option<**String**> | 负责人用户名 | [optional]
+**owner_email** | Option<**String**> | 负责人邮箱 | [optional]
+**consumer_id** | Option<**i64**> | Consumer ID | [optional]
+**allow_create_application** | Option<**bool**> | 是否允许该Consumer Token创建应用 | [optional][default to false]
+**allow_manage_users** | Option<**bool**> | 是否允许该Consumer Token管理用户 | [optional][default to false]
+**rate_limit** | Option<**i32**> | 限流QPS,0表示不限流 | [optional][default to 0]
+**rate_limit_enabled** | Option<**bool**> | 是否开启限流 | [optional][default to false]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/rust/src/apis/configuration.rs b/rust/src/apis/configuration.rs
index a152649c..b24f67c4 100644
--- a/rust/src/apis/configuration.rs
+++ b/rust/src/apis/configuration.rs
@@ -40,7 +40,7 @@ impl Default for Configuration {
fn default() -> Self {
Configuration {
base_path: "http://localhost".to_owned(),
- user_agent: Some("OpenAPI-Generator/0.3.5/rust".to_owned()),
+ user_agent: Some("OpenAPI-Generator/0.3.6/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
diff --git a/rust/src/models/mod.rs b/rust/src/models/mod.rs
index 2e9e710a..3be8d585 100644
--- a/rust/src/models/mod.rs
+++ b/rust/src/models/mod.rs
@@ -16,6 +16,12 @@ pub mod open_cluster_dto;
pub use self::open_cluster_dto::OpenClusterDto;
pub mod open_cluster_namespace_role_user_dto;
pub use self::open_cluster_namespace_role_user_dto::OpenClusterNamespaceRoleUserDto;
+pub mod open_consumer_create_request_dto;
+pub use self::open_consumer_create_request_dto::OpenConsumerCreateRequestDto;
+pub mod open_consumer_info_dto;
+pub use self::open_consumer_info_dto::OpenConsumerInfoDto;
+pub mod open_consumer_summary_dto;
+pub use self::open_consumer_summary_dto::OpenConsumerSummaryDto;
pub mod open_create_app_dto;
pub use self::open_create_app_dto::OpenCreateAppDto;
pub mod open_create_namespace_dto;
diff --git a/rust/src/models/open_consumer_create_request_dto.rs b/rust/src/models/open_consumer_create_request_dto.rs
new file mode 100644
index 00000000..0f5772a7
--- /dev/null
+++ b/rust/src/models/open_consumer_create_request_dto.rs
@@ -0,0 +1,58 @@
+/*
+ * Apollo OpenAPI
+ *
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ * Generated by: https://openapi-generator.tech
+ */
+
+
+
+
+#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
+pub struct OpenConsumerCreateRequestDto {
+ /// 第三方应用ID
+ #[serde(rename = "appId", skip_serializing_if = "Option::is_none")]
+ pub app_id: Option,
+ /// 是否允许该Consumer Token创建应用
+ #[serde(rename = "allowCreateApplication", skip_serializing_if = "Option::is_none")]
+ pub allow_create_application: Option,
+ /// 是否允许该Consumer Token管理用户
+ #[serde(rename = "allowManageUsers", skip_serializing_if = "Option::is_none")]
+ pub allow_manage_users: Option,
+ /// 第三方应用名称
+ #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
+ pub name: Option,
+ /// 部门ID
+ #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
+ pub org_id: Option,
+ /// 部门名称
+ #[serde(rename = "orgName", skip_serializing_if = "Option::is_none")]
+ pub org_name: Option,
+ /// 负责人用户名
+ #[serde(rename = "ownerName", skip_serializing_if = "Option::is_none")]
+ pub owner_name: Option,
+ /// 是否开启限流
+ #[serde(rename = "rateLimitEnabled", skip_serializing_if = "Option::is_none")]
+ pub rate_limit_enabled: Option,
+ /// 限流QPS,0表示不限流
+ #[serde(rename = "rateLimit", skip_serializing_if = "Option::is_none")]
+ pub rate_limit: Option,
+}
+
+impl OpenConsumerCreateRequestDto {
+ pub fn new() -> OpenConsumerCreateRequestDto {
+ OpenConsumerCreateRequestDto {
+ app_id: None,
+ allow_create_application: None,
+ allow_manage_users: None,
+ name: None,
+ org_id: None,
+ org_name: None,
+ owner_name: None,
+ rate_limit_enabled: None,
+ rate_limit: None,
+ }
+ }
+}
diff --git a/rust/src/models/open_consumer_info_dto.rs b/rust/src/models/open_consumer_info_dto.rs
new file mode 100644
index 00000000..63d48d5a
--- /dev/null
+++ b/rust/src/models/open_consumer_info_dto.rs
@@ -0,0 +1,70 @@
+/*
+ * Apollo OpenAPI
+ *
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ * Generated by: https://openapi-generator.tech
+ */
+
+
+
+
+#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
+pub struct OpenConsumerInfoDto {
+ /// 第三方应用ID
+ #[serde(rename = "appId", skip_serializing_if = "Option::is_none")]
+ pub app_id: Option,
+ /// 第三方应用名称
+ #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
+ pub name: Option,
+ /// 部门ID
+ #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
+ pub org_id: Option,
+ /// 部门名称
+ #[serde(rename = "orgName", skip_serializing_if = "Option::is_none")]
+ pub org_name: Option,
+ /// 负责人用户名
+ #[serde(rename = "ownerName", skip_serializing_if = "Option::is_none")]
+ pub owner_name: Option,
+ /// 负责人邮箱
+ #[serde(rename = "ownerEmail", skip_serializing_if = "Option::is_none")]
+ pub owner_email: Option,
+ /// Consumer ID
+ #[serde(rename = "consumerId", skip_serializing_if = "Option::is_none")]
+ pub consumer_id: Option,
+ /// Consumer Token,仅在创建或按应用查询详情时返回
+ #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
+ pub token: Option,
+ /// 是否允许该Consumer Token创建应用
+ #[serde(rename = "allowCreateApplication", skip_serializing_if = "Option::is_none")]
+ pub allow_create_application: Option,
+ /// 是否允许该Consumer Token管理用户
+ #[serde(rename = "allowManageUsers", skip_serializing_if = "Option::is_none")]
+ pub allow_manage_users: Option,
+ /// 限流QPS,0表示不限流
+ #[serde(rename = "rateLimit", skip_serializing_if = "Option::is_none")]
+ pub rate_limit: Option,
+ /// 是否开启限流
+ #[serde(rename = "rateLimitEnabled", skip_serializing_if = "Option::is_none")]
+ pub rate_limit_enabled: Option,
+}
+
+impl OpenConsumerInfoDto {
+ pub fn new() -> OpenConsumerInfoDto {
+ OpenConsumerInfoDto {
+ app_id: None,
+ name: None,
+ org_id: None,
+ org_name: None,
+ owner_name: None,
+ owner_email: None,
+ consumer_id: None,
+ token: None,
+ allow_create_application: None,
+ allow_manage_users: None,
+ rate_limit: None,
+ rate_limit_enabled: None,
+ }
+ }
+}
diff --git a/rust/src/models/open_consumer_summary_dto.rs b/rust/src/models/open_consumer_summary_dto.rs
new file mode 100644
index 00000000..71d54983
--- /dev/null
+++ b/rust/src/models/open_consumer_summary_dto.rs
@@ -0,0 +1,66 @@
+/*
+ * Apollo OpenAPI
+ *
+ * Apollo配置中心OpenAPI接口文档
认证方式
所有 API 接口都需要通过 Authorization header 进行身份验证。
获取 Token 的方式:
- Portal 管理界面获取:登录 Portal → 管理员工具 → 开放平台授权管理 → 创建第三方应用,获取 Token。
- Token 格式:
Authorization: token_value - Token 权限:按应用/环境/命名空间授予,建议不同用途分别创建。
使用示例
curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ *
+ * Generated by: https://openapi-generator.tech
+ */
+
+
+
+
+#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
+pub struct OpenConsumerSummaryDto {
+ /// 第三方应用ID
+ #[serde(rename = "appId", skip_serializing_if = "Option::is_none")]
+ pub app_id: Option,
+ /// 第三方应用名称
+ #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
+ pub name: Option,
+ /// 部门ID
+ #[serde(rename = "orgId", skip_serializing_if = "Option::is_none")]
+ pub org_id: Option,
+ /// 部门名称
+ #[serde(rename = "orgName", skip_serializing_if = "Option::is_none")]
+ pub org_name: Option,
+ /// 负责人用户名
+ #[serde(rename = "ownerName", skip_serializing_if = "Option::is_none")]
+ pub owner_name: Option,
+ /// 负责人邮箱
+ #[serde(rename = "ownerEmail", skip_serializing_if = "Option::is_none")]
+ pub owner_email: Option,
+ /// Consumer ID
+ #[serde(rename = "consumerId", skip_serializing_if = "Option::is_none")]
+ pub consumer_id: Option,
+ /// 是否允许该Consumer Token创建应用
+ #[serde(rename = "allowCreateApplication", skip_serializing_if = "Option::is_none")]
+ pub allow_create_application: Option,
+ /// 是否允许该Consumer Token管理用户
+ #[serde(rename = "allowManageUsers", skip_serializing_if = "Option::is_none")]
+ pub allow_manage_users: Option,
+ /// 限流QPS,0表示不限流
+ #[serde(rename = "rateLimit", skip_serializing_if = "Option::is_none")]
+ pub rate_limit: Option,
+ /// 是否开启限流
+ #[serde(rename = "rateLimitEnabled", skip_serializing_if = "Option::is_none")]
+ pub rate_limit_enabled: Option,
+}
+
+impl OpenConsumerSummaryDto {
+ pub fn new() -> OpenConsumerSummaryDto {
+ OpenConsumerSummaryDto {
+ app_id: None,
+ name: None,
+ org_id: None,
+ org_name: None,
+ owner_name: None,
+ owner_email: None,
+ consumer_id: None,
+ allow_create_application: None,
+ allow_manage_users: None,
+ rate_limit: None,
+ rate_limit_enabled: None,
+ }
+ }
+}
diff --git a/spring-boot2/.openapi-generator/FILES b/spring-boot2/.openapi-generator/FILES
index ad41e54d..83a4e864 100644
--- a/spring-boot2/.openapi-generator/FILES
+++ b/spring-boot2/.openapi-generator/FILES
@@ -43,12 +43,12 @@ src/main/java/com/apollo/openapi/server/api/PermissionManagementApiDelegate.java
src/main/java/com/apollo/openapi/server/api/PortalManagementApi.java
src/main/java/com/apollo/openapi/server/api/PortalManagementApiController.java
src/main/java/com/apollo/openapi/server/api/PortalManagementApiDelegate.java
-src/main/java/com/apollo/openapi/server/api/PortalUserManagementApi.java
-src/main/java/com/apollo/openapi/server/api/PortalUserManagementApiController.java
-src/main/java/com/apollo/openapi/server/api/PortalUserManagementApiDelegate.java
src/main/java/com/apollo/openapi/server/api/ReleaseManagementApi.java
src/main/java/com/apollo/openapi/server/api/ReleaseManagementApiController.java
src/main/java/com/apollo/openapi/server/api/ReleaseManagementApiDelegate.java
+src/main/java/com/apollo/openapi/server/api/UserManagementApi.java
+src/main/java/com/apollo/openapi/server/api/UserManagementApiController.java
+src/main/java/com/apollo/openapi/server/api/UserManagementApiDelegate.java
src/main/java/com/apollo/openapi/server/config/HomeController.java
src/main/java/com/apollo/openapi/server/config/SpringDocConfiguration.java
src/main/java/com/apollo/openapi/server/model/ExceptionResponse.java
@@ -60,6 +60,9 @@ src/main/java/com/apollo/openapi/server/model/OpenAppNamespaceDTO.java
src/main/java/com/apollo/openapi/server/model/OpenAppRoleUserDTO.java
src/main/java/com/apollo/openapi/server/model/OpenClusterDTO.java
src/main/java/com/apollo/openapi/server/model/OpenClusterNamespaceRoleUserDTO.java
+src/main/java/com/apollo/openapi/server/model/OpenConsumerCreateRequestDTO.java
+src/main/java/com/apollo/openapi/server/model/OpenConsumerInfoDTO.java
+src/main/java/com/apollo/openapi/server/model/OpenConsumerSummaryDTO.java
src/main/java/com/apollo/openapi/server/model/OpenCreateAppDTO.java
src/main/java/com/apollo/openapi/server/model/OpenCreateNamespaceDTO.java
src/main/java/com/apollo/openapi/server/model/OpenEnvClusterDTO.java
diff --git a/spring-boot2/pom.xml b/spring-boot2/pom.xml
index 68035eed..ee31ff45 100644
--- a/spring-boot2/pom.xml
+++ b/spring-boot2/pom.xml
@@ -4,7 +4,7 @@
apollo-openapi-server
jar
apollo-openapi-server
- 0.3.5
+ 0.3.6
1.8
${java.version}
diff --git a/spring-boot2/src/main/java/com/apollo/openapi/server/api/PortalManagementApi.java b/spring-boot2/src/main/java/com/apollo/openapi/server/api/PortalManagementApi.java
index 60f732a3..e05674b9 100644
--- a/spring-boot2/src/main/java/com/apollo/openapi/server/api/PortalManagementApi.java
+++ b/spring-boot2/src/main/java/com/apollo/openapi/server/api/PortalManagementApi.java
@@ -5,6 +5,9 @@
*/
package com.apollo.openapi.server.api;
+import com.apollo.openapi.server.model.OpenConsumerCreateRequestDTO;
+import com.apollo.openapi.server.model.OpenConsumerInfoDTO;
+import com.apollo.openapi.server.model.OpenConsumerSummaryDTO;
import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -181,7 +184,7 @@ default ResponseEntity