baiducloud-python-sdk-cloudassistant 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.
Files changed (59) hide show
  1. baiducloud_python_sdk_cloudassistant/__init__.py +5 -0
  2. baiducloud_python_sdk_cloudassistant/api/__init__.py +0 -0
  3. baiducloud_python_sdk_cloudassistant/api/cloudassistant_client.py +418 -0
  4. baiducloud_python_sdk_cloudassistant/models/__init__.py +54 -0
  5. baiducloud_python_sdk_cloudassistant/models/action.py +164 -0
  6. baiducloud_python_sdk_cloudassistant/models/action_filter.py +100 -0
  7. baiducloud_python_sdk_cloudassistant/models/action_index.py +74 -0
  8. baiducloud_python_sdk_cloudassistant/models/action_list_request.py +99 -0
  9. baiducloud_python_sdk_cloudassistant/models/action_list_response.py +94 -0
  10. baiducloud_python_sdk_cloudassistant/models/action_log_request.py +76 -0
  11. baiducloud_python_sdk_cloudassistant/models/action_log_response.py +94 -0
  12. baiducloud_python_sdk_cloudassistant/models/action_page.py +84 -0
  13. baiducloud_python_sdk_cloudassistant/models/action_run.py +130 -0
  14. baiducloud_python_sdk_cloudassistant/models/action_run_list_request.py +143 -0
  15. baiducloud_python_sdk_cloudassistant/models/action_run_list_response.py +94 -0
  16. baiducloud_python_sdk_cloudassistant/models/action_run_page.py +84 -0
  17. baiducloud_python_sdk_cloudassistant/models/action_run_request.py +101 -0
  18. baiducloud_python_sdk_cloudassistant/models/action_run_response.py +93 -0
  19. baiducloud_python_sdk_cloudassistant/models/agent.py +76 -0
  20. baiducloud_python_sdk_cloudassistant/models/batch_get_agent_request.py +61 -0
  21. baiducloud_python_sdk_cloudassistant/models/batch_get_agent_response.py +94 -0
  22. baiducloud_python_sdk_cloudassistant/models/child_run.py +135 -0
  23. baiducloud_python_sdk_cloudassistant/models/command.py +135 -0
  24. baiducloud_python_sdk_cloudassistant/models/command_filter.py +74 -0
  25. baiducloud_python_sdk_cloudassistant/models/create_action_request.py +105 -0
  26. baiducloud_python_sdk_cloudassistant/models/create_action_response.py +94 -0
  27. baiducloud_python_sdk_cloudassistant/models/delete_action_request.py +58 -0
  28. baiducloud_python_sdk_cloudassistant/models/delete_action_response.py +85 -0
  29. baiducloud_python_sdk_cloudassistant/models/execution.py +20 -0
  30. baiducloud_python_sdk_cloudassistant/models/file_upload.py +151 -0
  31. baiducloud_python_sdk_cloudassistant/models/get_action_request.py +64 -0
  32. baiducloud_python_sdk_cloudassistant/models/get_action_response.py +94 -0
  33. baiducloud_python_sdk_cloudassistant/models/get_action_run_request.py +88 -0
  34. baiducloud_python_sdk_cloudassistant/models/get_action_run_response.py +94 -0
  35. baiducloud_python_sdk_cloudassistant/models/host.py +58 -0
  36. baiducloud_python_sdk_cloudassistant/models/id.py +19 -0
  37. baiducloud_python_sdk_cloudassistant/models/instance_type.py +19 -0
  38. baiducloud_python_sdk_cloudassistant/models/keyword_type.py +19 -0
  39. baiducloud_python_sdk_cloudassistant/models/log.py +58 -0
  40. baiducloud_python_sdk_cloudassistant/models/log_result.py +84 -0
  41. baiducloud_python_sdk_cloudassistant/models/os.py +19 -0
  42. baiducloud_python_sdk_cloudassistant/models/output.py +82 -0
  43. baiducloud_python_sdk_cloudassistant/models/parameter.py +82 -0
  44. baiducloud_python_sdk_cloudassistant/models/scope.py +19 -0
  45. baiducloud_python_sdk_cloudassistant/models/state.py +20 -0
  46. baiducloud_python_sdk_cloudassistant/models/statistics.py +66 -0
  47. baiducloud_python_sdk_cloudassistant/models/tag.py +66 -0
  48. baiducloud_python_sdk_cloudassistant/models/target.py +106 -0
  49. baiducloud_python_sdk_cloudassistant/models/target_import.py +66 -0
  50. baiducloud_python_sdk_cloudassistant/models/target_selector.py +78 -0
  51. baiducloud_python_sdk_cloudassistant/models/target_selector_type.py +21 -0
  52. baiducloud_python_sdk_cloudassistant/models/type.py +19 -0
  53. baiducloud_python_sdk_cloudassistant/models/update_action_request.py +105 -0
  54. baiducloud_python_sdk_cloudassistant/models/update_action_response.py +85 -0
  55. baiducloud_python_sdk_cloudassistant-0.0.1.dist-info/LICENSE +177 -0
  56. baiducloud_python_sdk_cloudassistant-0.0.1.dist-info/METADATA +76 -0
  57. baiducloud_python_sdk_cloudassistant-0.0.1.dist-info/RECORD +59 -0
  58. baiducloud_python_sdk_cloudassistant-0.0.1.dist-info/WHEEL +5 -0
  59. baiducloud_python_sdk_cloudassistant-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,100 @@
