baiducloud-python-sdk-agentidentity 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- baiducloud_python_sdk_agentidentity/__init__.py +5 -0
- baiducloud_python_sdk_agentidentity/api/__init__.py +0 -0
- baiducloud_python_sdk_agentidentity/api/agentidentity_client.py +1361 -0
- baiducloud_python_sdk_agentidentity/models/__init__.py +65 -0
- baiducloud_python_sdk_agentidentity/models/agent_dto.py +133 -0
- baiducloud_python_sdk_agentidentity/models/authorize_endpoint_request.py +94 -0
- baiducloud_python_sdk_agentidentity/models/batch_acquisition_of_users_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/batch_get_resource_api_key_request.py +86 -0
- baiducloud_python_sdk_agentidentity/models/batch_get_resource_api_key_response.py +62 -0
- baiducloud_python_sdk_agentidentity/models/complete_oauth2session_request.py +104 -0
- baiducloud_python_sdk_agentidentity/models/create_agent_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/create_credential_provider_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/create_idp_configuration_request.py +180 -0
- baiducloud_python_sdk_agentidentity/models/create_oauth2_client_request.py +135 -0
- baiducloud_python_sdk_agentidentity/models/create_user_pool_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/create_user_request.py +102 -0
- baiducloud_python_sdk_agentidentity/models/credential_config.py +205 -0
- baiducloud_python_sdk_agentidentity/models/credential_provider_dto.py +135 -0
- baiducloud_python_sdk_agentidentity/models/delete_agent_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/delete_credential_provider_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/delete_idp_configuration_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/delete_oauth2_client_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/delete_user_pool_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/delete_user_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/disable_idp_configuration_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/enable_idp_configuration_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/get_agent_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/get_credential_provider_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/get_idp_configuration_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/get_oauth2_client_request.py +68 -0
- baiducloud_python_sdk_agentidentity/models/get_resource_apikey_request.py +86 -0
- baiducloud_python_sdk_agentidentity/models/get_resource_oauth2token_request.py +136 -0
- baiducloud_python_sdk_agentidentity/models/get_user_pool_request.py +60 -0
- baiducloud_python_sdk_agentidentity/models/get_user_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/get_wat_for_user_request.py +102 -0
- baiducloud_python_sdk_agentidentity/models/get_workload_access_token_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/list_agents_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/list_agents_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/list_credential_providers_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/list_credential_providers_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/list_idp_configurations_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/list_idp_configurations_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/list_oauth2_clients_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/list_oauth2_clients_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/list_user_pools_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/list_user_pools_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/list_users_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/list_users_response.py +86 -0
- baiducloud_python_sdk_agentidentity/models/o_idc_discovery_request.py +58 -0
- baiducloud_python_sdk_agentidentity/models/oauth2idp_callback_request.py +70 -0
- baiducloud_python_sdk_agentidentity/models/reset_password_request.py +92 -0
- baiducloud_python_sdk_agentidentity/models/resource_credential_dto.py +90 -0
- baiducloud_python_sdk_agentidentity/models/token_endpoint_request.py +108 -0
- baiducloud_python_sdk_agentidentity/models/update_agent_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/update_credential_provider_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/update_idp_configuration_request.py +162 -0
- baiducloud_python_sdk_agentidentity/models/update_oauth2_client_request.py +135 -0
- baiducloud_python_sdk_agentidentity/models/update_user_pool_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/update_user_request.py +84 -0
- baiducloud_python_sdk_agentidentity/models/user_pool_dto.py +187 -0
- baiducloud_python_sdk_agentidentity/models/user_pool_idp_config_dto.py +205 -0
- baiducloud_python_sdk_agentidentity/models/user_pool_o_auth2_client_dto.py +178 -0
- baiducloud_python_sdk_agentidentity/models/user_pool_user_dto.py +115 -0
- baiducloud_python_sdk_agentidentity/models/userinfo_endpoint_request.py +76 -0
- baiducloud_python_sdk_agentidentity/models/userinfo_endpoint_response.py +77 -0
- baiducloud_python_sdk_agentidentity-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_agentidentity-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_agentidentity-0.0.1.dist-info/RECORD +70 -0
- baiducloud_python_sdk_agentidentity-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_agentidentity-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListIdpConfigurationsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListIdpConfigurationsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListIdpConfigurationsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, keyword=None, page_no=None, page_size=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListIdpConfigurationsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_pool_id: 用户池 ID
|
|
20
|
+
:type user_pool_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param keyword: 按名称模糊搜索
|
|
23
|
+
:type keyword: str (optional)
|
|
24
|
+
|
|
25
|
+
:param page_no: 页码,默认 1
|
|
26
|
+
:type page_no: int (optional)
|
|
27
|
+
|
|
28
|
+
:param page_size: 每页数量,默认 10
|
|
29
|
+
:type page_size: int (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.user_pool_id = user_pool_id
|
|
33
|
+
self.keyword = keyword
|
|
34
|
+
self.page_no = page_no
|
|
35
|
+
self.page_size = page_size
|
|
36
|
+
|
|
37
|
+
def to_dict(self):
|
|
38
|
+
"""
|
|
39
|
+
Convert the request entity to a dictionary representation.
|
|
40
|
+
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the request
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.user_pool_id is not None:
|
|
51
|
+
result['userPoolId'] = self.user_pool_id
|
|
52
|
+
if self.keyword is not None:
|
|
53
|
+
result['keyword'] = self.keyword
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
return result
|
|
59
|
+
|
|
60
|
+
def from_dict(self, m):
|
|
61
|
+
"""
|
|
62
|
+
Populate the request entity from a dictionary.
|
|
63
|
+
|
|
64
|
+
Nested dictionaries are recursively converted to model objects.
|
|
65
|
+
|
|
66
|
+
:param m: Dictionary containing request data
|
|
67
|
+
:type m: dict
|
|
68
|
+
|
|
69
|
+
:return: Self reference for method chaining
|
|
70
|
+
:rtype: ListIdpConfigurationsRequest
|
|
71
|
+
|
|
72
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
73
|
+
:raises ValueError: If nested model conversion fails
|
|
74
|
+
"""
|
|
75
|
+
m = m or dict()
|
|
76
|
+
if m.get('userPoolId') is not None:
|
|
77
|
+
self.user_pool_id = m.get('userPoolId')
|
|
78
|
+
if m.get('keyword') is not None:
|
|
79
|
+
self.keyword = m.get('keyword')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListIdpConfigurationsResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.user_pool_idp_config_dto import UserPoolIdpConfigDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListIdpConfigurationsResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListIdpConfigurationsResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListIdpConfigurationsResponse response.
|
|
17
|
+
|
|
18
|
+
:param total_count: 总数量
|
|
19
|
+
:type total_count: int (optional)
|
|
20
|
+
|
|
21
|
+
:param page_no: 当前页码
|
|
22
|
+
:type page_no: int (optional)
|
|
23
|
+
|
|
24
|
+
:param page_size: 每页数量
|
|
25
|
+
:type page_size: int (optional)
|
|
26
|
+
|
|
27
|
+
:param result: 结果列表
|
|
28
|
+
:type result: List[UserPoolIdpConfigDTO] (optional)
|
|
29
|
+
"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.total_count = total_count
|
|
32
|
+
self.page_no = page_no
|
|
33
|
+
self.page_size = page_size
|
|
34
|
+
self.result = result
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""
|
|
38
|
+
Convert the response instance to a dictionary representation.
|
|
39
|
+
|
|
40
|
+
Includes metadata from the parent BceResponse class.
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the response
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.metadata is not None:
|
|
51
|
+
result['metadata'] = dict(self.metadata)
|
|
52
|
+
if self.total_count is not None:
|
|
53
|
+
result['totalCount'] = self.total_count
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
if self.result is not None:
|
|
59
|
+
result['result'] = [i.to_dict() for i in self.result]
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def from_dict(self, m):
|
|
63
|
+
"""
|
|
64
|
+
Populate the response instance from a dictionary.
|
|
65
|
+
|
|
66
|
+
Nested dictionaries are recursively converted to model objects.
|
|
67
|
+
|
|
68
|
+
:param m: Dictionary containing response data
|
|
69
|
+
:type m: dict
|
|
70
|
+
|
|
71
|
+
:return: Self reference for method chaining
|
|
72
|
+
:rtype: ListIdpConfigurationsResponse
|
|
73
|
+
|
|
74
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
75
|
+
:raises ValueError: If nested model conversion fails
|
|
76
|
+
"""
|
|
77
|
+
m = m or dict()
|
|
78
|
+
if m.get('totalCount') is not None:
|
|
79
|
+
self.total_count = m.get('totalCount')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
if m.get('result') is not None:
|
|
85
|
+
self.result = [UserPoolIdpConfigDTO().from_dict(i) for i in m.get('result')]
|
|
86
|
+
return self
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListOauth2ClientsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListOauth2ClientsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListOauth2ClientsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, keyword=None, page_no=None, page_size=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListOauth2ClientsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_pool_id: 用户池 ID
|
|
20
|
+
:type user_pool_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param keyword: 模糊搜索(匹配 clientId / name)
|
|
23
|
+
:type keyword: str (optional)
|
|
24
|
+
|
|
25
|
+
:param page_no: 页码,默认 1
|
|
26
|
+
:type page_no: int (optional)
|
|
27
|
+
|
|
28
|
+
:param page_size: 每页数量,默认 10
|
|
29
|
+
:type page_size: int (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.user_pool_id = user_pool_id
|
|
33
|
+
self.keyword = keyword
|
|
34
|
+
self.page_no = page_no
|
|
35
|
+
self.page_size = page_size
|
|
36
|
+
|
|
37
|
+
def to_dict(self):
|
|
38
|
+
"""
|
|
39
|
+
Convert the request entity to a dictionary representation.
|
|
40
|
+
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the request
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.user_pool_id is not None:
|
|
51
|
+
result['userPoolId'] = self.user_pool_id
|
|
52
|
+
if self.keyword is not None:
|
|
53
|
+
result['keyword'] = self.keyword
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
return result
|
|
59
|
+
|
|
60
|
+
def from_dict(self, m):
|
|
61
|
+
"""
|
|
62
|
+
Populate the request entity from a dictionary.
|
|
63
|
+
|
|
64
|
+
Nested dictionaries are recursively converted to model objects.
|
|
65
|
+
|
|
66
|
+
:param m: Dictionary containing request data
|
|
67
|
+
:type m: dict
|
|
68
|
+
|
|
69
|
+
:return: Self reference for method chaining
|
|
70
|
+
:rtype: ListOauth2ClientsRequest
|
|
71
|
+
|
|
72
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
73
|
+
:raises ValueError: If nested model conversion fails
|
|
74
|
+
"""
|
|
75
|
+
m = m or dict()
|
|
76
|
+
if m.get('userPoolId') is not None:
|
|
77
|
+
self.user_pool_id = m.get('userPoolId')
|
|
78
|
+
if m.get('keyword') is not None:
|
|
79
|
+
self.keyword = m.get('keyword')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListOauth2ClientsResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.user_pool_o_auth2_client_dto import UserPoolOAuth2ClientDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListOauth2ClientsResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListOauth2ClientsResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListOauth2ClientsResponse response.
|
|
17
|
+
|
|
18
|
+
:param total_count: 总数量
|
|
19
|
+
:type total_count: int (optional)
|
|
20
|
+
|
|
21
|
+
:param page_no: 当前页码
|
|
22
|
+
:type page_no: int (optional)
|
|
23
|
+
|
|
24
|
+
:param page_size: 每页数量
|
|
25
|
+
:type page_size: int (optional)
|
|
26
|
+
|
|
27
|
+
:param result: 结果列表
|
|
28
|
+
:type result: List[UserPoolOAuth2ClientDTO] (optional)
|
|
29
|
+
"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.total_count = total_count
|
|
32
|
+
self.page_no = page_no
|
|
33
|
+
self.page_size = page_size
|
|
34
|
+
self.result = result
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""
|
|
38
|
+
Convert the response instance to a dictionary representation.
|
|
39
|
+
|
|
40
|
+
Includes metadata from the parent BceResponse class.
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the response
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.metadata is not None:
|
|
51
|
+
result['metadata'] = dict(self.metadata)
|
|
52
|
+
if self.total_count is not None:
|
|
53
|
+
result['totalCount'] = self.total_count
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
if self.result is not None:
|
|
59
|
+
result['result'] = [i.to_dict() for i in self.result]
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def from_dict(self, m):
|
|
63
|
+
"""
|
|
64
|
+
Populate the response instance from a dictionary.
|
|
65
|
+
|
|
66
|
+
Nested dictionaries are recursively converted to model objects.
|
|
67
|
+
|
|
68
|
+
:param m: Dictionary containing response data
|
|
69
|
+
:type m: dict
|
|
70
|
+
|
|
71
|
+
:return: Self reference for method chaining
|
|
72
|
+
:rtype: ListOauth2ClientsResponse
|
|
73
|
+
|
|
74
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
75
|
+
:raises ValueError: If nested model conversion fails
|
|
76
|
+
"""
|
|
77
|
+
m = m or dict()
|
|
78
|
+
if m.get('totalCount') is not None:
|
|
79
|
+
self.total_count = m.get('totalCount')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
if m.get('result') is not None:
|
|
85
|
+
self.result = [UserPoolOAuth2ClientDTO().from_dict(i) for i in m.get('result')]
|
|
86
|
+
return self
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListUserPoolsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListUserPoolsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListUserPoolsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, keyword=None, page_no=None, page_size=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListUserPoolsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param keyword: 模糊搜索(匹配 name / id)
|
|
20
|
+
:type keyword: str (optional)
|
|
21
|
+
|
|
22
|
+
:param page_no: 页码,默认 1
|
|
23
|
+
:type page_no: int (optional)
|
|
24
|
+
|
|
25
|
+
:param page_size: 每页数量,默认 10,最大 100
|
|
26
|
+
:type page_size: int (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.keyword = keyword
|
|
30
|
+
self.page_no = page_no
|
|
31
|
+
self.page_size = page_size
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
"""
|
|
35
|
+
Convert the request entity to a dictionary representation.
|
|
36
|
+
|
|
37
|
+
Nested model objects are recursively converted to dictionaries.
|
|
38
|
+
|
|
39
|
+
:return: Dictionary representation of the request
|
|
40
|
+
:rtype: dict
|
|
41
|
+
"""
|
|
42
|
+
_map = super().to_dict()
|
|
43
|
+
if _map is not None:
|
|
44
|
+
return _map
|
|
45
|
+
result = dict()
|
|
46
|
+
if self.keyword is not None:
|
|
47
|
+
result['keyword'] = self.keyword
|
|
48
|
+
if self.page_no is not None:
|
|
49
|
+
result['pageNo'] = self.page_no
|
|
50
|
+
if self.page_size is not None:
|
|
51
|
+
result['pageSize'] = self.page_size
|
|
52
|
+
return result
|
|
53
|
+
|
|
54
|
+
def from_dict(self, m):
|
|
55
|
+
"""
|
|
56
|
+
Populate the request entity from a dictionary.
|
|
57
|
+
|
|
58
|
+
Nested dictionaries are recursively converted to model objects.
|
|
59
|
+
|
|
60
|
+
:param m: Dictionary containing request data
|
|
61
|
+
:type m: dict
|
|
62
|
+
|
|
63
|
+
:return: Self reference for method chaining
|
|
64
|
+
:rtype: ListUserPoolsRequest
|
|
65
|
+
|
|
66
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
67
|
+
:raises ValueError: If nested model conversion fails
|
|
68
|
+
"""
|
|
69
|
+
m = m or dict()
|
|
70
|
+
if m.get('keyword') is not None:
|
|
71
|
+
self.keyword = m.get('keyword')
|
|
72
|
+
if m.get('pageNo') is not None:
|
|
73
|
+
self.page_no = m.get('pageNo')
|
|
74
|
+
if m.get('pageSize') is not None:
|
|
75
|
+
self.page_size = m.get('pageSize')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListUserPoolsResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.user_pool_dto import UserPoolDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListUserPoolsResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListUserPoolsResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListUserPoolsResponse response.
|
|
17
|
+
|
|
18
|
+
:param total_count: 总数量
|
|
19
|
+
:type total_count: int (optional)
|
|
20
|
+
|
|
21
|
+
:param page_no: 当前页码
|
|
22
|
+
:type page_no: int (optional)
|
|
23
|
+
|
|
24
|
+
:param page_size: 每页数量
|
|
25
|
+
:type page_size: int (optional)
|
|
26
|
+
|
|
27
|
+
:param result: result field
|
|
28
|
+
:type result: UserPoolDTO (optional)
|
|
29
|
+
"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.total_count = total_count
|
|
32
|
+
self.page_no = page_no
|
|
33
|
+
self.page_size = page_size
|
|
34
|
+
self.result = result
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""
|
|
38
|
+
Convert the response instance to a dictionary representation.
|
|
39
|
+
|
|
40
|
+
Includes metadata from the parent BceResponse class.
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the response
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.metadata is not None:
|
|
51
|
+
result['metadata'] = dict(self.metadata)
|
|
52
|
+
if self.total_count is not None:
|
|
53
|
+
result['totalCount'] = self.total_count
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
if self.result is not None:
|
|
59
|
+
result['result'] = self.result.to_dict()
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def from_dict(self, m):
|
|
63
|
+
"""
|
|
64
|
+
Populate the response instance from a dictionary.
|
|
65
|
+
|
|
66
|
+
Nested dictionaries are recursively converted to model objects.
|
|
67
|
+
|
|
68
|
+
:param m: Dictionary containing response data
|
|
69
|
+
:type m: dict
|
|
70
|
+
|
|
71
|
+
:return: Self reference for method chaining
|
|
72
|
+
:rtype: ListUserPoolsResponse
|
|
73
|
+
|
|
74
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
75
|
+
:raises ValueError: If nested model conversion fails
|
|
76
|
+
"""
|
|
77
|
+
m = m or dict()
|
|
78
|
+
if m.get('totalCount') is not None:
|
|
79
|
+
self.total_count = m.get('totalCount')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
if m.get('result') is not None:
|
|
85
|
+
self.result = UserPoolDTO().from_dict(m.get('result'))
|
|
86
|
+
return self
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListUsersRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListUsersRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListUsersRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, keyword=None, page_no=None, page_size=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListUsersRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_pool_id: 用户池 ID
|
|
20
|
+
:type user_pool_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param keyword: 模糊搜索(匹配 username / id / displayName)
|
|
23
|
+
:type keyword: str (optional)
|
|
24
|
+
|
|
25
|
+
:param page_no: 页码,默认 1
|
|
26
|
+
:type page_no: int (optional)
|
|
27
|
+
|
|
28
|
+
:param page_size: 每页数量,默认 10
|
|
29
|
+
:type page_size: int (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.user_pool_id = user_pool_id
|
|
33
|
+
self.keyword = keyword
|
|
34
|
+
self.page_no = page_no
|
|
35
|
+
self.page_size = page_size
|
|
36
|
+
|
|
37
|
+
def to_dict(self):
|
|
38
|
+
"""
|
|
39
|
+
Convert the request entity to a dictionary representation.
|
|
40
|
+
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the request
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.user_pool_id is not None:
|
|
51
|
+
result['userPoolId'] = self.user_pool_id
|
|
52
|
+
if self.keyword is not None:
|
|
53
|
+
result['keyword'] = self.keyword
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
return result
|
|
59
|
+
|
|
60
|
+
def from_dict(self, m):
|
|
61
|
+
"""
|
|
62
|
+
Populate the request entity from a dictionary.
|
|
63
|
+
|
|
64
|
+
Nested dictionaries are recursively converted to model objects.
|
|
65
|
+
|
|
66
|
+
:param m: Dictionary containing request data
|
|
67
|
+
:type m: dict
|
|
68
|
+
|
|
69
|
+
:return: Self reference for method chaining
|
|
70
|
+
:rtype: ListUsersRequest
|
|
71
|
+
|
|
72
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
73
|
+
:raises ValueError: If nested model conversion fails
|
|
74
|
+
"""
|
|
75
|
+
m = m or dict()
|
|
76
|
+
if m.get('userPoolId') is not None:
|
|
77
|
+
self.user_pool_id = m.get('userPoolId')
|
|
78
|
+
if m.get('keyword') is not None:
|
|
79
|
+
self.keyword = m.get('keyword')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListUsersResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.user_pool_user_dto import UserPoolUserDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListUsersResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListUsersResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListUsersResponse response.
|
|
17
|
+
|
|
18
|
+
:param total_count: 总数量
|
|
19
|
+
:type total_count: int (optional)
|
|
20
|
+
|
|
21
|
+
:param page_no: 当前页码
|
|
22
|
+
:type page_no: int (optional)
|
|
23
|
+
|
|
24
|
+
:param page_size: 每页数量
|
|
25
|
+
:type page_size: int (optional)
|
|
26
|
+
|
|
27
|
+
:param result: 结果列表
|
|
28
|
+
:type result: List[UserPoolUserDTO] (optional)
|
|
29
|
+
"""
|
|
30
|
+
super().__init__()
|
|
31
|
+
self.total_count = total_count
|
|
32
|
+
self.page_no = page_no
|
|
33
|
+
self.page_size = page_size
|
|
34
|
+
self.result = result
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""
|
|
38
|
+
Convert the response instance to a dictionary representation.
|
|
39
|
+
|
|
40
|
+
Includes metadata from the parent BceResponse class.
|
|
41
|
+
Nested model objects are recursively converted to dictionaries.
|
|
42
|
+
|
|
43
|
+
:return: Dictionary representation of the response
|
|
44
|
+
:rtype: dict
|
|
45
|
+
"""
|
|
46
|
+
_map = super().to_dict()
|
|
47
|
+
if _map is not None:
|
|
48
|
+
return _map
|
|
49
|
+
result = dict()
|
|
50
|
+
if self.metadata is not None:
|
|
51
|
+
result['metadata'] = dict(self.metadata)
|
|
52
|
+
if self.total_count is not None:
|
|
53
|
+
result['totalCount'] = self.total_count
|
|
54
|
+
if self.page_no is not None:
|
|
55
|
+
result['pageNo'] = self.page_no
|
|
56
|
+
if self.page_size is not None:
|
|
57
|
+
result['pageSize'] = self.page_size
|
|
58
|
+
if self.result is not None:
|
|
59
|
+
result['result'] = [i.to_dict() for i in self.result]
|
|
60
|
+
return result
|
|
61
|
+
|
|
62
|
+
def from_dict(self, m):
|
|
63
|
+
"""
|
|
64
|
+
Populate the response instance from a dictionary.
|
|
65
|
+
|
|
66
|
+
Nested dictionaries are recursively converted to model objects.
|
|
67
|
+
|
|
68
|
+
:param m: Dictionary containing response data
|
|
69
|
+
:type m: dict
|
|
70
|
+
|
|
71
|
+
:return: Self reference for method chaining
|
|
72
|
+
:rtype: ListUsersResponse
|
|
73
|
+
|
|
74
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
75
|
+
:raises ValueError: If nested model conversion fails
|
|
76
|
+
"""
|
|
77
|
+
m = m or dict()
|
|
78
|
+
if m.get('totalCount') is not None:
|
|
79
|
+
self.total_count = m.get('totalCount')
|
|
80
|
+
if m.get('pageNo') is not None:
|
|
81
|
+
self.page_no = m.get('pageNo')
|
|
82
|
+
if m.get('pageSize') is not None:
|
|
83
|
+
self.page_size = m.get('pageSize')
|
|
84
|
+
if m.get('result') is not None:
|
|
85
|
+
self.result = [UserPoolUserDTO().from_dict(i) for i in m.get('result')]
|
|
86
|
+
return self
|