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,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetUserPoolRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetUserPoolRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetUserPoolRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetUserPoolRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param id: 用户池 ID
|
|
20
|
+
:type id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.id = id
|
|
24
|
+
|
|
25
|
+
def to_dict(self):
|
|
26
|
+
"""
|
|
27
|
+
Convert the request entity to a dictionary representation.
|
|
28
|
+
|
|
29
|
+
Nested model objects are recursively converted to dictionaries.
|
|
30
|
+
|
|
31
|
+
:return: Dictionary representation of the request
|
|
32
|
+
:rtype: dict
|
|
33
|
+
"""
|
|
34
|
+
_map = super().to_dict()
|
|
35
|
+
if _map is not None:
|
|
36
|
+
return _map
|
|
37
|
+
result = dict()
|
|
38
|
+
if self.id is not None:
|
|
39
|
+
result['id'] = self.id
|
|
40
|
+
return result
|
|
41
|
+
|
|
42
|
+
def from_dict(self, m):
|
|
43
|
+
"""
|
|
44
|
+
Populate the request entity from a dictionary.
|
|
45
|
+
|
|
46
|
+
Nested dictionaries are recursively converted to model objects.
|
|
47
|
+
|
|
48
|
+
:param m: Dictionary containing request data
|
|
49
|
+
:type m: dict
|
|
50
|
+
|
|
51
|
+
:return: Self reference for method chaining
|
|
52
|
+
:rtype: GetUserPoolRequest
|
|
53
|
+
|
|
54
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
55
|
+
:raises ValueError: If nested model conversion fails
|
|
56
|
+
"""
|
|
57
|
+
m = m or dict()
|
|
58
|
+
if m.get('id') is not None:
|
|
59
|
+
self.id = m.get('id')
|
|
60
|
+
return self
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetUserRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetUserRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetUserRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, id=None, username=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetUserRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_pool_id: 用户池 ID
|
|
20
|
+
:type user_pool_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param id: (二选一)用户 ID
|
|
23
|
+
:type id: str (optional)
|
|
24
|
+
|
|
25
|
+
:param username: (二选一)用户名
|
|
26
|
+
:type username: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.user_pool_id = user_pool_id
|
|
30
|
+
self.id = id
|
|
31
|
+
self.username = username
|
|
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.user_pool_id is not None:
|
|
47
|
+
result['userPoolId'] = self.user_pool_id
|
|
48
|
+
if self.id is not None:
|
|
49
|
+
result['id'] = self.id
|
|
50
|
+
if self.username is not None:
|
|
51
|
+
result['username'] = self.username
|
|
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: GetUserRequest
|
|
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('userPoolId') is not None:
|
|
71
|
+
self.user_pool_id = m.get('userPoolId')
|
|
72
|
+
if m.get('id') is not None:
|
|
73
|
+
self.id = m.get('id')
|
|
74
|
+
if m.get('username') is not None:
|
|
75
|
+
self.username = m.get('username')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetWATForUserRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetWATForUserRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetWATForUserRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self, user_id, bce_user_id=None, agent_id=None, agent_name=None, session_id=None, duration_seconds=None
|
|
17
|
+
):
|
|
18
|
+
"""
|
|
19
|
+
Initialize GetWATForUserRequest request entity.
|
|
20
|
+
|
|
21
|
+
:param bce_user_id: BCE 用户 ID(服务号调用时必填,用户身份调用不传,系统自动解析覆盖)
|
|
22
|
+
:type bce_user_id: str (optional)
|
|
23
|
+
|
|
24
|
+
:param agent_id: (二选一,优先使用)Agent ID,优先使用 ID,存在则不看 name
|
|
25
|
+
:type agent_id: str (optional)
|
|
26
|
+
|
|
27
|
+
:param agent_name: (二选一)Agent 名称
|
|
28
|
+
:type agent_name: str (optional)
|
|
29
|
+
|
|
30
|
+
:param user_id: 终端用户 ID
|
|
31
|
+
:type user_id: str (required)
|
|
32
|
+
|
|
33
|
+
:param session_id: 会话 ID,用于关联用户会话
|
|
34
|
+
:type session_id: str (optional)
|
|
35
|
+
|
|
36
|
+
:param duration_seconds: 有效期(秒),默认 3600,最小 900,最大 86400
|
|
37
|
+
:type duration_seconds: int (optional)
|
|
38
|
+
"""
|
|
39
|
+
super().__init__()
|
|
40
|
+
self.bce_user_id = bce_user_id
|
|
41
|
+
self.agent_id = agent_id
|
|
42
|
+
self.agent_name = agent_name
|
|
43
|
+
self.user_id = user_id
|
|
44
|
+
self.session_id = session_id
|
|
45
|
+
self.duration_seconds = duration_seconds
|
|
46
|
+
|
|
47
|
+
def to_dict(self):
|
|
48
|
+
"""
|
|
49
|
+
Convert the request entity to a dictionary representation.
|
|
50
|
+
|
|
51
|
+
Nested model objects are recursively converted to dictionaries.
|
|
52
|
+
|
|
53
|
+
:return: Dictionary representation of the request
|
|
54
|
+
:rtype: dict
|
|
55
|
+
"""
|
|
56
|
+
_map = super().to_dict()
|
|
57
|
+
if _map is not None:
|
|
58
|
+
return _map
|
|
59
|
+
result = dict()
|
|
60
|
+
if self.bce_user_id is not None:
|
|
61
|
+
result['bceUserId'] = self.bce_user_id
|
|
62
|
+
if self.agent_id is not None:
|
|
63
|
+
result['agentId'] = self.agent_id
|
|
64
|
+
if self.agent_name is not None:
|
|
65
|
+
result['agentName'] = self.agent_name
|
|
66
|
+
if self.user_id is not None:
|
|
67
|
+
result['userId'] = self.user_id
|
|
68
|
+
if self.session_id is not None:
|
|
69
|
+
result['sessionId'] = self.session_id
|
|
70
|
+
if self.duration_seconds is not None:
|
|
71
|
+
result['durationSeconds'] = self.duration_seconds
|
|
72
|
+
return result
|
|
73
|
+
|
|
74
|
+
def from_dict(self, m):
|
|
75
|
+
"""
|
|
76
|
+
Populate the request entity from a dictionary.
|
|
77
|
+
|
|
78
|
+
Nested dictionaries are recursively converted to model objects.
|
|
79
|
+
|
|
80
|
+
:param m: Dictionary containing request data
|
|
81
|
+
:type m: dict
|
|
82
|
+
|
|
83
|
+
:return: Self reference for method chaining
|
|
84
|
+
:rtype: GetWATForUserRequest
|
|
85
|
+
|
|
86
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
87
|
+
:raises ValueError: If nested model conversion fails
|
|
88
|
+
"""
|
|
89
|
+
m = m or dict()
|
|
90
|
+
if m.get('bceUserId') is not None:
|
|
91
|
+
self.bce_user_id = m.get('bceUserId')
|
|
92
|
+
if m.get('agentId') is not None:
|
|
93
|
+
self.agent_id = m.get('agentId')
|
|
94
|
+
if m.get('agentName') is not None:
|
|
95
|
+
self.agent_name = m.get('agentName')
|
|
96
|
+
if m.get('userId') is not None:
|
|
97
|
+
self.user_id = m.get('userId')
|
|
98
|
+
if m.get('sessionId') is not None:
|
|
99
|
+
self.session_id = m.get('sessionId')
|
|
100
|
+
if m.get('durationSeconds') is not None:
|
|
101
|
+
self.duration_seconds = m.get('durationSeconds')
|
|
102
|
+
return self
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetWorkloadAccessTokenRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetWorkloadAccessTokenRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetWorkloadAccessTokenRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, bce_user_id=None, agent_id=None, agent_name=None, duration_seconds=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetWorkloadAccessTokenRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param bce_user_id: BCE 用户 ID(服务号调用时必填,用户身份调用不传,系统自动解析覆盖)
|
|
20
|
+
:type bce_user_id: str (optional)
|
|
21
|
+
|
|
22
|
+
:param agent_id: (二选一,优先使用)Agent ID,优先使用 ID,存在则不看 name
|
|
23
|
+
:type agent_id: str (optional)
|
|
24
|
+
|
|
25
|
+
:param agent_name: (二选一)Agent 名称
|
|
26
|
+
:type agent_name: str (optional)
|
|
27
|
+
|
|
28
|
+
:param duration_seconds: 有效期(秒),默认 3600,最小 900,最大 86400
|
|
29
|
+
:type duration_seconds: int (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.bce_user_id = bce_user_id
|
|
33
|
+
self.agent_id = agent_id
|
|
34
|
+
self.agent_name = agent_name
|
|
35
|
+
self.duration_seconds = duration_seconds
|
|
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.bce_user_id is not None:
|
|
51
|
+
result['bceUserId'] = self.bce_user_id
|
|
52
|
+
if self.agent_id is not None:
|
|
53
|
+
result['agentId'] = self.agent_id
|
|
54
|
+
if self.agent_name is not None:
|
|
55
|
+
result['agentName'] = self.agent_name
|
|
56
|
+
if self.duration_seconds is not None:
|
|
57
|
+
result['durationSeconds'] = self.duration_seconds
|
|
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: GetWorkloadAccessTokenRequest
|
|
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('bceUserId') is not None:
|
|
77
|
+
self.bce_user_id = m.get('bceUserId')
|
|
78
|
+
if m.get('agentId') is not None:
|
|
79
|
+
self.agent_id = m.get('agentId')
|
|
80
|
+
if m.get('agentName') is not None:
|
|
81
|
+
self.agent_name = m.get('agentName')
|
|
82
|
+
if m.get('durationSeconds') is not None:
|
|
83
|
+
self.duration_seconds = m.get('durationSeconds')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListAgentsRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListAgentsRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListAgentsRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, page_no=None, page_size=None, keyword=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListAgentsRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param page_no: 页码,默认 1
|
|
20
|
+
:type page_no: int (optional)
|
|
21
|
+
|
|
22
|
+
:param page_size: 每页数量,默认 10
|
|
23
|
+
:type page_size: int (optional)
|
|
24
|
+
|
|
25
|
+
:param keyword: 关键词过滤(匹配名称/描述/ID)
|
|
26
|
+
:type keyword: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.page_no = page_no
|
|
30
|
+
self.page_size = page_size
|
|
31
|
+
self.keyword = keyword
|
|
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.page_no is not None:
|
|
47
|
+
result['pageNo'] = self.page_no
|
|
48
|
+
if self.page_size is not None:
|
|
49
|
+
result['pageSize'] = self.page_size
|
|
50
|
+
if self.keyword is not None:
|
|
51
|
+
result['keyword'] = self.keyword
|
|
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: ListAgentsRequest
|
|
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('pageNo') is not None:
|
|
71
|
+
self.page_no = m.get('pageNo')
|
|
72
|
+
if m.get('pageSize') is not None:
|
|
73
|
+
self.page_size = m.get('pageSize')
|
|
74
|
+
if m.get('keyword') is not None:
|
|
75
|
+
self.keyword = m.get('keyword')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListAgentsResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.agent_dto import AgentDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListAgentsResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListAgentsResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListAgentsResponse 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[AgentDTO] (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: ListAgentsResponse
|
|
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 = [AgentDTO().from_dict(i) for i in m.get('result')]
|
|
86
|
+
return self
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListCredentialProvidersRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListCredentialProvidersRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for ListCredentialProvidersRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, page_no=None, page_size=None, type=None, name=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize ListCredentialProvidersRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param page_no: 页码,默认 1
|
|
20
|
+
:type page_no: int (optional)
|
|
21
|
+
|
|
22
|
+
:param page_size: 每页数量,默认 10,最大 100
|
|
23
|
+
:type page_size: int (optional)
|
|
24
|
+
|
|
25
|
+
:param type: 按类型过滤:API_KEY / OAUTH2 / STS
|
|
26
|
+
:type type: str (optional)
|
|
27
|
+
|
|
28
|
+
:param name: 按名称过滤
|
|
29
|
+
:type name: str (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.page_no = page_no
|
|
33
|
+
self.page_size = page_size
|
|
34
|
+
self.type = type
|
|
35
|
+
self.name = name
|
|
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.page_no is not None:
|
|
51
|
+
result['pageNo'] = self.page_no
|
|
52
|
+
if self.page_size is not None:
|
|
53
|
+
result['pageSize'] = self.page_size
|
|
54
|
+
if self.type is not None:
|
|
55
|
+
result['type'] = self.type
|
|
56
|
+
if self.name is not None:
|
|
57
|
+
result['name'] = self.name
|
|
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: ListCredentialProvidersRequest
|
|
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('pageNo') is not None:
|
|
77
|
+
self.page_no = m.get('pageNo')
|
|
78
|
+
if m.get('pageSize') is not None:
|
|
79
|
+
self.page_size = m.get('pageSize')
|
|
80
|
+
if m.get('type') is not None:
|
|
81
|
+
self.type = m.get('type')
|
|
82
|
+
if m.get('name') is not None:
|
|
83
|
+
self.name = m.get('name')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for ListCredentialProvidersResponse information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.bce_response import BceResponse
|
|
6
|
+
from baiducloud_python_sdk_agentidentity.models.credential_provider_dto import CredentialProviderDTO
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ListCredentialProvidersResponse(BceResponse):
|
|
10
|
+
"""
|
|
11
|
+
ListCredentialProvidersResponse
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
def __init__(self, total_count=None, page_no=None, page_size=None, result=None):
|
|
15
|
+
"""
|
|
16
|
+
Initialize ListCredentialProvidersResponse 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[CredentialProviderDTO] (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: ListCredentialProvidersResponse
|
|
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 = [CredentialProviderDTO().from_dict(i) for i in m.get('result')]
|
|
86
|
+
return self
|