baiducloud-python-sdk-cprom 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 (95) hide show
  1. baiducloud_python_sdk_cprom/__init__.py +5 -0
  2. baiducloud_python_sdk_cprom/api/__init__.py +0 -0
  3. baiducloud_python_sdk_cprom/api/cprom_client.py +1197 -0
  4. baiducloud_python_sdk_cprom/models/__init__.py +90 -0
  5. baiducloud_python_sdk_cprom/models/bind_cluster_request.py +72 -0
  6. baiducloud_python_sdk_cprom/models/bind_cluster_response.py +61 -0
  7. baiducloud_python_sdk_cprom/models/callback_config.py +68 -0
  8. baiducloud_python_sdk_cprom/models/claim_alert_event_request.py +68 -0
  9. baiducloud_python_sdk_cprom/models/claim_alert_event_response.py +78 -0
  10. baiducloud_python_sdk_cprom/models/claim_condition.py +58 -0
  11. baiducloud_python_sdk_cprom/models/claimed_info.py +82 -0
  12. baiducloud_python_sdk_cprom/models/create_alert_request.py +142 -0
  13. baiducloud_python_sdk_cprom/models/create_alert_response.py +61 -0
  14. baiducloud_python_sdk_cprom/models/create_custom_scrape_task_request.py +72 -0
  15. baiducloud_python_sdk_cprom/models/create_custom_scrape_task_response.py +61 -0
  16. baiducloud_python_sdk_cprom/models/create_instance_request.py +117 -0
  17. baiducloud_python_sdk_cprom/models/create_notification_policy_request.py +149 -0
  18. baiducloud_python_sdk_cprom/models/create_notification_policy_response.py +61 -0
  19. baiducloud_python_sdk_cprom/models/create_podmonitor_request.py +98 -0
  20. baiducloud_python_sdk_cprom/models/create_podmonitor_response.py +61 -0
  21. baiducloud_python_sdk_cprom/models/create_service_monitor_request.py +98 -0
  22. baiducloud_python_sdk_cprom/models/create_service_monitor_response.py +61 -0
  23. baiducloud_python_sdk_cprom/models/delete_alert_request.py +64 -0
  24. baiducloud_python_sdk_cprom/models/delete_custom_scrape_task_request.py +70 -0
  25. baiducloud_python_sdk_cprom/models/delete_instance_request.py +64 -0
  26. baiducloud_python_sdk_cprom/models/delete_notification_policy_request.py +58 -0
  27. baiducloud_python_sdk_cprom/models/delete_podmonitor_request.py +70 -0
  28. baiducloud_python_sdk_cprom/models/delete_service_monitor_request.py +70 -0
  29. baiducloud_python_sdk_cprom/models/endpoint.py +82 -0
  30. baiducloud_python_sdk_cprom/models/escalate_param.py +78 -0
  31. baiducloud_python_sdk_cprom/models/event.py +216 -0
  32. baiducloud_python_sdk_cprom/models/event_claim_detail.py +74 -0
  33. baiducloud_python_sdk_cprom/models/generate_instance_token_request.py +72 -0
  34. baiducloud_python_sdk_cprom/models/get_alert_detail_request.py +64 -0
  35. baiducloud_python_sdk_cprom/models/get_alert_detail_response.py +136 -0
  36. baiducloud_python_sdk_cprom/models/get_alert_event_detail_request.py +58 -0
  37. baiducloud_python_sdk_cprom/models/get_alert_event_detail_response.py +218 -0
  38. baiducloud_python_sdk_cprom/models/get_cluster_bind_status_request.py +58 -0
  39. baiducloud_python_sdk_cprom/models/get_cluster_bind_status_response.py +77 -0
  40. baiducloud_python_sdk_cprom/models/get_notification_policy_request.py +58 -0
  41. baiducloud_python_sdk_cprom/models/get_notification_policy_response.py +167 -0
  42. baiducloud_python_sdk_cprom/models/label_selector.py +58 -0
  43. baiducloud_python_sdk_cprom/models/list_alert_events_request.py +159 -0
  44. baiducloud_python_sdk_cprom/models/list_alert_events_response.py +102 -0
  45. baiducloud_python_sdk_cprom/models/list_alert_templates_response.py +62 -0
  46. baiducloud_python_sdk_cprom/models/list_alerts_request.py +82 -0
  47. baiducloud_python_sdk_cprom/models/list_alerts_response.py +128 -0
  48. baiducloud_python_sdk_cprom/models/list_bindable_cloud_products_response.py +62 -0
  49. baiducloud_python_sdk_cprom/models/list_instances_request.py +82 -0
  50. baiducloud_python_sdk_cprom/models/list_instances_response.py +102 -0
  51. baiducloud_python_sdk_cprom/models/list_notification_policies_request.py +76 -0
  52. baiducloud_python_sdk_cprom/models/list_notification_policies_response.py +128 -0
  53. baiducloud_python_sdk_cprom/models/list_pod_monitors_request.py +110 -0
  54. baiducloud_python_sdk_cprom/models/list_pod_monitors_response.py +137 -0
  55. baiducloud_python_sdk_cprom/models/list_related_cloud_products_request.py +58 -0
  56. baiducloud_python_sdk_cprom/models/list_related_cloud_products_response.py +61 -0
  57. baiducloud_python_sdk_cprom/models/list_service_monitors_request.py +110 -0
  58. baiducloud_python_sdk_cprom/models/list_service_monitors_response.py +137 -0
  59. baiducloud_python_sdk_cprom/models/mentioned_user_config.py +66 -0
  60. baiducloud_python_sdk_cprom/models/monitor_instance.py +135 -0
  61. baiducloud_python_sdk_cprom/models/namespace_selector.py +58 -0
  62. baiducloud_python_sdk_cprom/models/notify_action.py +96 -0
  63. baiducloud_python_sdk_cprom/models/notify_rule.py +179 -0
  64. baiducloud_python_sdk_cprom/models/object_meta.py +66 -0
  65. baiducloud_python_sdk_cprom/models/pod_metrics_endpoint.py +74 -0
  66. baiducloud_python_sdk_cprom/models/pod_monitor.py +86 -0
  67. baiducloud_python_sdk_cprom/models/pod_monitor_item.py +92 -0
  68. baiducloud_python_sdk_cprom/models/pod_monitor_spec.py +80 -0
  69. baiducloud_python_sdk_cprom/models/remote_read_request.py +90 -0
  70. baiducloud_python_sdk_cprom/models/remote_read_response.py +127 -0
  71. baiducloud_python_sdk_cprom/models/remote_write_request.py +90 -0
  72. baiducloud_python_sdk_cprom/models/repeat_notify_config.py +90 -0
  73. baiducloud_python_sdk_cprom/models/rule_detail.py +142 -0
  74. baiducloud_python_sdk_cprom/models/rule_template.py +82 -0
  75. baiducloud_python_sdk_cprom/models/scope_detail.py +74 -0
  76. baiducloud_python_sdk_cprom/models/service_monitor.py +86 -0
  77. baiducloud_python_sdk_cprom/models/service_monitor_endpoint.py +74 -0
  78. baiducloud_python_sdk_cprom/models/service_monitor_item.py +92 -0
  79. baiducloud_python_sdk_cprom/models/service_monitor_spec.py +80 -0
  80. baiducloud_python_sdk_cprom/models/status.py +74 -0
  81. baiducloud_python_sdk_cprom/models/toggle_pod_monitor_service_request.py +70 -0
  82. baiducloud_python_sdk_cprom/models/toggle_service_monitor_service_request.py +70 -0
  83. baiducloud_python_sdk_cprom/models/update_alert_request.py +149 -0
  84. baiducloud_python_sdk_cprom/models/update_notification_policy_request.py +156 -0
  85. baiducloud_python_sdk_cprom/models/update_pod_monitor_request.py +87 -0
  86. baiducloud_python_sdk_cprom/models/update_related_cloud_products_request.py +66 -0
  87. baiducloud_python_sdk_cprom/models/update_service_monitor_request.py +87 -0
  88. baiducloud_python_sdk_cprom/models/user.py +90 -0
  89. baiducloud_python_sdk_cprom/models/user_group.py +74 -0
  90. baiducloud_python_sdk_cprom/models/webhook_detail.py +102 -0
  91. baiducloud_python_sdk_cprom-0.0.1.dist-info/LICENSE +177 -0
  92. baiducloud_python_sdk_cprom-0.0.1.dist-info/METADATA +76 -0
  93. baiducloud_python_sdk_cprom-0.0.1.dist-info/RECORD +95 -0
  94. baiducloud_python_sdk_cprom-0.0.1.dist-info/WHEEL +5 -0
  95. baiducloud_python_sdk_cprom-0.0.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,137 @@
