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,205 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CredentialConfig information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CredentialConfig(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
CredentialConfig
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
api_key=None,
|
|
16
|
+
config_type=None,
|
|
17
|
+
provider=None,
|
|
18
|
+
discovery_url=None,
|
|
19
|
+
issuer=None,
|
|
20
|
+
authorization_endpoint=None,
|
|
21
|
+
token_endpoint=None,
|
|
22
|
+
userinfo_endpoint=None,
|
|
23
|
+
jwks_uri=None,
|
|
24
|
+
client_id=None,
|
|
25
|
+
client_secret=None,
|
|
26
|
+
scopes=None,
|
|
27
|
+
redirect_uri=None,
|
|
28
|
+
token_encryption_key_id=None,
|
|
29
|
+
role_arn=None,
|
|
30
|
+
external_id=None,
|
|
31
|
+
duration_seconds=None,
|
|
32
|
+
):
|
|
33
|
+
"""
|
|
34
|
+
Initialize CredentialConfig instance.
|
|
35
|
+
|
|
36
|
+
:param api_key: 【API_KEY】API Key 的 KMS Secret ID(非明文)
|
|
37
|
+
:type api_key: str (optional)
|
|
38
|
+
|
|
39
|
+
:param config_type: 【OAUTH2】配置模式:AUTO_DISCOVERY / MANUAL
|
|
40
|
+
:type config_type: str (optional)
|
|
41
|
+
|
|
42
|
+
:param provider: 【OAUTH2】提供方:CUSTOM / DINGTALK / FEISHU,默认 CUSTOM
|
|
43
|
+
:type provider: str (optional)
|
|
44
|
+
|
|
45
|
+
:param discovery_url: 【OAUTH2】OIDC Discovery URL(AUTO_DISCOVERY 模式)
|
|
46
|
+
:type discovery_url: str (optional)
|
|
47
|
+
|
|
48
|
+
:param issuer: 【OAUTH2】签发者
|
|
49
|
+
:type issuer: str (optional)
|
|
50
|
+
|
|
51
|
+
:param authorization_endpoint: 【OAUTH2】授权端点
|
|
52
|
+
:type authorization_endpoint: str (optional)
|
|
53
|
+
|
|
54
|
+
:param token_endpoint: 【OAUTH2】Token 端点
|
|
55
|
+
:type token_endpoint: str (optional)
|
|
56
|
+
|
|
57
|
+
:param userinfo_endpoint: 【OAUTH2】UserInfo 端点
|
|
58
|
+
:type userinfo_endpoint: str (optional)
|
|
59
|
+
|
|
60
|
+
:param jwks_uri: 【OAUTH2】JWKS 端点
|
|
61
|
+
:type jwks_uri: str (optional)
|
|
62
|
+
|
|
63
|
+
:param client_id: 【OAUTH2】client_id
|
|
64
|
+
:type client_id: str (optional)
|
|
65
|
+
|
|
66
|
+
:param client_secret: 【OAUTH2】client_secret 的 KMS Secret ID(非明文)
|
|
67
|
+
:type client_secret: str (optional)
|
|
68
|
+
|
|
69
|
+
:param scopes: 【OAUTH2】scope 列表,逗号分隔
|
|
70
|
+
:type scopes: str (optional)
|
|
71
|
+
|
|
72
|
+
:param redirect_uri: 【OAUTH2】回调地址(系统生成)
|
|
73
|
+
:type redirect_uri: str (optional)
|
|
74
|
+
|
|
75
|
+
:param token_encryption_key_id: 【OAUTH2】Token Vault 加密密钥的 KMS Secret ID(系统生成)
|
|
76
|
+
:type token_encryption_key_id: str (optional)
|
|
77
|
+
|
|
78
|
+
:param role_arn: 【STS】角色 ARN
|
|
79
|
+
:type role_arn: str (optional)
|
|
80
|
+
|
|
81
|
+
:param external_id: 【STS】外部 ID(可选)
|
|
82
|
+
:type external_id: str (optional)
|
|
83
|
+
|
|
84
|
+
:param duration_seconds: 【STS】临时凭证有效期(秒)
|
|
85
|
+
:type duration_seconds: int (optional)
|
|
86
|
+
"""
|
|
87
|
+
super().__init__()
|
|
88
|
+
self.api_key = api_key
|
|
89
|
+
self.config_type = config_type
|
|
90
|
+
self.provider = provider
|
|
91
|
+
self.discovery_url = discovery_url
|
|
92
|
+
self.issuer = issuer
|
|
93
|
+
self.authorization_endpoint = authorization_endpoint
|
|
94
|
+
self.token_endpoint = token_endpoint
|
|
95
|
+
self.userinfo_endpoint = userinfo_endpoint
|
|
96
|
+
self.jwks_uri = jwks_uri
|
|
97
|
+
self.client_id = client_id
|
|
98
|
+
self.client_secret = client_secret
|
|
99
|
+
self.scopes = scopes
|
|
100
|
+
self.redirect_uri = redirect_uri
|
|
101
|
+
self.token_encryption_key_id = token_encryption_key_id
|
|
102
|
+
self.role_arn = role_arn
|
|
103
|
+
self.external_id = external_id
|
|
104
|
+
self.duration_seconds = duration_seconds
|
|
105
|
+
|
|
106
|
+
def to_dict(self):
|
|
107
|
+
"""
|
|
108
|
+
Convert the model instance to a dictionary representation.
|
|
109
|
+
|
|
110
|
+
Nested model objects are recursively converted to dictionaries.
|
|
111
|
+
|
|
112
|
+
:return: Dictionary representation of the model
|
|
113
|
+
:rtype: dict
|
|
114
|
+
"""
|
|
115
|
+
_map = super().to_dict()
|
|
116
|
+
if _map is not None:
|
|
117
|
+
return _map
|
|
118
|
+
result = dict()
|
|
119
|
+
if self.api_key is not None:
|
|
120
|
+
result['apiKey'] = self.api_key
|
|
121
|
+
if self.config_type is not None:
|
|
122
|
+
result['configType'] = self.config_type
|
|
123
|
+
if self.provider is not None:
|
|
124
|
+
result['provider'] = self.provider
|
|
125
|
+
if self.discovery_url is not None:
|
|
126
|
+
result['discoveryUrl'] = self.discovery_url
|
|
127
|
+
if self.issuer is not None:
|
|
128
|
+
result['issuer'] = self.issuer
|
|
129
|
+
if self.authorization_endpoint is not None:
|
|
130
|
+
result['authorizationEndpoint'] = self.authorization_endpoint
|
|
131
|
+
if self.token_endpoint is not None:
|
|
132
|
+
result['tokenEndpoint'] = self.token_endpoint
|
|
133
|
+
if self.userinfo_endpoint is not None:
|
|
134
|
+
result['userinfoEndpoint'] = self.userinfo_endpoint
|
|
135
|
+
if self.jwks_uri is not None:
|
|
136
|
+
result['jwksUri'] = self.jwks_uri
|
|
137
|
+
if self.client_id is not None:
|
|
138
|
+
result['clientId'] = self.client_id
|
|
139
|
+
if self.client_secret is not None:
|
|
140
|
+
result['clientSecret'] = self.client_secret
|
|
141
|
+
if self.scopes is not None:
|
|
142
|
+
result['scopes'] = self.scopes
|
|
143
|
+
if self.redirect_uri is not None:
|
|
144
|
+
result['redirectUri'] = self.redirect_uri
|
|
145
|
+
if self.token_encryption_key_id is not None:
|
|
146
|
+
result['tokenEncryptionKeyId'] = self.token_encryption_key_id
|
|
147
|
+
if self.role_arn is not None:
|
|
148
|
+
result['roleArn'] = self.role_arn
|
|
149
|
+
if self.external_id is not None:
|
|
150
|
+
result['externalId'] = self.external_id
|
|
151
|
+
if self.duration_seconds is not None:
|
|
152
|
+
result['durationSeconds'] = self.duration_seconds
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def from_dict(self, m):
|
|
156
|
+
"""
|
|
157
|
+
Populate the model instance from a dictionary.
|
|
158
|
+
|
|
159
|
+
Nested dictionaries are recursively converted to model objects.
|
|
160
|
+
|
|
161
|
+
:param m: Dictionary containing model data
|
|
162
|
+
:type m: dict
|
|
163
|
+
|
|
164
|
+
:return: Self reference for method chaining
|
|
165
|
+
:rtype: CredentialConfig
|
|
166
|
+
|
|
167
|
+
:raises TypeError: If input is not a dictionary type
|
|
168
|
+
:raises ValueError: If nested model conversion fails
|
|
169
|
+
"""
|
|
170
|
+
m = m or dict()
|
|
171
|
+
if m.get('apiKey') is not None:
|
|
172
|
+
self.api_key = m.get('apiKey')
|
|
173
|
+
if m.get('configType') is not None:
|
|
174
|
+
self.config_type = m.get('configType')
|
|
175
|
+
if m.get('provider') is not None:
|
|
176
|
+
self.provider = m.get('provider')
|
|
177
|
+
if m.get('discoveryUrl') is not None:
|
|
178
|
+
self.discovery_url = m.get('discoveryUrl')
|
|
179
|
+
if m.get('issuer') is not None:
|
|
180
|
+
self.issuer = m.get('issuer')
|
|
181
|
+
if m.get('authorizationEndpoint') is not None:
|
|
182
|
+
self.authorization_endpoint = m.get('authorizationEndpoint')
|
|
183
|
+
if m.get('tokenEndpoint') is not None:
|
|
184
|
+
self.token_endpoint = m.get('tokenEndpoint')
|
|
185
|
+
if m.get('userinfoEndpoint') is not None:
|
|
186
|
+
self.userinfo_endpoint = m.get('userinfoEndpoint')
|
|
187
|
+
if m.get('jwksUri') is not None:
|
|
188
|
+
self.jwks_uri = m.get('jwksUri')
|
|
189
|
+
if m.get('clientId') is not None:
|
|
190
|
+
self.client_id = m.get('clientId')
|
|
191
|
+
if m.get('clientSecret') is not None:
|
|
192
|
+
self.client_secret = m.get('clientSecret')
|
|
193
|
+
if m.get('scopes') is not None:
|
|
194
|
+
self.scopes = m.get('scopes')
|
|
195
|
+
if m.get('redirectUri') is not None:
|
|
196
|
+
self.redirect_uri = m.get('redirectUri')
|
|
197
|
+
if m.get('tokenEncryptionKeyId') is not None:
|
|
198
|
+
self.token_encryption_key_id = m.get('tokenEncryptionKeyId')
|
|
199
|
+
if m.get('roleArn') is not None:
|
|
200
|
+
self.role_arn = m.get('roleArn')
|
|
201
|
+
if m.get('externalId') is not None:
|
|
202
|
+
self.external_id = m.get('externalId')
|
|
203
|
+
if m.get('durationSeconds') is not None:
|
|
204
|
+
self.duration_seconds = m.get('durationSeconds')
|
|
205
|
+
return self
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CredentialProviderDTO information
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
from baiducloud_python_sdk_agentidentity.models.credential_config import CredentialConfig
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CredentialProviderDTO(AbstractModel):
|
|
11
|
+
"""
|
|
12
|
+
CredentialProviderDTO
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
id=None,
|
|
18
|
+
bce_domain_id=None,
|
|
19
|
+
bce_user_id=None,
|
|
20
|
+
name=None,
|
|
21
|
+
type=None,
|
|
22
|
+
desc=None,
|
|
23
|
+
credential=None,
|
|
24
|
+
created_at=None,
|
|
25
|
+
updated_at=None,
|
|
26
|
+
):
|
|
27
|
+
"""
|
|
28
|
+
Initialize CredentialProviderDTO instance.
|
|
29
|
+
|
|
30
|
+
:param id: 凭证提供方 ID
|
|
31
|
+
:type id: str (optional)
|
|
32
|
+
|
|
33
|
+
:param bce_domain_id: BCE 账户 ID
|
|
34
|
+
:type bce_domain_id: str (optional)
|
|
35
|
+
|
|
36
|
+
:param bce_user_id: BCE 用户 ID
|
|
37
|
+
:type bce_user_id: str (optional)
|
|
38
|
+
|
|
39
|
+
:param name: 名称
|
|
40
|
+
:type name: str (optional)
|
|
41
|
+
|
|
42
|
+
:param type: 凭证类型:API_KEY / OAUTH2 / STS
|
|
43
|
+
:type type: str (optional)
|
|
44
|
+
|
|
45
|
+
:param desc: 描述
|
|
46
|
+
:type desc: str (optional)
|
|
47
|
+
|
|
48
|
+
:param credential: credential attribute
|
|
49
|
+
:type credential: CredentialConfig (optional)
|
|
50
|
+
|
|
51
|
+
:param created_at: 创建时间
|
|
52
|
+
:type created_at: datetime (optional)
|
|
53
|
+
|
|
54
|
+
:param updated_at: 更新时间
|
|
55
|
+
:type updated_at: datetime (optional)
|
|
56
|
+
"""
|
|
57
|
+
super().__init__()
|
|
58
|
+
self.id = id
|
|
59
|
+
self.bce_domain_id = bce_domain_id
|
|
60
|
+
self.bce_user_id = bce_user_id
|
|
61
|
+
self.name = name
|
|
62
|
+
self.type = type
|
|
63
|
+
self.desc = desc
|
|
64
|
+
self.credential = credential
|
|
65
|
+
self.created_at = created_at
|
|
66
|
+
self.updated_at = updated_at
|
|
67
|
+
|
|
68
|
+
def to_dict(self):
|
|
69
|
+
"""
|
|
70
|
+
Convert the model instance to a dictionary representation.
|
|
71
|
+
|
|
72
|
+
Nested model objects are recursively converted to dictionaries.
|
|
73
|
+
|
|
74
|
+
:return: Dictionary representation of the model
|
|
75
|
+
:rtype: dict
|
|
76
|
+
"""
|
|
77
|
+
_map = super().to_dict()
|
|
78
|
+
if _map is not None:
|
|
79
|
+
return _map
|
|
80
|
+
result = dict()
|
|
81
|
+
if self.id is not None:
|
|
82
|
+
result['id'] = self.id
|
|
83
|
+
if self.bce_domain_id is not None:
|
|
84
|
+
result['bceDomainId'] = self.bce_domain_id
|
|
85
|
+
if self.bce_user_id is not None:
|
|
86
|
+
result['bceUserId'] = self.bce_user_id
|
|
87
|
+
if self.name is not None:
|
|
88
|
+
result['name'] = self.name
|
|
89
|
+
if self.type is not None:
|
|
90
|
+
result['type'] = self.type
|
|
91
|
+
if self.desc is not None:
|
|
92
|
+
result['desc'] = self.desc
|
|
93
|
+
if self.credential is not None:
|
|
94
|
+
result['credential'] = self.credential.to_dict()
|
|
95
|
+
if self.created_at is not None:
|
|
96
|
+
result['createdAt'] = self.created_at
|
|
97
|
+
if self.updated_at is not None:
|
|
98
|
+
result['updatedAt'] = self.updated_at
|
|
99
|
+
return result
|
|
100
|
+
|
|
101
|
+
def from_dict(self, m):
|
|
102
|
+
"""
|
|
103
|
+
Populate the model instance from a dictionary.
|
|
104
|
+
|
|
105
|
+
Nested dictionaries are recursively converted to model objects.
|
|
106
|
+
|
|
107
|
+
:param m: Dictionary containing model data
|
|
108
|
+
:type m: dict
|
|
109
|
+
|
|
110
|
+
:return: Self reference for method chaining
|
|
111
|
+
:rtype: CredentialProviderDTO
|
|
112
|
+
|
|
113
|
+
:raises TypeError: If input is not a dictionary type
|
|
114
|
+
:raises ValueError: If nested model conversion fails
|
|
115
|
+
"""
|
|
116
|
+
m = m or dict()
|
|
117
|
+
if m.get('id') is not None:
|
|
118
|
+
self.id = m.get('id')
|
|
119
|
+
if m.get('bceDomainId') is not None:
|
|
120
|
+
self.bce_domain_id = m.get('bceDomainId')
|
|
121
|
+
if m.get('bceUserId') is not None:
|
|
122
|
+
self.bce_user_id = m.get('bceUserId')
|
|
123
|
+
if m.get('name') is not None:
|
|
124
|
+
self.name = m.get('name')
|
|
125
|
+
if m.get('type') is not None:
|
|
126
|
+
self.type = m.get('type')
|
|
127
|
+
if m.get('desc') is not None:
|
|
128
|
+
self.desc = m.get('desc')
|
|
129
|
+
if m.get('credential') is not None:
|
|
130
|
+
self.credential = CredentialConfig().from_dict(m.get('credential'))
|
|
131
|
+
if m.get('createdAt') is not None:
|
|
132
|
+
self.created_at = m.get('createdAt')
|
|
133
|
+
if m.get('updatedAt') is not None:
|
|
134
|
+
self.updated_at = m.get('updatedAt')
|
|
135
|
+
return self
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteAgentRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteAgentRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteAgentRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, agent_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteAgentRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param agent_id: Agent ID
|
|
20
|
+
:type agent_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.agent_id = agent_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.agent_id is not None:
|
|
39
|
+
result['agentId'] = self.agent_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: DeleteAgentRequest
|
|
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('agentId') is not None:
|
|
59
|
+
self.agent_id = m.get('agentId')
|
|
60
|
+
return self
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteCredentialProviderRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteCredentialProviderRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteCredentialProviderRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, credential_provider_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteCredentialProviderRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param credential_provider_id: 凭证提供方 ID
|
|
20
|
+
:type credential_provider_id: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.credential_provider_id = credential_provider_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.credential_provider_id is not None:
|
|
39
|
+
result['credentialProviderId'] = self.credential_provider_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: DeleteCredentialProviderRequest
|
|
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('credentialProviderId') is not None:
|
|
59
|
+
self.credential_provider_id = m.get('credentialProviderId')
|
|
60
|
+
return self
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteIdpConfigurationRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteIdpConfigurationRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteIdpConfigurationRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteIdpConfigurationRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_pool_id: 用户池 ID
|
|
20
|
+
:type user_pool_id: str (required)
|
|
21
|
+
|
|
22
|
+
:param id: IdP 配置 ID
|
|
23
|
+
:type id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.user_pool_id = user_pool_id
|
|
27
|
+
self.id = id
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.user_pool_id is not None:
|
|
43
|
+
result['userPoolId'] = self.user_pool_id
|
|
44
|
+
if self.id is not None:
|
|
45
|
+
result['id'] = self.id
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeleteIdpConfigurationRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('userPoolId') is not None:
|
|
65
|
+
self.user_pool_id = m.get('userPoolId')
|
|
66
|
+
if m.get('id') is not None:
|
|
67
|
+
self.id = m.get('id')
|
|
68
|
+
return self
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteOauth2ClientRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteOauth2ClientRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteOauth2ClientRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_pool_id, id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteOauth2ClientRequest 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
|
+
super().__init__()
|
|
26
|
+
self.user_pool_id = user_pool_id
|
|
27
|
+
self.id = id
|
|
28
|
+
|
|
29
|
+
def to_dict(self):
|
|
30
|
+
"""
|
|
31
|
+
Convert the request entity to a dictionary representation.
|
|
32
|
+
|
|
33
|
+
Nested model objects are recursively converted to dictionaries.
|
|
34
|
+
|
|
35
|
+
:return: Dictionary representation of the request
|
|
36
|
+
:rtype: dict
|
|
37
|
+
"""
|
|
38
|
+
_map = super().to_dict()
|
|
39
|
+
if _map is not None:
|
|
40
|
+
return _map
|
|
41
|
+
result = dict()
|
|
42
|
+
if self.user_pool_id is not None:
|
|
43
|
+
result['userPoolId'] = self.user_pool_id
|
|
44
|
+
if self.id is not None:
|
|
45
|
+
result['id'] = self.id
|
|
46
|
+
return result
|
|
47
|
+
|
|
48
|
+
def from_dict(self, m):
|
|
49
|
+
"""
|
|
50
|
+
Populate the request entity from a dictionary.
|
|
51
|
+
|
|
52
|
+
Nested dictionaries are recursively converted to model objects.
|
|
53
|
+
|
|
54
|
+
:param m: Dictionary containing request data
|
|
55
|
+
:type m: dict
|
|
56
|
+
|
|
57
|
+
:return: Self reference for method chaining
|
|
58
|
+
:rtype: DeleteOauth2ClientRequest
|
|
59
|
+
|
|
60
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
61
|
+
:raises ValueError: If nested model conversion fails
|
|
62
|
+
"""
|
|
63
|
+
m = m or dict()
|
|
64
|
+
if m.get('userPoolId') is not None:
|
|
65
|
+
self.user_pool_id = m.get('userPoolId')
|
|
66
|
+
if m.get('id') is not None:
|
|
67
|
+
self.id = m.get('id')
|
|
68
|
+
return self
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteUserPoolRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteUserPoolRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteUserPoolRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteUserPoolRequest 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: DeleteUserPoolRequest
|
|
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
|