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,162 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateIdpConfigurationRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateIdpConfigurationRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateIdpConfigurationRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
user_pool_id,
|
|
18
|
+
id,
|
|
19
|
+
name=None,
|
|
20
|
+
client_id=None,
|
|
21
|
+
client_secret=None,
|
|
22
|
+
authorization_endpoint=None,
|
|
23
|
+
token_endpoint=None,
|
|
24
|
+
userinfo_endpoint=None,
|
|
25
|
+
scopes=None,
|
|
26
|
+
user_id_claim=None,
|
|
27
|
+
display_name_claim=None,
|
|
28
|
+
auto_create_user=None,
|
|
29
|
+
):
|
|
30
|
+
"""
|
|
31
|
+
Initialize UpdateIdpConfigurationRequest request entity.
|
|
32
|
+
|
|
33
|
+
:param user_pool_id: 用户池 ID
|
|
34
|
+
:type user_pool_id: str (required)
|
|
35
|
+
|
|
36
|
+
:param id: IdP 配置 ID
|
|
37
|
+
:type id: str (required)
|
|
38
|
+
|
|
39
|
+
:param name: 新的显示名称
|
|
40
|
+
:type name: str (optional)
|
|
41
|
+
|
|
42
|
+
:param client_id: 新的 client_id
|
|
43
|
+
:type client_id: str (optional)
|
|
44
|
+
|
|
45
|
+
:param client_secret: 新的 client_secret(非空则更新)
|
|
46
|
+
:type client_secret: str (optional)
|
|
47
|
+
|
|
48
|
+
:param authorization_endpoint: 授权端点
|
|
49
|
+
:type authorization_endpoint: str (optional)
|
|
50
|
+
|
|
51
|
+
:param token_endpoint: Token 端点
|
|
52
|
+
:type token_endpoint: str (optional)
|
|
53
|
+
|
|
54
|
+
:param userinfo_endpoint: UserInfo 端点
|
|
55
|
+
:type userinfo_endpoint: str (optional)
|
|
56
|
+
|
|
57
|
+
:param scopes: scope 列表
|
|
58
|
+
:type scopes: List[str] (optional)
|
|
59
|
+
|
|
60
|
+
:param user_id_claim: 用户 ID 映射字段
|
|
61
|
+
:type user_id_claim: str (optional)
|
|
62
|
+
|
|
63
|
+
:param display_name_claim: 显示名称映射字段
|
|
64
|
+
:type display_name_claim: str (optional)
|
|
65
|
+
|
|
66
|
+
:param auto_create_user: 是否自动创建用户
|
|
67
|
+
:type auto_create_user: bool (optional)
|
|
68
|
+
"""
|
|
69
|
+
super().__init__()
|
|
70
|
+
self.user_pool_id = user_pool_id
|
|
71
|
+
self.id = id
|
|
72
|
+
self.name = name
|
|
73
|
+
self.client_id = client_id
|
|
74
|
+
self.client_secret = client_secret
|
|
75
|
+
self.authorization_endpoint = authorization_endpoint
|
|
76
|
+
self.token_endpoint = token_endpoint
|
|
77
|
+
self.userinfo_endpoint = userinfo_endpoint
|
|
78
|
+
self.scopes = scopes
|
|
79
|
+
self.user_id_claim = user_id_claim
|
|
80
|
+
self.display_name_claim = display_name_claim
|
|
81
|
+
self.auto_create_user = auto_create_user
|
|
82
|
+
|
|
83
|
+
def to_dict(self):
|
|
84
|
+
"""
|
|
85
|
+
Convert the request entity to a dictionary representation.
|
|
86
|
+
|
|
87
|
+
Nested model objects are recursively converted to dictionaries.
|
|
88
|
+
|
|
89
|
+
:return: Dictionary representation of the request
|
|
90
|
+
:rtype: dict
|
|
91
|
+
"""
|
|
92
|
+
_map = super().to_dict()
|
|
93
|
+
if _map is not None:
|
|
94
|
+
return _map
|
|
95
|
+
result = dict()
|
|
96
|
+
if self.user_pool_id is not None:
|
|
97
|
+
result['userPoolId'] = self.user_pool_id
|
|
98
|
+
if self.id is not None:
|
|
99
|
+
result['id'] = self.id
|
|
100
|
+
if self.name is not None:
|
|
101
|
+
result['name'] = self.name
|
|
102
|
+
if self.client_id is not None:
|
|
103
|
+
result['clientId'] = self.client_id
|
|
104
|
+
if self.client_secret is not None:
|
|
105
|
+
result['clientSecret'] = self.client_secret
|
|
106
|
+
if self.authorization_endpoint is not None:
|
|
107
|
+
result['authorizationEndpoint'] = self.authorization_endpoint
|
|
108
|
+
if self.token_endpoint is not None:
|
|
109
|
+
result['tokenEndpoint'] = self.token_endpoint
|
|
110
|
+
if self.userinfo_endpoint is not None:
|
|
111
|
+
result['userinfoEndpoint'] = self.userinfo_endpoint
|
|
112
|
+
if self.scopes is not None:
|
|
113
|
+
result['scopes'] = self.scopes
|
|
114
|
+
if self.user_id_claim is not None:
|
|
115
|
+
result['userIdClaim'] = self.user_id_claim
|
|
116
|
+
if self.display_name_claim is not None:
|
|
117
|
+
result['displayNameClaim'] = self.display_name_claim
|
|
118
|
+
if self.auto_create_user is not None:
|
|
119
|
+
result['autoCreateUser'] = self.auto_create_user
|
|
120
|
+
return result
|
|
121
|
+
|
|
122
|
+
def from_dict(self, m):
|
|
123
|
+
"""
|
|
124
|
+
Populate the request entity from a dictionary.
|
|
125
|
+
|
|
126
|
+
Nested dictionaries are recursively converted to model objects.
|
|
127
|
+
|
|
128
|
+
:param m: Dictionary containing request data
|
|
129
|
+
:type m: dict
|
|
130
|
+
|
|
131
|
+
:return: Self reference for method chaining
|
|
132
|
+
:rtype: UpdateIdpConfigurationRequest
|
|
133
|
+
|
|
134
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
135
|
+
:raises ValueError: If nested model conversion fails
|
|
136
|
+
"""
|
|
137
|
+
m = m or dict()
|
|
138
|
+
if m.get('userPoolId') is not None:
|
|
139
|
+
self.user_pool_id = m.get('userPoolId')
|
|
140
|
+
if m.get('id') is not None:
|
|
141
|
+
self.id = m.get('id')
|
|
142
|
+
if m.get('name') is not None:
|
|
143
|
+
self.name = m.get('name')
|
|
144
|
+
if m.get('clientId') is not None:
|
|
145
|
+
self.client_id = m.get('clientId')
|
|
146
|
+
if m.get('clientSecret') is not None:
|
|
147
|
+
self.client_secret = m.get('clientSecret')
|
|
148
|
+
if m.get('authorizationEndpoint') is not None:
|
|
149
|
+
self.authorization_endpoint = m.get('authorizationEndpoint')
|
|
150
|
+
if m.get('tokenEndpoint') is not None:
|
|
151
|
+
self.token_endpoint = m.get('tokenEndpoint')
|
|
152
|
+
if m.get('userinfoEndpoint') is not None:
|
|
153
|
+
self.userinfo_endpoint = m.get('userinfoEndpoint')
|
|
154
|
+
if m.get('scopes') is not None:
|
|
155
|
+
self.scopes = m.get('scopes')
|
|
156
|
+
if m.get('userIdClaim') is not None:
|
|
157
|
+
self.user_id_claim = m.get('userIdClaim')
|
|
158
|
+
if m.get('displayNameClaim') is not None:
|
|
159
|
+
self.display_name_claim = m.get('displayNameClaim')
|
|
160
|
+
if m.get('autoCreateUser') is not None:
|
|
161
|
+
self.auto_create_user = m.get('autoCreateUser')
|
|
162
|
+
return self
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateOauth2ClientRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateOauth2ClientRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateOauth2ClientRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
user_pool_id,
|
|
18
|
+
id,
|
|
19
|
+
name=None,
|
|
20
|
+
description=None,
|
|
21
|
+
redirect_uris=None,
|
|
22
|
+
grant_types=None,
|
|
23
|
+
scopes=None,
|
|
24
|
+
access_token_ttl=None,
|
|
25
|
+
refresh_token_ttl=None,
|
|
26
|
+
):
|
|
27
|
+
"""
|
|
28
|
+
Initialize UpdateOauth2ClientRequest request entity.
|
|
29
|
+
|
|
30
|
+
:param user_pool_id: 用户池 ID
|
|
31
|
+
:type user_pool_id: str (required)
|
|
32
|
+
|
|
33
|
+
:param id: 客户端记录 ID
|
|
34
|
+
:type id: str (required)
|
|
35
|
+
|
|
36
|
+
:param name: 新的名称
|
|
37
|
+
:type name: str (optional)
|
|
38
|
+
|
|
39
|
+
:param description: 新的描述
|
|
40
|
+
:type description: str (optional)
|
|
41
|
+
|
|
42
|
+
:param redirect_uris: 新的回调地址白名单(最多20个)
|
|
43
|
+
:type redirect_uris: List[str] (optional)
|
|
44
|
+
|
|
45
|
+
:param grant_types: 新的授权类型
|
|
46
|
+
:type grant_types: List[str] (optional)
|
|
47
|
+
|
|
48
|
+
:param scopes: 新的 scope
|
|
49
|
+
:type scopes: List[str] (optional)
|
|
50
|
+
|
|
51
|
+
:param access_token_ttl: 新的 access_token 有效期
|
|
52
|
+
:type access_token_ttl: int (optional)
|
|
53
|
+
|
|
54
|
+
:param refresh_token_ttl: 新的 refresh_token 有效期
|
|
55
|
+
:type refresh_token_ttl: int (optional)
|
|
56
|
+
"""
|
|
57
|
+
super().__init__()
|
|
58
|
+
self.user_pool_id = user_pool_id
|
|
59
|
+
self.id = id
|
|
60
|
+
self.name = name
|
|
61
|
+
self.description = description
|
|
62
|
+
self.redirect_uris = redirect_uris
|
|
63
|
+
self.grant_types = grant_types
|
|
64
|
+
self.scopes = scopes
|
|
65
|
+
self.access_token_ttl = access_token_ttl
|
|
66
|
+
self.refresh_token_ttl = refresh_token_ttl
|
|
67
|
+
|
|
68
|
+
def to_dict(self):
|
|
69
|
+
"""
|
|
70
|
+
Convert the request entity to a dictionary representation.
|
|
71
|
+
|
|
72
|
+
Nested model objects are recursively converted to dictionaries.
|
|
73
|
+
|
|
74
|
+
:return: Dictionary representation of the request
|
|
75
|
+
:rtype: dict
|
|
76
|
+
"""
|
|
77
|
+
_map = super().to_dict()
|
|
78
|
+
if _map is not None:
|
|
79
|
+
return _map
|
|
80
|
+
result = dict()
|
|
81
|
+
if self.user_pool_id is not None:
|
|
82
|
+
result['userPoolId'] = self.user_pool_id
|
|
83
|
+
if self.id is not None:
|
|
84
|
+
result['id'] = self.id
|
|
85
|
+
if self.name is not None:
|
|
86
|
+
result['name'] = self.name
|
|
87
|
+
if self.description is not None:
|
|
88
|
+
result['description'] = self.description
|
|
89
|
+
if self.redirect_uris is not None:
|
|
90
|
+
result['redirectUris'] = self.redirect_uris
|
|
91
|
+
if self.grant_types is not None:
|
|
92
|
+
result['grantTypes'] = self.grant_types
|
|
93
|
+
if self.scopes is not None:
|
|
94
|
+
result['scopes'] = self.scopes
|
|
95
|
+
if self.access_token_ttl is not None:
|
|
96
|
+
result['accessTokenTtl'] = self.access_token_ttl
|
|
97
|
+
if self.refresh_token_ttl is not None:
|
|
98
|
+
result['refreshTokenTtl'] = self.refresh_token_ttl
|
|
99
|
+
return result
|
|
100
|
+
|
|
101
|
+
def from_dict(self, m):
|
|
102
|
+
"""
|
|
103
|
+
Populate the request entity from a dictionary.
|
|
104
|
+
|
|
105
|
+
Nested dictionaries are recursively converted to model objects.
|
|
106
|
+
|
|
107
|
+
:param m: Dictionary containing request data
|
|
108
|
+
:type m: dict
|
|
109
|
+
|
|
110
|
+
:return: Self reference for method chaining
|
|
111
|
+
:rtype: UpdateOauth2ClientRequest
|
|
112
|
+
|
|
113
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
114
|
+
:raises ValueError: If nested model conversion fails
|
|
115
|
+
"""
|
|
116
|
+
m = m or dict()
|
|
117
|
+
if m.get('userPoolId') is not None:
|
|
118
|
+
self.user_pool_id = m.get('userPoolId')
|
|
119
|
+
if m.get('id') is not None:
|
|
120
|
+
self.id = m.get('id')
|
|
121
|
+
if m.get('name') is not None:
|
|
122
|
+
self.name = m.get('name')
|
|
123
|
+
if m.get('description') is not None:
|
|
124
|
+
self.description = m.get('description')
|
|
125
|
+
if m.get('redirectUris') is not None:
|
|
126
|
+
self.redirect_uris = m.get('redirectUris')
|
|
127
|
+
if m.get('grantTypes') is not None:
|
|
128
|
+
self.grant_types = m.get('grantTypes')
|
|
129
|
+
if m.get('scopes') is not None:
|
|
130
|
+
self.scopes = m.get('scopes')
|
|
131
|
+
if m.get('accessTokenTtl') is not None:
|
|
132
|
+
self.access_token_ttl = m.get('accessTokenTtl')
|
|
133
|
+
if m.get('refreshTokenTtl') is not None:
|
|
134
|
+
self.refresh_token_ttl = m.get('refreshTokenTtl')
|
|
135
|
+
return self
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateUserPoolRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateUserPoolRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateUserPoolRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, id, name=None, description=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize UpdateUserPoolRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param id: 用户池 ID
|
|
20
|
+
:type id: str (required)
|
|
21
|
+
|
|
22
|
+
:param name: 新的用户池名称
|
|
23
|
+
:type name: str (optional)
|
|
24
|
+
|
|
25
|
+
:param description: 新的用户池描述;不传保持不变,传空字符串表示清空
|
|
26
|
+
:type description: str (optional)
|
|
27
|
+
"""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self.id = id
|
|
30
|
+
self.name = name
|
|
31
|
+
self.description = description
|
|
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.id is not None:
|
|
47
|
+
result['id'] = self.id
|
|
48
|
+
if self.name is not None:
|
|
49
|
+
result['name'] = self.name
|
|
50
|
+
if self.description is not None:
|
|
51
|
+
result['description'] = self.description
|
|
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: UpdateUserPoolRequest
|
|
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('id') is not None:
|
|
71
|
+
self.id = m.get('id')
|
|
72
|
+
if m.get('name') is not None:
|
|
73
|
+
self.name = m.get('name')
|
|
74
|
+
if m.get('description') is not None:
|
|
75
|
+
self.description = m.get('description')
|
|
76
|
+
return self
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for UpdateUserRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateUserRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for UpdateUserRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, id, display_name=None, description=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize UpdateUserRequest 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 (required)
|
|
24
|
+
|
|
25
|
+
:param display_name: 新的显示名称
|
|
26
|
+
:type display_name: str (optional)
|
|
27
|
+
|
|
28
|
+
:param description: 新的描述
|
|
29
|
+
:type description: str (optional)
|
|
30
|
+
"""
|
|
31
|
+
super().__init__()
|
|
32
|
+
self.user_pool_id = user_pool_id
|
|
33
|
+
self.id = id
|
|
34
|
+
self.display_name = display_name
|
|
35
|
+
self.description = description
|
|
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.id is not None:
|
|
53
|
+
result['id'] = self.id
|
|
54
|
+
if self.display_name is not None:
|
|
55
|
+
result['displayName'] = self.display_name
|
|
56
|
+
if self.description is not None:
|
|
57
|
+
result['description'] = self.description
|
|
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: UpdateUserRequest
|
|
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('id') is not None:
|
|
79
|
+
self.id = m.get('id')
|
|
80
|
+
if m.get('displayName') is not None:
|
|
81
|
+
self.display_name = m.get('displayName')
|
|
82
|
+
if m.get('description') is not None:
|
|
83
|
+
self.description = m.get('description')
|
|
84
|
+
return self
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"""
|
|
2
|
+
UserPoolDTO information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UserPoolDTO(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
UserPoolDTO
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
id=None,
|
|
16
|
+
domain_id=None,
|
|
17
|
+
name=None,
|
|
18
|
+
description=None,
|
|
19
|
+
user_count=None,
|
|
20
|
+
client_count=None,
|
|
21
|
+
idp_count=None,
|
|
22
|
+
callback_url=None,
|
|
23
|
+
discovery_url=None,
|
|
24
|
+
authorization_endpoint=None,
|
|
25
|
+
token_endpoint=None,
|
|
26
|
+
userinfo_endpoint=None,
|
|
27
|
+
jwks_url=None,
|
|
28
|
+
enabled=None,
|
|
29
|
+
created_at=None,
|
|
30
|
+
):
|
|
31
|
+
"""
|
|
32
|
+
Initialize UserPoolDTO instance.
|
|
33
|
+
|
|
34
|
+
:param id: 用户池 ID
|
|
35
|
+
:type id: str (optional)
|
|
36
|
+
|
|
37
|
+
:param domain_id: BCE 账户 ID
|
|
38
|
+
:type domain_id: str (optional)
|
|
39
|
+
|
|
40
|
+
:param name: 用户池名称
|
|
41
|
+
:type name: str (optional)
|
|
42
|
+
|
|
43
|
+
:param description: 用户池描述
|
|
44
|
+
:type description: str (optional)
|
|
45
|
+
|
|
46
|
+
:param user_count: 用户池内用户数量
|
|
47
|
+
:type user_count: int (optional)
|
|
48
|
+
|
|
49
|
+
:param client_count: 用户池内 OAuth2 客户端数量
|
|
50
|
+
:type client_count: int (optional)
|
|
51
|
+
|
|
52
|
+
:param idp_count: 用户池内 IdP 配置数量
|
|
53
|
+
:type idp_count: int (optional)
|
|
54
|
+
|
|
55
|
+
:param callback_url: 统一 IdP 回调地址
|
|
56
|
+
:type callback_url: str (optional)
|
|
57
|
+
|
|
58
|
+
:param discovery_url: OIDC Discovery URL
|
|
59
|
+
:type discovery_url: str (optional)
|
|
60
|
+
|
|
61
|
+
:param authorization_endpoint: 授权端点
|
|
62
|
+
:type authorization_endpoint: str (optional)
|
|
63
|
+
|
|
64
|
+
:param token_endpoint: Token 端点
|
|
65
|
+
:type token_endpoint: str (optional)
|
|
66
|
+
|
|
67
|
+
:param userinfo_endpoint: UserInfo 端点
|
|
68
|
+
:type userinfo_endpoint: str (optional)
|
|
69
|
+
|
|
70
|
+
:param jwks_url: JWKS 端点
|
|
71
|
+
:type jwks_url: str (optional)
|
|
72
|
+
|
|
73
|
+
:param enabled: 是否启用
|
|
74
|
+
:type enabled: bool (optional)
|
|
75
|
+
|
|
76
|
+
:param created_at: 创建时间
|
|
77
|
+
:type created_at: datetime (optional)
|
|
78
|
+
"""
|
|
79
|
+
super().__init__()
|
|
80
|
+
self.id = id
|
|
81
|
+
self.domain_id = domain_id
|
|
82
|
+
self.name = name
|
|
83
|
+
self.description = description
|
|
84
|
+
self.user_count = user_count
|
|
85
|
+
self.client_count = client_count
|
|
86
|
+
self.idp_count = idp_count
|
|
87
|
+
self.callback_url = callback_url
|
|
88
|
+
self.discovery_url = discovery_url
|
|
89
|
+
self.authorization_endpoint = authorization_endpoint
|
|
90
|
+
self.token_endpoint = token_endpoint
|
|
91
|
+
self.userinfo_endpoint = userinfo_endpoint
|
|
92
|
+
self.jwks_url = jwks_url
|
|
93
|
+
self.enabled = enabled
|
|
94
|
+
self.created_at = created_at
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""
|
|
98
|
+
Convert the model instance to a dictionary representation.
|
|
99
|
+
|
|
100
|
+
Nested model objects are recursively converted to dictionaries.
|
|
101
|
+
|
|
102
|
+
:return: Dictionary representation of the model
|
|
103
|
+
:rtype: dict
|
|
104
|
+
"""
|
|
105
|
+
_map = super().to_dict()
|
|
106
|
+
if _map is not None:
|
|
107
|
+
return _map
|
|
108
|
+
result = dict()
|
|
109
|
+
if self.id is not None:
|
|
110
|
+
result['id'] = self.id
|
|
111
|
+
if self.domain_id is not None:
|
|
112
|
+
result['domainId'] = self.domain_id
|
|
113
|
+
if self.name is not None:
|
|
114
|
+
result['name'] = self.name
|
|
115
|
+
if self.description is not None:
|
|
116
|
+
result['description'] = self.description
|
|
117
|
+
if self.user_count is not None:
|
|
118
|
+
result['userCount'] = self.user_count
|
|
119
|
+
if self.client_count is not None:
|
|
120
|
+
result['clientCount'] = self.client_count
|
|
121
|
+
if self.idp_count is not None:
|
|
122
|
+
result['idpCount'] = self.idp_count
|
|
123
|
+
if self.callback_url is not None:
|
|
124
|
+
result['callbackUrl'] = self.callback_url
|
|
125
|
+
if self.discovery_url is not None:
|
|
126
|
+
result['discoveryUrl'] = self.discovery_url
|
|
127
|
+
if self.authorization_endpoint is not None:
|
|
128
|
+
result['authorizationEndpoint'] = self.authorization_endpoint
|
|
129
|
+
if self.token_endpoint is not None:
|
|
130
|
+
result['tokenEndpoint'] = self.token_endpoint
|
|
131
|
+
if self.userinfo_endpoint is not None:
|
|
132
|
+
result['userinfoEndpoint'] = self.userinfo_endpoint
|
|
133
|
+
if self.jwks_url is not None:
|
|
134
|
+
result['jwksUrl'] = self.jwks_url
|
|
135
|
+
if self.enabled is not None:
|
|
136
|
+
result['enabled'] = self.enabled
|
|
137
|
+
if self.created_at is not None:
|
|
138
|
+
result['createdAt'] = self.created_at
|
|
139
|
+
return result
|
|
140
|
+
|
|
141
|
+
def from_dict(self, m):
|
|
142
|
+
"""
|
|
143
|
+
Populate the model instance from a dictionary.
|
|
144
|
+
|
|
145
|
+
Nested dictionaries are recursively converted to model objects.
|
|
146
|
+
|
|
147
|
+
:param m: Dictionary containing model data
|
|
148
|
+
:type m: dict
|
|
149
|
+
|
|
150
|
+
:return: Self reference for method chaining
|
|
151
|
+
:rtype: UserPoolDTO
|
|
152
|
+
|
|
153
|
+
:raises TypeError: If input is not a dictionary type
|
|
154
|
+
:raises ValueError: If nested model conversion fails
|
|
155
|
+
"""
|
|
156
|
+
m = m or dict()
|
|
157
|
+
if m.get('id') is not None:
|
|
158
|
+
self.id = m.get('id')
|
|
159
|
+
if m.get('domainId') is not None:
|
|
160
|
+
self.domain_id = m.get('domainId')
|
|
161
|
+
if m.get('name') is not None:
|
|
162
|
+
self.name = m.get('name')
|
|
163
|
+
if m.get('description') is not None:
|
|
164
|
+
self.description = m.get('description')
|
|
165
|
+
if m.get('userCount') is not None:
|
|
166
|
+
self.user_count = m.get('userCount')
|
|
167
|
+
if m.get('clientCount') is not None:
|
|
168
|
+
self.client_count = m.get('clientCount')
|
|
169
|
+
if m.get('idpCount') is not None:
|
|
170
|
+
self.idp_count = m.get('idpCount')
|
|
171
|
+
if m.get('callbackUrl') is not None:
|
|
172
|
+
self.callback_url = m.get('callbackUrl')
|
|
173
|
+
if m.get('discoveryUrl') is not None:
|
|
174
|
+
self.discovery_url = m.get('discoveryUrl')
|
|
175
|
+
if m.get('authorizationEndpoint') is not None:
|
|
176
|
+
self.authorization_endpoint = m.get('authorizationEndpoint')
|
|
177
|
+
if m.get('tokenEndpoint') is not None:
|
|
178
|
+
self.token_endpoint = m.get('tokenEndpoint')
|
|
179
|
+
if m.get('userinfoEndpoint') is not None:
|
|
180
|
+
self.userinfo_endpoint = m.get('userinfoEndpoint')
|
|
181
|
+
if m.get('jwksUrl') is not None:
|
|
182
|
+
self.jwks_url = m.get('jwksUrl')
|
|
183
|
+
if m.get('enabled') is not None:
|
|
184
|
+
self.enabled = m.get('enabled')
|
|
185
|
+
if m.get('createdAt') is not None:
|
|
186
|
+
self.created_at = m.get('createdAt')
|
|
187
|
+
return self
|