1
+ """
2
+ Request entity for ListPodMonitorsResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_cprom.models.pod_monitor_item import PodMonitorItem
7
+
8
+
9
+ class ListPodMonitorsResponse(BceResponse):
10
+ """
11
+ ListPodMonitorsResponse
12
+ """
13
+
14
+ def __init__(
15
+ self,
16
+ order_by=None,
17
+ order=None,
18
+ keyword_type=None,
19
+ keyword=None,
20
+ page_no=None,
21
+ page_size=None,
22
+ total_count=None,
23
+ status=None,
24
+ items=None,
25
+ ):
26
+ """
27
+ Initialize ListPodMonitorsResponse response.
28
+
29
+ :param order_by: 排序字段
30
+ :type order_by: str (optional)
31
+
32
+ :param order: 排序方式
33
+ :type order: str (optional)
34
+
35
+ :param keyword_type: 筛选条件类型
36
+ :type keyword_type: str (optional)
37
+
38
+ :param keyword: 筛选关键字
39
+ :type keyword: str (optional)
40
+
41
+ :param page_no: 当前页码
42
+ :type page_no: int (optional)
43
+
44
+ :param page_size: 每页数量
45
+ :type page_size: int (optional)
46
+
47
+ :param total_count: 总数量
48
+ :type total_count: int (optional)
49
+
50
+ :param status: Pod Monitor 服务状态:running/terminated
51
+ :type status: str (optional)
52
+
53
+ :param items: Pod Monitor 列表
54
+ :type items: List[PodMonitorItem] (optional)
55
+ """
56
+ super().__init__()
57
+ self.order_by = order_by
58
+ self.order = order
59
+ self.keyword_type = keyword_type
60
+ self.keyword = keyword
61
+ self.page_no = page_no
62
+ self.page_size = page_size
63
+ self.total_count = total_count
64
+ self.status = status
65
+ self.items = items
66
+
67
+ def to_dict(self):
68
+ """
69
+ Convert the response instance to a dictionary representation.
70
+
71
+ Includes metadata from the parent BceResponse class.
72
+ Nested model objects are recursively converted to dictionaries.
73
+
74
+ :return: Dictionary representation of the response
75
+ :rtype: dict
76
+ """
77
+ _map = super().to_dict()
78
+ if _map is not None:
79
+ return _map
80
+ result = dict()
81
+ if self.metadata is not None:
82
+ result['metadata'] = dict(self.metadata)
83
+ if self.order_by is not None:
84
+ result['orderBy'] = self.order_by
85
+ if self.order is not None:
86
+ result['order'] = self.order
87
+ if self.keyword_type is not None:
88
+ result['keywordType'] = self.keyword_type
89
+ if self.keyword is not None:
90
+ result['keyword'] = self.keyword
91
+ if self.page_no is not None:
92
+ result['pageNo'] = self.page_no
93
+ if self.page_size is not None:
94
+ result['pageSize'] = self.page_size
95
+ if self.total_count is not None:
96
+ result['totalCount'] = self.total_count
97
+ if self.status is not None:
98
+ result['status'] = self.status
99
+ if self.items is not None:
100
+ result['items'] = [i.to_dict() for i in self.items]
101
+ return result
102
+
103
+ def from_dict(self, m):
104
+ """
105
+ Populate the response instance from a dictionary.
106
+
107
+ Nested dictionaries are recursively converted to model objects.
108
+
109
+ :param m: Dictionary containing response data
110
+ :type m: dict
111
+
112
+ :return: Self reference for method chaining
113
+ :rtype: ListPodMonitorsResponse
114
+
115
+ :raises TypeError: If input is not a dictionary or field type mismatch
116
+ :raises ValueError: If nested model conversion fails
117
+ """
118
+ m = m or dict()
119
+ if m.get('orderBy') is not None:
120
+ self.order_by = m.get('orderBy')
121
+ if m.get('order') is not None:
122
+ self.order = m.get('order')
123
+ if m.get('keywordType') is not None:
124
+ self.keyword_type = m.get('keywordType')
125
+ if m.get('keyword') is not None:
126
+ self.keyword = m.get('keyword')
127
+ if m.get('pageNo') is not None:
128
+ self.page_no = m.get('pageNo')
129
+ if m.get('pageSize') is not None:
130
+ self.page_size = m.get('pageSize')
131
+ if m.get('totalCount') is not None:
132
+ self.total_count = m.get('totalCount')
133
+ if m.get('status') is not None:
134
+ self.status = m.get('status')
135
+ if m.get('items') is not None:
136
+ self.items = [PodMonitorItem().from_dict(i) for i in m.get('items')]
137
+ return self
@@ -0,0 +1,58 @@
1
+ """
2
+ Request entity for ListRelatedCloudProductsRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class ListRelatedCloudProductsRequest(AbstractModel):
9
+ """
10
+ Request entity for ListRelatedCloudProductsRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(self, instance_id):
16
+ """
17
+ Initialize ListRelatedCloudProductsRequest request entity.
18
+
19
+ :param instance_id: instance_id parameter
20
+ :type instance_id: str (required)
21
+ """
22
+ super().__init__()
23
+ self.instance_id = instance_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
+ 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: ListRelatedCloudProductsRequest
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('instanceId') is not None:
57
+ self.instance_id = m.get('instanceId')
58
+ return self
@@ -0,0 +1,61 @@
1
+ """
2
+ Request entity for ListRelatedCloudProductsResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+
7
+
8
+ class ListRelatedCloudProductsResponse(BceResponse):
9
+ """
10
+ ListRelatedCloudProductsResponse
11
+ """
12
+
13
+ def __init__(self, scopes=None):
14
+ """
15
+ Initialize ListRelatedCloudProductsResponse response.
16
+
17
+ :param scopes: 已关联的云产品列表,未关联时返回空数组 `[]`
18
+ :type scopes: List[str] (optional)
19
+ """
20
+ super().__init__()
21
+ self.scopes = scopes
22
+
23
+ def to_dict(self):
24
+ """
25
+ Convert the response instance to a dictionary representation.
26
+
27
+ Includes metadata from the parent BceResponse class.
28
+ Nested model objects are recursively converted to dictionaries.
29
+
30
+ :return: Dictionary representation of the response
31
+ :rtype: dict
32
+ """
33
+ _map = super().to_dict()
34
+ if _map is not None:
35
+ return _map
36
+ result = dict()
37
+ if self.metadata is not None:
38
+ result['metadata'] = dict(self.metadata)
39
+ if self.scopes is not None:
40
+ result['scopes'] = self.scopes
41
+ return result
42
+
43
+ def from_dict(self, m):
44
+ """
45
+ Populate the response instance from a dictionary.
46
+
47
+ Nested dictionaries are recursively converted to model objects.
48
+
49
+ :param m: Dictionary containing response data
50
+ :type m: dict
51
+
52
+ :return: Self reference for method chaining
53
+ :rtype: ListRelatedCloudProductsResponse
54
+
55
+ :raises TypeError: If input is not a dictionary or field type mismatch
56
+ :raises ValueError: If nested model conversion fails
57
+ """
58
+ m = m or dict()
59
+ if m.get('scopes') is not None:
60
+ self.scopes = m.get('scopes')
61
+ return self
@@ -0,0 +1,110 @@
1
+ """
2
+ Request entity for ListServiceMonitorsRequest information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class ListServiceMonitorsRequest(AbstractModel):
9
+ """
10
+ Request entity for ListServiceMonitorsRequest operation.
11
+
12
+ This class encapsulates all parameters for the API request.
13
+ """
14
+
15
+ def __init__(
16
+ self,
17
+ instance_id,
18
+ agent_id,
19
+ page_no=None,
20
+ page_size=None,
21
+ keyword_type=None,
22
+ keyword=None,
23
+ order_by=None,
24
+ order=None,
25
+ ):
26
+ """
27
+ Initialize ListServiceMonitorsRequest request entity.
28
+
29
+ :param instance_id: instance_id parameter
30
+ :type instance_id: str (required)
31
+
32
+ :param agent_id: agent_id parameter
33
+ :type agent_id: str (required)
34
+
35
+ :param page_no: page_no parameter
36
+ :type page_no: int (optional)
37
+
38
+ :param page_size: page_size parameter
39
+ :type page_size: int (optional)
40
+
41
+ :param keyword_type: keyword_type parameter
42
+ :type keyword_type: str (optional)
43
+
44
+ :param keyword: keyword parameter
45
+ :type keyword: str (optional)
46
+
47
+ :param order_by: order_by parameter
48
+ :type order_by: str (optional)
49
+
50
+ :param order: order parameter
51
+ :type order: str (optional)
52
+ """
53
+ super().__init__()
54
+ self.instance_id = instance_id
55
+ self.agent_id = agent_id
56
+ self.page_no = page_no
57
+ self.page_size = page_size
58
+ self.keyword_type = keyword_type
59
+ self.keyword = keyword
60
+ self.order_by = order_by
61
+ self.order = order
62
+
63
+ def to_dict(self):
64
+ """
65
+ Convert the request entity to a dictionary representation.
66
+
67
+ Nested model objects are recursively converted to dictionaries.
68
+
69
+ :return: Dictionary representation of the request
70
+ :rtype: dict
71
+ """
72
+ _map = super().to_dict()
73
+ if _map is not None:
74
+ return _map
75
+ result = dict()
76
+ return result
77
+
78
+ def from_dict(self, m):
79
+ """
80
+ Populate the request entity from a dictionary.
81
+
82
+ Nested dictionaries are recursively converted to model objects.
83
+
84
+ :param m: Dictionary containing request data
85
+ :type m: dict
86
+
87
+ :return: Self reference for method chaining
88
+ :rtype: ListServiceMonitorsRequest
89
+
90
+ :raises TypeError: If input is not a dictionary or field type mismatch
91
+ :raises ValueError: If nested model conversion fails
92
+ """
93
+ m = m or dict()
94
+ if m.get('instanceId') is not None:
95
+ self.instance_id = m.get('instanceId')
96
+ if m.get('agentId') is not None:
97
+ self.agent_id = m.get('agentId')
98
+ if m.get('pageNo') is not None:
99
+ self.page_no = m.get('pageNo')
100
+ if m.get('pageSize') is not None:
101
+ self.page_size = m.get('pageSize')
102
+ if m.get('keywordType') is not None:
103
+ self.keyword_type = m.get('keywordType')
104
+ if m.get('keyword') is not None:
105
+ self.keyword = m.get('keyword')
106
+ if m.get('orderBy') is not None:
107
+ self.order_by = m.get('orderBy')
108
+ if m.get('order') is not None:
109
+ self.order = m.get('order')
110
+ return self
@@ -0,0 +1,137 @@
1
+ """
2
+ Request entity for ListServiceMonitorsResponse information.
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.bce_response import BceResponse
6
+ from baiducloud_python_sdk_cprom.models.service_monitor_item import ServiceMonitorItem
7
+
8
+
9
+ class ListServiceMonitorsResponse(BceResponse):
10
+ """
11
+ ListServiceMonitorsResponse
12
+ """
13
+
14
+ def __init__(
15
+ self,
16
+ order_by=None,
17
+ order=None,
18
+ keyword_type=None,
19
+ keyword=None,
20
+ page_no=None,
21
+ page_size=None,
22
+ total_count=None,
23
+ status=None,
24
+ items=None,
25
+ ):
26
+ """
27
+ Initialize ListServiceMonitorsResponse response.
28
+
29
+ :param order_by: 排序字段
30
+ :type order_by: str (optional)
31
+
32
+ :param order: 排序方式
33
+ :type order: str (optional)
34
+
35
+ :param keyword_type: 筛选条件类型
36
+ :type keyword_type: str (optional)
37
+
38
+ :param keyword: 筛选关键字
39
+ :type keyword: str (optional)
40
+
41
+ :param page_no: 当前页码
42
+ :type page_no: int (optional)
43
+
44
+ :param page_size: 每页数量
45
+ :type page_size: int (optional)
46
+
47
+ :param total_count: 总数量
48
+ :type total_count: int (optional)
49
+
50
+ :param status: Service Monitor 服务状态:running/terminated
51
+ :type status: str (optional)
52
+
53
+ :param items: Service Monitor 列表
54
+ :type items: List[ServiceMonitorItem] (optional)
55
+ """
56
+ super().__init__()
57
+ self.order_by = order_by
58
+ self.order = order
59
+ self.keyword_type = keyword_type
60
+ self.keyword = keyword
61
+ self.page_no = page_no
62
+ self.page_size = page_size
63
+ self.total_count = total_count
64
+ self.status = status
65
+ self.items = items
66
+
67
+ def to_dict(self):
68
+ """
69
+ Convert the response instance to a dictionary representation.
70
+
71
+ Includes metadata from the parent BceResponse class.
72
+ Nested model objects are recursively converted to dictionaries.
73
+
74
+ :return: Dictionary representation of the response
75
+ :rtype: dict
76
+ """
77
+ _map = super().to_dict()
78
+ if _map is not None:
79
+ return _map
80
+ result = dict()
81
+ if self.metadata is not None:
82
+ result['metadata'] = dict(self.metadata)
83
+ if self.order_by is not None:
84
+ result['orderBy'] = self.order_by
85
+ if self.order is not None:
86
+ result['order'] = self.order
87
+ if self.keyword_type is not None:
88
+ result['keywordType'] = self.keyword_type
89
+ if self.keyword is not None:
90
+ result['keyword'] = self.keyword
91
+ if self.page_no is not None:
92
+ result['pageNo'] = self.page_no
93
+ if self.page_size is not None:
94
+ result['pageSize'] = self.page_size
95
+ if self.total_count is not None:
96
+ result['totalCount'] = self.total_count
97
+ if self.status is not None:
98
+ result['status'] = self.status
99
+ if self.items is not None:
100
+ result['items'] = [i.to_dict() for i in self.items]
101
+ return result
102
+
103
+ def from_dict(self, m):
104
+ """
105
+ Populate the response instance from a dictionary.
106
+
107
+ Nested dictionaries are recursively converted to model objects.
108
+
109
+ :param m: Dictionary containing response data
110
+ :type m: dict
111
+
112
+ :return: Self reference for method chaining
113
+ :rtype: ListServiceMonitorsResponse
114
+
115
+ :raises TypeError: If input is not a dictionary or field type mismatch
116
+ :raises ValueError: If nested model conversion fails
117
+ """
118
+ m = m or dict()
119
+ if m.get('orderBy') is not None:
120
+ self.order_by = m.get('orderBy')
121
+ if m.get('order') is not None:
122
+ self.order = m.get('order')
123
+ if m.get('keywordType') is not None:
124
+ self.keyword_type = m.get('keywordType')
125
+ if m.get('keyword') is not None:
126
+ self.keyword = m.get('keyword')
127
+ if m.get('pageNo') is not None:
128
+ self.page_no = m.get('pageNo')
129
+ if m.get('pageSize') is not None:
130
+ self.page_size = m.get('pageSize')
131
+ if m.get('totalCount') is not None:
132
+ self.total_count = m.get('totalCount')
133
+ if m.get('status') is not None:
134
+ self.status = m.get('status')
135
+ if m.get('items') is not None:
136
+ self.items = [ServiceMonitorItem().from_dict(i) for i in m.get('items')]
137
+ return self
@@ -0,0 +1,66 @@
1
+ """
2
+ MentionedUserConfig information
3
+ """
4
+
5
+ from baiducloud_python_sdk_core.abstract_model import AbstractModel
6
+
7
+
8
+ class MentionedUserConfig(AbstractModel):
9
+ """
10
+ MentionedUserConfig
11
+ """
12
+
13
+ def __init__(self, at_all=None, user_ids=None):
14
+ """
15
+ Initialize MentionedUserConfig instance.
16
+
17
+ :param at_all: 是否 @ 所有人
18
+ :type at_all: bool (optional)
19
+
20
+ :param user_ids: 需要 @ 的用户 ID 列表
21
+ :type user_ids: List[str] (optional)
22
+ """
23
+ super().__init__()
24
+ self.at_all = at_all
25
+ self.user_ids = user_ids
26
+
27
+ def to_dict(self):
28
+ """
29
+ Convert the model instance to a dictionary representation.
30
+
31
+ Nested model objects are recursively converted to dictionaries.
32
+
33
+ :return: Dictionary representation of the model
34
+ :rtype: dict
35
+ """
36
+ _map = super().to_dict()
37
+ if _map is not None:
38
+ return _map
39
+ result = dict()
40
+ if self.at_all is not None:
41
+ result['atAll'] = self.at_all
42
+ if self.user_ids is not None:
43
+ result['userIds'] = self.user_ids
44
+ return result
45
+
46
+ def from_dict(self, m):
47
+ """
48
+ Populate the model instance from a dictionary.
49
+
50
+ Nested dictionaries are recursively converted to model objects.
51
+
52
+ :param m: Dictionary containing model data
53
+ :type m: dict
54
+
55
+ :return: Self reference for method chaining
56
+ :rtype: MentionedUserConfig
57
+
58
+ :raises TypeError: If input is not a dictionary type
59
+ :raises ValueError: If nested model conversion fails
60
+ """
61
+ m = m or dict()
62
+ if m.get('atAll') is not None:
63
+ self.at_all = m.get('atAll')
64
+ if m.get('userIds') is not None:
65
+ self.user_ids = m.get('userIds')
66
+ return self