1
+ """
2
+ ActionFilter information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+ from baiducloud_python_sdk_cloudassistant.models.command_filter import CommandFilter
8
+
9
+
10
+ class ActionFilter(AbstractModel):
11
+ """
12
+ ActionFilter
13
+ """
14
+
15
+ def __init__(self, type=None, command=None, instance_type=None, id=None, name=None, file_upload=None):
16
+ """
17
+ Initialize ActionFilter instance.
18
+
19
+ :param type: 类型,可选值:COMMAND,FILE_UPLOAD
20
+ :type type: str (optional)
21
+
22
+ :param command: command attribute
23
+ :type command: CommandFilter (optional)
24
+
25
+ :param instance_type: 实例类型
26
+ :type instance_type: str (optional)
27
+
28
+ :param id: 命令 ID,仅被保存的命令拥有
29
+ :type id: str (optional)
30
+
31
+ :param name: 命令名称,仅被保存的命令拥有
32
+ :type name: str (optional)
33
+
34
+ :param file_upload: 文件上传详情
35
+ :type file_upload: object (optional)
36
+ """
37
+ super().__init__()
38
+ self.type = type
39
+ self.command = command
40
+ self.instance_type = instance_type
41
+ self.id = id
42
+ self.name = name
43
+ self.file_upload = file_upload
44
+
45
+ def to_dict(self):
46
+ """
47
+ Convert the model instance to a dictionary representation.
48
+
49
+ Nested model objects are recursively converted to dictionaries.
50
+
51
+ :return: Dictionary representation of the model
52
+ :rtype: dict
53
+ """
54
+ _map = super().to_dict()
55
+ if _map is not None:
56
+ return _map
57
+ result = dict()
58
+ if self.type is not None:
59
+ result['type'] = self.type
60
+ if self.command is not None:
61
+ result['command'] = self.command.to_dict()
62
+ if self.instance_type is not None:
63
+ result['instanceType'] = self.instance_type
64
+ if self.id is not None:
65
+ result['id'] = self.id
66
+ if self.name is not None:
67
+ result['name'] = self.name
68
+ if self.file_upload is not None:
69
+ result['fileUpload'] = self.file_upload
70
+ return result
71
+
72
+ def from_dict(self, m):
73
+ """
74
+ Populate the model instance from a dictionary.
75
+
76
+ Nested dictionaries are recursively converted to model objects.
77
+
78
+ :param m: Dictionary containing model data
79
+ :type m: dict
80
+
81
+ :return: Self reference for method chaining
82
+ :rtype: ActionFilter
83
+
84
+ :raises TypeError: If input is not a dictionary type
85
+ :raises ValueError: If nested model conversion fails
86
+ """
87
+ m = m or dict()
88
+ if m.get('type') is not None:
89
+ self.type = m.get('type')
90
+ if m.get('command') is not None:
91
+ self.command = CommandFilter().from_dict(m.get('command'))
92
+ if m.get('instanceType') is not None:
93
+ self.instance_type = m.get('instanceType')
94
+ if m.get('id') is not None:
95
+ self.id = m.get('id')
96
+ if m.get('name') is not None:
97
+ self.name = m.get('name')
98
+ if m.get('fileUpload') is not None:
99
+ self.file_upload = m.get('fileUpload')
100
+ return self
@@ -0,0 +1,74 @@
1
+ """
2
+ ActionIndex information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class ActionIndex(AbstractModel):
9
+ """
10
+ ActionIndex
11
+ """
12
+
13
+ def __init__(self, action_id=None, action_name=None, run_id=None):
14
+ """
15
+ Initialize ActionIndex instance.
16
+
17
+ :param action_id: 命令id
18
+ :type action_id: str (optional)
19
+
20
+ :param action_name: 命令名称
21
+ :type action_name: str (optional)
22
+
23
+ :param run_id: 执行id,仅在命令执行时返回
24
+ :type run_id: str (optional)
25
+ """
26
+ super().__init__()
27
+ self.action_id = action_id
28
+ self.action_name = action_name
29
+ self.run_id = run_id
30
+
31
+ def to_dict(self):
32
+ """
33
+ Convert the model instance to a dictionary representation.
34
+
35
+ Nested model objects are recursively converted to dictionaries.
36
+
37
+ :return: Dictionary representation of the model
38
+ :rtype: dict
39
+ """
40
+ _map = super().to_dict()
41
+ if _map is not None:
42
+ return _map
43
+ result = dict()
44
+ if self.action_id is not None:
45
+ result['actionId'] = self.action_id
46
+ if self.action_name is not None:
47
+ result['actionName'] = self.action_name
48
+ if self.run_id is not None:
49
+ result['runId'] = self.run_id
50
+ return result
51
+
52
+ def from_dict(self, m):
53
+ """
54
+ Populate the model instance from a dictionary.
55
+
56
+ Nested dictionaries are recursively converted to model objects.
57
+
58
+ :param m: Dictionary containing model data
59
+ :type m: dict
60
+
61
+ :return: Self reference for method chaining
62
+ :rtype: ActionIndex
63
+
64
+ :raises TypeError: If input is not a dictionary type
65
+ :raises ValueError: If nested model conversion fails
66
+ """
67
+ m = m or dict()
68
+ if m.get('actionId') is not None:
69
+ self.action_id = m.get('actionId')
70
+ if m.get('actionName') is not None:
71
+ self.action_name = m.get('actionName')
72
+ if m.get('runId') is not None:
73
+ self.run_id = m.get('runId')
74
+ return self
@@ -0,0 +1,99 @@
1
+ """
2
+ Request entity for ActionListRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+ from baiducloud_python_sdk_cloudassistant.models.action_filter import ActionFilter
7
+
8
+
9
+ class ActionListRequest(AbstractModel):
10
+ """
11
+ Request entity for ActionListRequest operation.
12
+
13
+ This class encapsulates all parameters for the API request.
14
+ """
15
+
16
+ def __init__(self, page_no, page_size, action, locale=None, sort=None, ascending=None):
17
+ """
18
+ Initialize ActionListRequest request entity.
19
+
20
+ :param locale: locale parameter
21
+ :type locale: str (optional)
22
+
23
+ :param page_no: 页码
24
+ :type page_no: int (required)
25
+
26
+ :param page_size: 页大小
27
+ :type page_size: int (required)
28
+
29
+ :param sort: 排序字段,可选值createTime(命令创建时间)
30
+ :type sort: str (optional)
31
+
32
+ :param ascending: 是否升序,默认false
33
+ :type ascending: bool (optional)
34
+
35
+ :param action: action parameter
36
+ :type action: ActionFilter (required)
37
+ """
38
+ super().__init__()
39
+ self.locale = locale
40
+ self.page_no = page_no
41
+ self.page_size = page_size
42
+ self.sort = sort
43
+ self.ascending = ascending
44
+ self.action = action
45
+
46
+ def to_dict(self):
47
+ """
48
+ Convert the request entity to a dictionary representation.
49
+
50
+ Nested model objects are recursively converted to dictionaries.
51
+
52
+ :return: Dictionary representation of the request
53
+ :rtype: dict
54
+ """
55
+ _map = super().to_dict()
56
+ if _map is not None:
57
+ return _map
58
+ result = dict()
59
+ if self.page_no is not None:
60
+ result['pageNo'] = self.page_no
61
+ if self.page_size is not None:
62
+ result['pageSize'] = self.page_size
63
+ if self.sort is not None:
64
+ result['sort'] = self.sort
65
+ if self.ascending is not None:
66
+ result['ascending'] = self.ascending
67
+ if self.action is not None:
68
+ result['action'] = self.action.to_dict()
69
+ return result
70
+
71
+ def from_dict(self, m):
72
+ """
73
+ Populate the request entity from a dictionary.
74
+
75
+ Nested dictionaries are recursively converted to model objects.
76
+
77
+ :param m: Dictionary containing request data
78
+ :type m: dict
79
+
80
+ :return: Self reference for method chaining
81
+ :rtype: ActionListRequest
82
+
83
+ :raises TypeError: If input is not a dictionary or field type mismatch
84
+ :raises ValueError: If nested model conversion fails
85
+ """
86
+ m = m or dict()
87
+ if m.get('locale') is not None:
88
+ self.locale = m.get('locale')
89
+ if m.get('pageNo') is not None:
90
+ self.page_no = m.get('pageNo')
91
+ if m.get('pageSize') is not None:
92
+ self.page_size = m.get('pageSize')
93
+ if m.get('sort') is not None:
94
+ self.sort = m.get('sort')
95
+ if m.get('ascending') is not None:
96
+ self.ascending = m.get('ascending')
97
+ if m.get('action') is not None:
98
+ self.action = ActionFilter().from_dict(m.get('action'))
99
+ return self
@@ -0,0 +1,94 @@
1
+ """
2
+ Request entity for ActionListResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_cloudassistant.models.action_page import ActionPage
7
+
8
+
9
+ class ActionListResponse(BceResponse):
10
+ """
11
+ ActionListResponse
12
+ """
13
+
14
+ def __init__(self, request_id=None, code=None, message=None, success=None, result=None):
15
+ """
16
+ Initialize ActionListResponse response.
17
+
18
+ :param request_id: 请求id
19
+ :type request_id: str (optional)
20
+
21
+ :param code: 响应状态,成功为success
22
+ :type code: str (optional)
23
+
24
+ :param message: 错误信息
25
+ :type message: str (optional)
26
+
27
+ :param success: 请求是否处理成功
28
+ :type success: bool (optional)
29
+
30
+ :param result: result field
31
+ :type result: ActionPage (optional)
32
+ """
33
+ super().__init__()
34
+ self.request_id = request_id
35
+ self.code = code
36
+ self.message = message
37
+ self.success = success
38
+ self.result = result
39
+
40
+ def to_dict(self):
41
+ """
42
+ Convert the response instance to a dictionary representation.
43
+
44
+ Includes metadata from the parent BceResponse class.
45
+ Nested model objects are recursively converted to dictionaries.
46
+
47
+ :return: Dictionary representation of the response
48
+ :rtype: dict
49
+ """
50
+ _map = super().to_dict()
51
+ if _map is not None:
52
+ return _map
53
+ result = dict()
54
+ if self.metadata is not None:
55
+ result['metadata'] = dict(self.metadata)
56
+ if self.request_id is not None:
57
+ result['requestId'] = self.request_id
58
+ if self.code is not None:
59
+ result['code'] = self.code
60
+ if self.message is not None:
61
+ result['message'] = self.message
62
+ if self.success is not None:
63
+ result['success'] = self.success
64
+ if self.result is not None:
65
+ result['result'] = self.result.to_dict()
66
+ return result
67
+
68
+ def from_dict(self, m):
69
+ """
70
+ Populate the response instance from a dictionary.
71
+
72
+ Nested dictionaries are recursively converted to model objects.
73
+
74
+ :param m: Dictionary containing response data
75
+ :type m: dict
76
+
77
+ :return: Self reference for method chaining
78
+ :rtype: ActionListResponse
79
+
80
+ :raises TypeError: If input is not a dictionary or field type mismatch
81
+ :raises ValueError: If nested model conversion fails
82
+ """
83
+ m = m or dict()
84
+ if m.get('requestId') is not None:
85
+ self.request_id = m.get('requestId')
86
+ if m.get('code') is not None:
87
+ self.code = m.get('code')
88
+ if m.get('message') is not None:
89
+ self.message = m.get('message')
90
+ if m.get('success') is not None:
91
+ self.success = m.get('success')
92
+ if m.get('result') is not None:
93
+ self.result = ActionPage().from_dict(m.get('result'))
94
+ return self
@@ -0,0 +1,76 @@
1
+ """
2
+ Request entity for ActionLogRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class ActionLogRequest(AbstractModel):
9
+ """
10
+ Request entity for ActionLogRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, run_id, child_id, cursor):
16
+ """
17
+ Initialize ActionLogRequest request entity.
18
+
19
+ :param run_id: 执行ID
20
+ :type run_id: str (required)
21
+
22
+ :param child_id: 执行ID下某一子执行ID
23
+ :type child_id: str (required)
24
+
25
+ :param cursor: 首次请求为0,后续翻页,填写上一次请求返回的nextCursor
26
+ :type cursor: int (required)
27
+ """
28
+ super().__init__()
29
+ self.run_id = run_id
30
+ self.child_id = child_id
31
+ self.cursor = cursor
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.run_id is not None:
47
+ result['runId'] = self.run_id
48
+ if self.child_id is not None:
49
+ result['childId'] = self.child_id
50
+ if self.cursor is not None:
51
+ result['cursor'] = self.cursor
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: ActionLogRequest
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('runId') is not None:
71
+ self.run_id = m.get('runId')
72
+ if m.get('childId') is not None:
73
+ self.child_id = m.get('childId')
74
+ if m.get('cursor') is not None:
75
+ self.cursor = m.get('cursor')
76
+ return self
@@ -0,0 +1,94 @@
1
+ """
2
+ Request entity for ActionLogResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_cloudassistant.models.log_result import LogResult
7
+
8
+
9
+ class ActionLogResponse(BceResponse):
10
+ """
11
+ ActionLogResponse
12
+ """
13
+
14
+ def __init__(self, request_id=None, code=None, message=None, success=None, result=None):
15
+ """
16
+ Initialize ActionLogResponse response.
17
+
18
+ :param request_id: 请求id
19
+ :type request_id: str (optional)
20
+
21
+ :param code: 响应状态,成功为success
22
+ :type code: str (optional)
23
+
24
+ :param message: 错误信息
25
+ :type message: str (optional)
26
+
27
+ :param success: 请求是否处理成功
28
+ :type success: bool (optional)
29
+
30
+ :param result: result field
31
+ :type result: LogResult (optional)
32
+ """
33
+ super().__init__()
34
+ self.request_id = request_id
35
+ self.code = code
36
+ self.message = message
37
+ self.success = success
38
+ self.result = result
39
+
40
+ def to_dict(self):
41
+ """
42
+ Convert the response instance to a dictionary representation.
43
+
44
+ Includes metadata from the parent BceResponse class.
45
+ Nested model objects are recursively converted to dictionaries.
46
+
47
+ :return: Dictionary representation of the response
48
+ :rtype: dict
49
+ """
50
+ _map = super().to_dict()
51
+ if _map is not None:
52
+ return _map
53
+ result = dict()
54
+ if self.metadata is not None:
55
+ result['metadata'] = dict(self.metadata)
56
+ if self.request_id is not None:
57
+ result['requestId'] = self.request_id
58
+ if self.code is not None:
59
+ result['code'] = self.code
60
+ if self.message is not None:
61
+ result['message'] = self.message
62
+ if self.success is not None:
63
+ result['success'] = self.success
64
+ if self.result is not None:
65
+ result['result'] = self.result.to_dict()
66
+ return result
67
+
68
+ def from_dict(self, m):
69
+ """
70
+ Populate the response instance from a dictionary.
71
+
72
+ Nested dictionaries are recursively converted to model objects.
73
+
74
+ :param m: Dictionary containing response data
75
+ :type m: dict
76
+
77
+ :return: Self reference for method chaining
78
+ :rtype: ActionLogResponse
79
+
80
+ :raises TypeError: If input is not a dictionary or field type mismatch
81
+ :raises ValueError: If nested model conversion fails
82
+ """
83
+ m = m or dict()
84
+ if m.get('requestId') is not None:
85
+ self.request_id = m.get('requestId')
86
+ if m.get('code') is not None:
87
+ self.code = m.get('code')
88
+ if m.get('message') is not None:
89
+ self.message = m.get('message')
90
+ if m.get('success') is not None:
91
+ self.success = m.get('success')
92
+ if m.get('result') is not None:
93
+ self.result = LogResult().from_dict(m.get('result'))
94
+ return self
@@ -0,0 +1,84 @@
1
+ """
2
+ ActionPage information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+ from baiducloud_python_sdk_cloudassistant.models.action import Action
8
+
9
+
10
+ class ActionPage(AbstractModel):
11
+ """
12
+ ActionPage
13
+ """
14
+
15
+ def __init__(self, page_no=None, page_size=None, total_count=None, data=None):
16
+ """
17
+ Initialize ActionPage instance.
18
+
19
+ :param page_no: 页码
20
+ :type page_no: int (optional)
21
+
22
+ :param page_size: 页大小
23
+ :type page_size: int (optional)
24
+
25
+ :param total_count: 总数
26
+ :type total_count: int (optional)
27
+
28
+ :param data: 命令列表
29
+ :type data: List[Action] (optional)
30
+ """
31
+ super().__init__()
32
+ self.page_no = page_no
33
+ self.page_size = page_size
34
+ self.total_count = total_count
35
+ self.data = data
36
+
37
+ def to_dict(self):
38
+ """
39
+ Convert the model instance to a dictionary representation.
40
+
41
+ Nested model objects are recursively converted to dictionaries.
42
+
43
+ :return: Dictionary representation of the model
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.total_count is not None:
55
+ result['totalCount'] = self.total_count
56
+ if self.data is not None:
57
+ result['data'] = [i.to_dict() for i in self.data]
58
+ return result
59
+
60
+ def from_dict(self, m):
61
+ """
62
+ Populate the model instance from a dictionary.
63
+
64
+ Nested dictionaries are recursively converted to model objects.
65
+
66
+ :param m: Dictionary containing model data
67
+ :type m: dict
68
+
69
+ :return: Self reference for method chaining
70
+ :rtype: ActionPage
71
+
72
+ :raises TypeError: If input is not a dictionary type
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('totalCount') is not None:
81
+ self.total_count = m.get('totalCount')
82
+ if m.get('data') is not None:
83
+ self.data = [Action().from_dict(i) for i in m.get('data')]
84
+ return self