baiducloud-python-sdk-iam 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_iam/__init__.py +5 -0
- baiducloud_python_sdk_iam/api/__init__.py +0 -0
- baiducloud_python_sdk_iam/api/iam_client.py +1507 -0
- baiducloud_python_sdk_iam/models/__init__.py +83 -0
- baiducloud_python_sdk_iam/models/access_key.py +82 -0
- baiducloud_python_sdk_iam/models/account_count_info.py +74 -0
- baiducloud_python_sdk_iam/models/account_limit_info.py +142 -0
- baiducloud_python_sdk_iam/models/add_user_to_group_request.py +64 -0
- baiducloud_python_sdk_iam/models/associate_group_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/associate_role_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/associate_user_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/attached_entities.py +82 -0
- baiducloud_python_sdk_iam/models/change_sub_user_password_request.py +66 -0
- baiducloud_python_sdk_iam/models/create_access_key_request.py +58 -0
- baiducloud_python_sdk_iam/models/create_apikey_permanently_valid_request.py +76 -0
- baiducloud_python_sdk_iam/models/create_group_request.py +68 -0
- baiducloud_python_sdk_iam/models/create_role_request.py +76 -0
- baiducloud_python_sdk_iam/models/create_strategy_request.py +76 -0
- baiducloud_python_sdk_iam/models/create_user_request.py +68 -0
- baiducloud_python_sdk_iam/models/decoding_apikey_permanently_valid_request.py +68 -0
- baiducloud_python_sdk_iam/models/delete_access_key_request.py +64 -0
- baiducloud_python_sdk_iam/models/delete_apikey_permanently_valid_request.py +68 -0
- baiducloud_python_sdk_iam/models/delete_group_request.py +58 -0
- baiducloud_python_sdk_iam/models/delete_login_profile_request.py +58 -0
- baiducloud_python_sdk_iam/models/delete_role_request.py +58 -0
- baiducloud_python_sdk_iam/models/delete_strategy_request.py +58 -0
- baiducloud_python_sdk_iam/models/delete_user_request.py +58 -0
- baiducloud_python_sdk_iam/models/disable_access_key_request.py +64 -0
- baiducloud_python_sdk_iam/models/enable_access_key_request.py +64 -0
- baiducloud_python_sdk_iam/models/get_login_profile_request.py +58 -0
- baiducloud_python_sdk_iam/models/get_session_api_key_request.py +64 -0
- baiducloud_python_sdk_iam/models/get_user_request.py +58 -0
- baiducloud_python_sdk_iam/models/group_model.py +82 -0
- baiducloud_python_sdk_iam/models/idp.py +90 -0
- baiducloud_python_sdk_iam/models/list_access_key_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_access_key_response.py +62 -0
- baiducloud_python_sdk_iam/models/list_all_subjects_granted_permissions_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_all_subjects_granted_permissions_response.py +94 -0
- baiducloud_python_sdk_iam/models/list_groups_response.py +62 -0
- baiducloud_python_sdk_iam/models/list_roles_response.py +62 -0
- baiducloud_python_sdk_iam/models/list_strategies_request.py +64 -0
- baiducloud_python_sdk_iam/models/list_strategies_response.py +64 -0
- baiducloud_python_sdk_iam/models/list_the_permissions_of_roles_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_the_permissions_of_roles_response.py +64 -0
- baiducloud_python_sdk_iam/models/list_the_permissions_of_the_group_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_the_permissions_of_the_group_response.py +62 -0
- baiducloud_python_sdk_iam/models/list_the_subjects_granted_permissions_request.py +64 -0
- baiducloud_python_sdk_iam/models/list_the_subjects_granted_permissions_response.py +94 -0
- baiducloud_python_sdk_iam/models/list_the_user_s_permissions_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_the_user_s_permissions_response.py +64 -0
- baiducloud_python_sdk_iam/models/list_user_groups_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_user_groups_response.py +64 -0
- baiducloud_python_sdk_iam/models/list_user_response.py +64 -0
- baiducloud_python_sdk_iam/models/list_users_within_the_group_request.py +58 -0
- baiducloud_python_sdk_iam/models/list_users_within_the_group_response.py +62 -0
- baiducloud_python_sdk_iam/models/modify_sub_user_operation_protection_request.py +76 -0
- baiducloud_python_sdk_iam/models/obtain_a_list_of_permanently_valid_apikeys_request.py +84 -0
- baiducloud_python_sdk_iam/models/policy_model.py +108 -0
- baiducloud_python_sdk_iam/models/query_apikey_details_permanently_valid_request.py +68 -0
- baiducloud_python_sdk_iam/models/query_group_request.py +58 -0
- baiducloud_python_sdk_iam/models/query_role_request.py +58 -0
- baiducloud_python_sdk_iam/models/query_strategy_request.py +64 -0
- baiducloud_python_sdk_iam/models/query_sub_user_idp_response.py +64 -0
- baiducloud_python_sdk_iam/models/query_summary_of_main_account_response.py +79 -0
- baiducloud_python_sdk_iam/models/query_the_last_usage_time_of_accesskey_request.py +58 -0
- baiducloud_python_sdk_iam/models/query_the_last_usage_time_of_accesskey_response.py +69 -0
- baiducloud_python_sdk_iam/models/remove_group_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/remove_role_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/remove_user_from_the_group_request.py +64 -0
- baiducloud_python_sdk_iam/models/remove_user_permissions_request.py +70 -0
- baiducloud_python_sdk_iam/models/role_model.py +90 -0
- baiducloud_python_sdk_iam/models/unbind_sub_user_virtual_mfa_request.py +64 -0
- baiducloud_python_sdk_iam/models/update_apikey_permanently_valid_request.py +76 -0
- baiducloud_python_sdk_iam/models/update_group_request.py +74 -0
- baiducloud_python_sdk_iam/models/update_login_profile_request.py +124 -0
- baiducloud_python_sdk_iam/models/update_role_request.py +82 -0
- baiducloud_python_sdk_iam/models/update_strategy_request.py +82 -0
- baiducloud_python_sdk_iam/models/update_sub_user_idp_request.py +76 -0
- baiducloud_python_sdk_iam/models/update_sub_user_idp_response.py +64 -0
- baiducloud_python_sdk_iam/models/update_sub_user_idp_status_request.py +58 -0
- baiducloud_python_sdk_iam/models/update_sub_user_idp_status_response.py +62 -0
- baiducloud_python_sdk_iam/models/update_user_request.py +82 -0
- baiducloud_python_sdk_iam/models/user_model.py +115 -0
- baiducloud_python_sdk_iam-0.0.1.dist-info/LICENSE +177 -0
- baiducloud_python_sdk_iam-0.0.1.dist-info/METADATA +76 -0
- baiducloud_python_sdk_iam-0.0.1.dist-info/RECORD +88 -0
- baiducloud_python_sdk_iam-0.0.1.dist-info/WHEEL +5 -0
- baiducloud_python_sdk_iam-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteAccessKeyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteAccessKeyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteAccessKeyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name, access_key_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteAccessKeyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
|
|
22
|
+
:param access_key_id: access_key_id parameter
|
|
23
|
+
:type access_key_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.user_name = user_name
|
|
27
|
+
self.access_key_id = access_key_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
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: DeleteAccessKeyRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('userName') is not None:
|
|
61
|
+
self.user_name = m.get('userName')
|
|
62
|
+
if m.get('accessKeyId') is not None:
|
|
63
|
+
self.access_key_id = m.get('accessKeyId')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteApikeyPermanentlyValidRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteApikeyPermanentlyValidRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteApikeyPermanentlyValidRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, id, user_id=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteApikeyPermanentlyValidRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_id: 子用户Id;如果apikey归属其他子用户则必填
|
|
20
|
+
:type user_id: str (optional)
|
|
21
|
+
|
|
22
|
+
:param id: APIKey ID
|
|
23
|
+
:type id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.user_id = user_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_id is not None:
|
|
43
|
+
result['userId'] = self.user_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: DeleteApikeyPermanentlyValidRequest
|
|
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('userId') is not None:
|
|
65
|
+
self.user_id = m.get('userId')
|
|
66
|
+
if m.get('id') is not None:
|
|
67
|
+
self.id = m.get('id')
|
|
68
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteGroupRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteGroupRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteGroupRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, group_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteGroupRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param group_name: group_name parameter
|
|
20
|
+
:type group_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.group_name = group_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteGroupRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('groupName') is not None:
|
|
57
|
+
self.group_name = m.get('groupName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteLoginProfileRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteLoginProfileRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteLoginProfileRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteLoginProfileRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.user_name = user_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteLoginProfileRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('userName') is not None:
|
|
57
|
+
self.user_name = m.get('userName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteRoleRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteRoleRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteRoleRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, role_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteRoleRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param role_name: role_name parameter
|
|
20
|
+
:type role_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.role_name = role_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteRoleRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('roleName') is not None:
|
|
57
|
+
self.role_name = m.get('roleName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteStrategyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteStrategyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteStrategyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, policy_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteStrategyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param policy_name: policy_name parameter
|
|
20
|
+
:type policy_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.policy_name = policy_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteStrategyRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('policyName') is not None:
|
|
57
|
+
self.policy_name = m.get('policyName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DeleteUserRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteUserRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DeleteUserRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DeleteUserRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.user_name = user_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: DeleteUserRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('userName') is not None:
|
|
57
|
+
self.user_name = m.get('userName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for DisableAccessKeyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DisableAccessKeyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for DisableAccessKeyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name, access_key_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize DisableAccessKeyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
|
|
22
|
+
:param access_key_id: access_key_id parameter
|
|
23
|
+
:type access_key_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.user_name = user_name
|
|
27
|
+
self.access_key_id = access_key_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
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: DisableAccessKeyRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('userName') is not None:
|
|
61
|
+
self.user_name = m.get('userName')
|
|
62
|
+
if m.get('accessKeyId') is not None:
|
|
63
|
+
self.access_key_id = m.get('accessKeyId')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for EnableAccessKeyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class EnableAccessKeyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for EnableAccessKeyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name, access_key_id):
|
|
16
|
+
"""
|
|
17
|
+
Initialize EnableAccessKeyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
|
|
22
|
+
:param access_key_id: access_key_id parameter
|
|
23
|
+
:type access_key_id: str (required)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.user_name = user_name
|
|
27
|
+
self.access_key_id = access_key_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
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: EnableAccessKeyRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('userName') is not None:
|
|
61
|
+
self.user_name = m.get('userName')
|
|
62
|
+
if m.get('accessKeyId') is not None:
|
|
63
|
+
self.access_key_id = m.get('accessKeyId')
|
|
64
|
+
return self
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetLoginProfileRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetLoginProfileRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetLoginProfileRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, user_name):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetLoginProfileRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param user_name: user_name parameter
|
|
20
|
+
:type user_name: str (required)
|
|
21
|
+
"""
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.user_name = user_name
|
|
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
|
+
return result
|
|
39
|
+
|
|
40
|
+
def from_dict(self, m):
|
|
41
|
+
"""
|
|
42
|
+
Populate the request entity from a dictionary.
|
|
43
|
+
|
|
44
|
+
Nested dictionaries are recursively converted to model objects.
|
|
45
|
+
|
|
46
|
+
:param m: Dictionary containing request data
|
|
47
|
+
:type m: dict
|
|
48
|
+
|
|
49
|
+
:return: Self reference for method chaining
|
|
50
|
+
:rtype: GetLoginProfileRequest
|
|
51
|
+
|
|
52
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
53
|
+
:raises ValueError: If nested model conversion fails
|
|
54
|
+
"""
|
|
55
|
+
m = m or dict()
|
|
56
|
+
if m.get('userName') is not None:
|
|
57
|
+
self.user_name = m.get('userName')
|
|
58
|
+
return self
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Request entity for GetSessionApiKeyRequest information.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from baiducloud_python_sdk_core.abstract_model import AbstractModel
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetSessionApiKeyRequest(AbstractModel):
|
|
9
|
+
"""
|
|
10
|
+
Request entity for GetSessionApiKeyRequest operation.
|
|
11
|
+
|
|
12
|
+
This class encapsulates all parameters for the API request.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
def __init__(self, expire_in_seconds=None, acl=None):
|
|
16
|
+
"""
|
|
17
|
+
Initialize GetSessionApiKeyRequest request entity.
|
|
18
|
+
|
|
19
|
+
:param expire_in_seconds: expire_in_seconds parameter
|
|
20
|
+
:type expire_in_seconds: int (optional)
|
|
21
|
+
|
|
22
|
+
:param acl: acl parameter
|
|
23
|
+
:type acl: str (optional)
|
|
24
|
+
"""
|
|
25
|
+
super().__init__()
|
|
26
|
+
self.expire_in_seconds = expire_in_seconds
|
|
27
|
+
self.acl = acl
|
|
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
|
+
return result
|
|
43
|
+
|
|
44
|
+
def from_dict(self, m):
|
|
45
|
+
"""
|
|
46
|
+
Populate the request entity from a dictionary.
|
|
47
|
+
|
|
48
|
+
Nested dictionaries are recursively converted to model objects.
|
|
49
|
+
|
|
50
|
+
:param m: Dictionary containing request data
|
|
51
|
+
:type m: dict
|
|
52
|
+
|
|
53
|
+
:return: Self reference for method chaining
|
|
54
|
+
:rtype: GetSessionApiKeyRequest
|
|
55
|
+
|
|
56
|
+
:raises TypeError: If input is not a dictionary or field type mismatch
|
|
57
|
+
:raises ValueError: If nested model conversion fails
|
|
58
|
+
"""
|
|
59
|
+
m = m or dict()
|
|
60
|
+
if m.get('expireInSeconds') is not None:
|
|
61
|
+
self.expire_in_seconds = m.get('expireInSeconds')
|
|
62
|
+
if m.get('acl') is not None:
|
|
63
|
+
self.acl = m.get('acl')
|
|
64
|
+
return self
|