volcengine-python-sdk 4.0.23__py2.py3-none-any.whl → 4.0.24__py2.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.

Potentially problematic release.


This version of volcengine-python-sdk might be problematic. Click here for more details.

Files changed (208) hide show
  1. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/METADATA +1 -1
  2. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/RECORD +208 -37
  3. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/top_level.txt +3 -0
  4. volcenginesdkcore/api_client.py +1 -1
  5. volcenginesdkcore/configuration.py +1 -1
  6. volcenginesdkdirectconnect/models/create_direct_connect_gateway_request.py +27 -1
  7. volcenginesdkdirectconnect/models/delete_direct_connect_traffic_qos_queue_request.py +16 -16
  8. volcenginesdkdirectconnect/models/describe_direct_connect_gateway_attributes_response.py +27 -1
  9. volcenginesdkdirectconnect/models/models.py +192 -192
  10. volcenginesdkdms20250101/__init__.py +85 -0
  11. volcenginesdkdms20250101/api/__init__.py +6 -0
  12. volcenginesdkdms20250101/api/dms20250101_api.py +1974 -0
  13. volcenginesdkdms20250101/models/__init__.py +81 -0
  14. volcenginesdkdms20250101/models/address_access_config_for_create_address_input.py +149 -0
  15. volcenginesdkdms20250101/models/address_access_config_for_get_address_output.py +149 -0
  16. volcenginesdkdms20250101/models/address_access_config_for_list_addresses_output.py +149 -0
  17. volcenginesdkdms20250101/models/create_address_request.py +211 -0
  18. volcenginesdkdms20250101/models/create_address_response.py +149 -0
  19. volcenginesdkdms20250101/models/create_agent_group_request.py +226 -0
  20. volcenginesdkdms20250101/models/create_agent_group_response.py +149 -0
  21. volcenginesdkdms20250101/models/create_agent_request.py +185 -0
  22. volcenginesdkdms20250101/models/create_agent_response.py +149 -0
  23. volcenginesdkdms20250101/models/create_task_request.py +264 -0
  24. volcenginesdkdms20250101/models/create_task_response.py +149 -0
  25. volcenginesdkdms20250101/models/delete_address_request.py +124 -0
  26. volcenginesdkdms20250101/models/delete_address_response.py +149 -0
  27. volcenginesdkdms20250101/models/delete_agent_group_request.py +124 -0
  28. volcenginesdkdms20250101/models/delete_agent_group_response.py +149 -0
  29. volcenginesdkdms20250101/models/delete_agent_request.py +124 -0
  30. volcenginesdkdms20250101/models/delete_agent_response.py +149 -0
  31. volcenginesdkdms20250101/models/delete_task_request.py +124 -0
  32. volcenginesdkdms20250101/models/delete_task_response.py +149 -0
  33. volcenginesdkdms20250101/models/get_address_request.py +124 -0
  34. volcenginesdkdms20250101/models/get_address_response.py +305 -0
  35. volcenginesdkdms20250101/models/get_agent_group_request.py +124 -0
  36. volcenginesdkdms20250101/models/get_agent_group_response.py +305 -0
  37. volcenginesdkdms20250101/models/get_agent_group_status_request.py +124 -0
  38. volcenginesdkdms20250101/models/get_agent_group_status_response.py +149 -0
  39. volcenginesdkdms20250101/models/get_agent_request.py +124 -0
  40. volcenginesdkdms20250101/models/get_agent_response.py +331 -0
  41. volcenginesdkdms20250101/models/get_real_time_statistics_request.py +150 -0
  42. volcenginesdkdms20250101/models/get_real_time_statistics_response.py +487 -0
  43. volcenginesdkdms20250101/models/get_task_request.py +124 -0
  44. volcenginesdkdms20250101/models/get_task_response.py +409 -0
  45. volcenginesdkdms20250101/models/item_list_for_list_addresses_output.py +305 -0
  46. volcenginesdkdms20250101/models/item_list_for_list_agent_groups_output.py +279 -0
  47. volcenginesdkdms20250101/models/item_list_for_list_agents_output.py +331 -0
  48. volcenginesdkdms20250101/models/item_list_for_list_tasks_output.py +409 -0
  49. volcenginesdkdms20250101/models/list_addresses_request.py +203 -0
  50. volcenginesdkdms20250101/models/list_addresses_response.py +175 -0
  51. volcenginesdkdms20250101/models/list_agent_groups_request.py +204 -0
  52. volcenginesdkdms20250101/models/list_agent_groups_response.py +175 -0
  53. volcenginesdkdms20250101/models/list_agents_request.py +204 -0
  54. volcenginesdkdms20250101/models/list_agents_response.py +175 -0
  55. volcenginesdkdms20250101/models/list_config_for_create_task_input.py +227 -0
  56. volcenginesdkdms20250101/models/list_config_for_get_task_output.py +227 -0
  57. volcenginesdkdms20250101/models/list_config_for_list_tasks_output.py +227 -0
  58. volcenginesdkdms20250101/models/list_include_bucket_keys_for_create_task_input.py +201 -0
  59. volcenginesdkdms20250101/models/list_include_bucket_keys_for_get_task_output.py +201 -0
  60. volcenginesdkdms20250101/models/list_include_bucket_keys_for_list_tasks_output.py +201 -0
  61. volcenginesdkdms20250101/models/list_tasks_request.py +204 -0
  62. volcenginesdkdms20250101/models/list_tasks_response.py +175 -0
  63. volcenginesdkdms20250101/models/local_fs_for_create_address_input.py +123 -0
  64. volcenginesdkdms20250101/models/local_fs_for_get_address_output.py +123 -0
  65. volcenginesdkdms20250101/models/local_fs_for_list_addresses_output.py +123 -0
  66. volcenginesdkdms20250101/models/retry_failed_task_request.py +124 -0
  67. volcenginesdkdms20250101/models/retry_failed_task_response.py +149 -0
  68. volcenginesdkdms20250101/models/task_config_for_create_task_input.py +215 -0
  69. volcenginesdkdms20250101/models/task_config_for_get_task_output.py +201 -0
  70. volcenginesdkdms20250101/models/task_config_for_list_tasks_output.py +201 -0
  71. volcenginesdkdms20250101/models/task_context_for_get_task_output.py +149 -0
  72. volcenginesdkdms20250101/models/task_context_for_list_tasks_output.py +149 -0
  73. volcenginesdkdms20250101/models/tos_for_create_address_input.py +201 -0
  74. volcenginesdkdms20250101/models/tos_for_get_address_output.py +201 -0
  75. volcenginesdkdms20250101/models/tos_for_list_addresses_output.py +201 -0
  76. volcenginesdkdms20250101/models/update_task_request.py +183 -0
  77. volcenginesdkdms20250101/models/update_task_response.py +149 -0
  78. volcenginesdkdts20180101/__init__.py +32 -0
  79. volcenginesdkdts20180101/api/__init__.py +6 -0
  80. volcenginesdkdts20180101/api/dts20180101_api.py +422 -0
  81. volcenginesdkdts20180101/models/__init__.py +28 -0
  82. volcenginesdkdts20180101/models/data_for_list_vpc_output.py +149 -0
  83. volcenginesdkdts20180101/models/get_async_pre_check_result_request.py +124 -0
  84. volcenginesdkdts20180101/models/get_async_pre_check_result_response.py +201 -0
  85. volcenginesdkdts20180101/models/list_vpc_request.py +95 -0
  86. volcenginesdkdts20180101/models/list_vpc_response.py +149 -0
  87. volcenginesdkdts20180101/models/list_vpc_subnets_request.py +124 -0
  88. volcenginesdkdts20180101/models/list_vpc_subnets_response.py +149 -0
  89. volcenginesdkdts20180101/models/pre_check_async_request.py +124 -0
  90. volcenginesdkdts20180101/models/pre_check_async_response.py +123 -0
  91. volcenginesdkdts20180101/models/pre_check_for_get_async_pre_check_result_output.py +227 -0
  92. volcenginesdkdts20180101/models/vpc_subnet_info_for_list_vpc_subnets_output.py +149 -0
  93. volcenginesdkna/__init__.py +33 -0
  94. volcenginesdkna/api/__init__.py +6 -0
  95. volcenginesdkna/api/na_api.py +422 -0
  96. volcenginesdkna/models/__init__.py +29 -0
  97. volcenginesdkna/models/create_diagnosis_instance_request.py +178 -0
  98. volcenginesdkna/models/create_diagnosis_instance_response.py +149 -0
  99. volcenginesdkna/models/describe_diagnosis_instance_detail_request.py +124 -0
  100. volcenginesdkna/models/describe_diagnosis_instance_detail_response.py +383 -0
  101. volcenginesdkna/models/describe_diagnosis_instances_request.py +149 -0
  102. volcenginesdkna/models/describe_diagnosis_instances_response.py +227 -0
  103. volcenginesdkna/models/describe_history_diagnosis_request.py +124 -0
  104. volcenginesdkna/models/describe_history_diagnosis_response.py +123 -0
  105. volcenginesdkna/models/diagnosis_category_item_for_describe_diagnosis_instance_detail_output.py +149 -0
  106. volcenginesdkna/models/diagnosis_instance_for_describe_diagnosis_instances_output.py +357 -0
  107. volcenginesdkna/models/diagnosis_item_for_describe_diagnosis_instance_detail_output.py +201 -0
  108. volcenginesdkna/models/history_diagnosis_for_describe_history_diagnosis_output.py +175 -0
  109. volcenginesdkvefaas/models/create_function_request.py +53 -1
  110. volcenginesdkvefaas/models/create_function_response.py +53 -1
  111. volcenginesdkvefaas/models/get_function_response.py +53 -1
  112. volcenginesdkvefaas/models/item_for_list_functions_output.py +27 -1
  113. volcenginesdkvefaas/models/update_function_request.py +53 -1
  114. volcenginesdkvefaas/models/update_function_response.py +27 -1
  115. volcenginesdkvmp/__init__.py +72 -0
  116. volcenginesdkvmp/api/vmp_api.py +1339 -78
  117. volcenginesdkvmp/models/__init__.py +72 -0
  118. volcenginesdkvmp/models/cal_charge_item_list_for_get_workspace_output.py +149 -0
  119. volcenginesdkvmp/models/cal_charge_item_list_for_list_workspace_instance_types_output.py +149 -0
  120. volcenginesdkvmp/models/calculate_price_param_for_get_workspace_output.py +175 -0
  121. volcenginesdkvmp/models/calculate_price_param_for_list_workspace_instance_types_output.py +175 -0
  122. volcenginesdkvmp/models/conditions_for_list_integration_tasks_output.py +175 -0
  123. volcenginesdkvmp/models/create_alerting_rule_request.py +53 -1
  124. volcenginesdkvmp/models/create_integration_task_request.py +334 -0
  125. volcenginesdkvmp/models/create_integration_task_response.py +123 -0
  126. volcenginesdkvmp/models/create_rule_file_request.py +27 -1
  127. volcenginesdkvmp/models/create_silence_policy_request.py +202 -0
  128. volcenginesdkvmp/models/create_silence_policy_response.py +123 -0
  129. volcenginesdkvmp/models/create_workspace_request.py +27 -1
  130. volcenginesdkvmp/models/data_for_delete_silence_policies_output.py +95 -0
  131. volcenginesdkvmp/models/data_for_disable_integration_tasks_output.py +95 -0
  132. volcenginesdkvmp/models/data_for_disable_silence_policies_output.py +95 -0
  133. volcenginesdkvmp/models/data_for_enable_integration_tasks_output.py +95 -0
  134. volcenginesdkvmp/models/data_for_enable_silence_policies_output.py +95 -0
  135. volcenginesdkvmp/models/delete_integration_task_request.py +124 -0
  136. volcenginesdkvmp/models/delete_integration_task_response.py +123 -0
  137. volcenginesdkvmp/models/delete_silence_policies_request.py +123 -0
  138. volcenginesdkvmp/models/delete_silence_policies_response.py +149 -0
  139. volcenginesdkvmp/models/disable_integration_tasks_request.py +123 -0
  140. volcenginesdkvmp/models/disable_integration_tasks_response.py +149 -0
  141. volcenginesdkvmp/models/disable_silence_policies_request.py +123 -0
  142. volcenginesdkvmp/models/disable_silence_policies_response.py +149 -0
  143. volcenginesdkvmp/models/enable_integration_tasks_request.py +123 -0
  144. volcenginesdkvmp/models/enable_integration_tasks_response.py +149 -0
  145. volcenginesdkvmp/models/enable_silence_policies_request.py +123 -0
  146. volcenginesdkvmp/models/enable_silence_policies_response.py +149 -0
  147. volcenginesdkvmp/models/error_for_delete_silence_policies_output.py +175 -0
  148. volcenginesdkvmp/models/error_for_disable_integration_tasks_output.py +175 -0
  149. volcenginesdkvmp/models/error_for_disable_silence_policies_output.py +175 -0
  150. volcenginesdkvmp/models/error_for_enable_integration_tasks_output.py +175 -0
  151. volcenginesdkvmp/models/error_for_enable_silence_policies_output.py +175 -0
  152. volcenginesdkvmp/models/filter_for_list_silence_policies_input.py +201 -0
  153. volcenginesdkvmp/models/filters_for_list_integration_tasks_input.py +279 -0
  154. volcenginesdkvmp/models/get_alerting_rule_response.py +53 -1
  155. volcenginesdkvmp/models/get_integration_task_request.py +124 -0
  156. volcenginesdkvmp/models/get_integration_task_response.py +409 -0
  157. volcenginesdkvmp/models/get_rule_file_response.py +29 -3
  158. volcenginesdkvmp/models/get_workspace_response.py +105 -1
  159. volcenginesdkvmp/models/instance_type_for_get_workspace_output.py +27 -1
  160. volcenginesdkvmp/models/item_for_list_alerting_rules_output.py +53 -1
  161. volcenginesdkvmp/models/item_for_list_integration_tasks_output.py +409 -0
  162. volcenginesdkvmp/models/item_for_list_rule_files_output.py +29 -3
  163. volcenginesdkvmp/models/item_for_list_silence_policies_output.py +357 -0
  164. volcenginesdkvmp/models/item_for_list_workspace_instance_types_output.py +27 -1
  165. volcenginesdkvmp/models/item_for_list_workspaces_output.py +131 -1
  166. volcenginesdkvmp/models/list_alerting_rules_request.py +55 -3
  167. volcenginesdkvmp/models/list_integration_tasks_request.py +227 -0
  168. volcenginesdkvmp/models/list_integration_tasks_response.py +149 -0
  169. volcenginesdkvmp/models/list_silence_policies_request.py +227 -0
  170. volcenginesdkvmp/models/list_silence_policies_response.py +149 -0
  171. volcenginesdkvmp/models/matcher_for_create_silence_policy_input.py +175 -0
  172. volcenginesdkvmp/models/matcher_for_list_silence_policies_output.py +175 -0
  173. volcenginesdkvmp/models/matcher_for_update_silence_policy_input.py +175 -0
  174. volcenginesdkvmp/models/metric_label_matcher_for_create_silence_policy_input.py +123 -0
  175. volcenginesdkvmp/models/metric_label_matcher_for_list_silence_policies_output.py +123 -0
  176. volcenginesdkvmp/models/metric_label_matcher_for_update_silence_policy_input.py +123 -0
  177. volcenginesdkvmp/models/periodic_date_for_create_silence_policy_input.py +175 -0
  178. volcenginesdkvmp/models/periodic_date_for_list_silence_policies_output.py +175 -0
  179. volcenginesdkvmp/models/periodic_date_for_update_silence_policy_input.py +175 -0
  180. volcenginesdkvmp/models/quota_for_get_workspace_output.py +53 -1
  181. volcenginesdkvmp/models/quota_for_update_workspace_input.py +53 -1
  182. volcenginesdkvmp/models/tag_filter_for_list_alerting_rules_input.py +149 -0
  183. volcenginesdkvmp/models/tag_filter_for_list_integration_tasks_input.py +149 -0
  184. volcenginesdkvmp/models/tag_for_create_alerting_rule_input.py +149 -0
  185. volcenginesdkvmp/models/tag_for_create_integration_task_input.py +149 -0
  186. volcenginesdkvmp/models/tag_for_get_alerting_rule_output.py +149 -0
  187. volcenginesdkvmp/models/tag_for_get_integration_task_output.py +149 -0
  188. volcenginesdkvmp/models/tag_for_list_alerting_rules_output.py +149 -0
  189. volcenginesdkvmp/models/tag_for_list_integration_tasks_output.py +149 -0
  190. volcenginesdkvmp/models/time_range_matcher_for_create_silence_policy_input.py +175 -0
  191. volcenginesdkvmp/models/time_range_matcher_for_list_silence_policies_output.py +175 -0
  192. volcenginesdkvmp/models/time_range_matcher_for_update_silence_policy_input.py +175 -0
  193. volcenginesdkvmp/models/unsuccessful_item_for_delete_silence_policies_output.py +149 -0
  194. volcenginesdkvmp/models/unsuccessful_item_for_disable_integration_tasks_output.py +149 -0
  195. volcenginesdkvmp/models/unsuccessful_item_for_disable_silence_policies_output.py +149 -0
  196. volcenginesdkvmp/models/unsuccessful_item_for_enable_integration_tasks_output.py +149 -0
  197. volcenginesdkvmp/models/unsuccessful_item_for_enable_silence_policies_output.py +149 -0
  198. volcenginesdkvmp/models/update_integration_task_request.py +202 -0
  199. volcenginesdkvmp/models/update_integration_task_response.py +123 -0
  200. volcenginesdkvmp/models/update_rule_file_request.py +27 -1
  201. volcenginesdkvmp/models/update_silence_policy_request.py +228 -0
  202. volcenginesdkvmp/models/update_silence_policy_response.py +123 -0
  203. volcenginesdkvmp/models/update_workspace_request.py +131 -1
  204. volcenginesdkvmp/models/vke_cluster_info_for_get_integration_task_output.py +149 -0
  205. volcenginesdkvmp/models/vke_cluster_info_for_list_integration_tasks_output.py +149 -0
  206. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/WHEEL +0 -0
  207. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/LICENSE.txt +0 -0
  208. {volcengine_python_sdk-4.0.23.dist-info → volcengine_python_sdk-4.0.24.dist-info}/licenses/NOTICE.md +0 -0
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ vmp
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from volcenginesdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateIntegrationTaskResponse(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'id': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'id': 'Id'
41
+ }
42
+
43
+ def __init__(self, id=None, _configuration=None): # noqa: E501
44
+ """UpdateIntegrationTaskResponse - a model defined in Swagger""" # noqa: E501
45
+ if _configuration is None:
46
+ _configuration = Configuration()
47
+ self._configuration = _configuration
48
+
49
+ self._id = None
50
+ self.discriminator = None
51
+
52
+ if id is not None:
53
+ self.id = id
54
+
55
+ @property
56
+ def id(self):
57
+ """Gets the id of this UpdateIntegrationTaskResponse. # noqa: E501
58
+
59
+
60
+ :return: The id of this UpdateIntegrationTaskResponse. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._id
64
+
65
+ @id.setter
66
+ def id(self, id):
67
+ """Sets the id of this UpdateIntegrationTaskResponse.
68
+
69
+
70
+ :param id: The id of this UpdateIntegrationTaskResponse. # noqa: E501
71
+ :type: str
72
+ """
73
+
74
+ self._id = id
75
+
76
+ def to_dict(self):
77
+ """Returns the model properties as a dict"""
78
+ result = {}
79
+
80
+ for attr, _ in six.iteritems(self.swagger_types):
81
+ value = getattr(self, attr)
82
+ if isinstance(value, list):
83
+ result[attr] = list(map(
84
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85
+ value
86
+ ))
87
+ elif hasattr(value, "to_dict"):
88
+ result[attr] = value.to_dict()
89
+ elif isinstance(value, dict):
90
+ result[attr] = dict(map(
91
+ lambda item: (item[0], item[1].to_dict())
92
+ if hasattr(item[1], "to_dict") else item,
93
+ value.items()
94
+ ))
95
+ else:
96
+ result[attr] = value
97
+ if issubclass(UpdateIntegrationTaskResponse, dict):
98
+ for key, value in self.items():
99
+ result[key] = value
100
+
101
+ return result
102
+
103
+ def to_str(self):
104
+ """Returns the string representation of the model"""
105
+ return pprint.pformat(self.to_dict())
106
+
107
+ def __repr__(self):
108
+ """For `print` and `pprint`"""
109
+ return self.to_str()
110
+
111
+ def __eq__(self, other):
112
+ """Returns true if both objects are equal"""
113
+ if not isinstance(other, UpdateIntegrationTaskResponse):
114
+ return False
115
+
116
+ return self.to_dict() == other.to_dict()
117
+
118
+ def __ne__(self, other):
119
+ """Returns true if both objects are not equal"""
120
+ if not isinstance(other, UpdateIntegrationTaskResponse):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()
@@ -37,6 +37,7 @@ class UpdateRuleFileRequest(object):
37
37
  'description': 'str',
38
38
  'id': 'str',
39
39
  'name': 'str',
40
+ 'target_workspace_id': 'str',
40
41
  'workspace_id': 'str'
41
42
  }
42
43
 
@@ -45,10 +46,11 @@ class UpdateRuleFileRequest(object):
45
46
  'description': 'Description',
46
47
  'id': 'Id',
47
48
  'name': 'Name',
49
+ 'target_workspace_id': 'TargetWorkspaceId',
48
50
  'workspace_id': 'WorkspaceId'
49
51
  }
50
52
 
51
- def __init__(self, content=None, description=None, id=None, name=None, workspace_id=None, _configuration=None): # noqa: E501
53
+ def __init__(self, content=None, description=None, id=None, name=None, target_workspace_id=None, workspace_id=None, _configuration=None): # noqa: E501
52
54
  """UpdateRuleFileRequest - a model defined in Swagger""" # noqa: E501
53
55
  if _configuration is None:
54
56
  _configuration = Configuration()
@@ -58,6 +60,7 @@ class UpdateRuleFileRequest(object):
58
60
  self._description = None
59
61
  self._id = None
60
62
  self._name = None
63
+ self._target_workspace_id = None
61
64
  self._workspace_id = None
62
65
  self.discriminator = None
63
66
 
@@ -69,6 +72,8 @@ class UpdateRuleFileRequest(object):
69
72
  self.id = id
70
73
  if name is not None:
71
74
  self.name = name
75
+ if target_workspace_id is not None:
76
+ self.target_workspace_id = target_workspace_id
72
77
  if workspace_id is not None:
73
78
  self.workspace_id = workspace_id
74
79
 
@@ -156,6 +161,27 @@ class UpdateRuleFileRequest(object):
156
161
 
157
162
  self._name = name
158
163
 
164
+ @property
165
+ def target_workspace_id(self):
166
+ """Gets the target_workspace_id of this UpdateRuleFileRequest. # noqa: E501
167
+
168
+
169
+ :return: The target_workspace_id of this UpdateRuleFileRequest. # noqa: E501
170
+ :rtype: str
171
+ """
172
+ return self._target_workspace_id
173
+
174
+ @target_workspace_id.setter
175
+ def target_workspace_id(self, target_workspace_id):
176
+ """Sets the target_workspace_id of this UpdateRuleFileRequest.
177
+
178
+
179
+ :param target_workspace_id: The target_workspace_id of this UpdateRuleFileRequest. # noqa: E501
180
+ :type: str
181
+ """
182
+
183
+ self._target_workspace_id = target_workspace_id
184
+
159
185
  @property
160
186
  def workspace_id(self):
161
187
  """Gets the workspace_id of this UpdateRuleFileRequest. # noqa: E501
@@ -0,0 +1,228 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ vmp
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from volcenginesdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateSilencePolicyRequest(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'description': 'str',
37
+ 'id': 'str',
38
+ 'metric_label_matchers': 'list[MetricLabelMatcherForUpdateSilencePolicyInput]',
39
+ 'name': 'str',
40
+ 'time_range_matchers': 'list[TimeRangeMatcherForUpdateSilencePolicyInput]'
41
+ }
42
+
43
+ attribute_map = {
44
+ 'description': 'Description',
45
+ 'id': 'Id',
46
+ 'metric_label_matchers': 'MetricLabelMatchers',
47
+ 'name': 'Name',
48
+ 'time_range_matchers': 'TimeRangeMatchers'
49
+ }
50
+
51
+ def __init__(self, description=None, id=None, metric_label_matchers=None, name=None, time_range_matchers=None, _configuration=None): # noqa: E501
52
+ """UpdateSilencePolicyRequest - a model defined in Swagger""" # noqa: E501
53
+ if _configuration is None:
54
+ _configuration = Configuration()
55
+ self._configuration = _configuration
56
+
57
+ self._description = None
58
+ self._id = None
59
+ self._metric_label_matchers = None
60
+ self._name = None
61
+ self._time_range_matchers = None
62
+ self.discriminator = None
63
+
64
+ if description is not None:
65
+ self.description = description
66
+ self.id = id
67
+ if metric_label_matchers is not None:
68
+ self.metric_label_matchers = metric_label_matchers
69
+ if name is not None:
70
+ self.name = name
71
+ if time_range_matchers is not None:
72
+ self.time_range_matchers = time_range_matchers
73
+
74
+ @property
75
+ def description(self):
76
+ """Gets the description of this UpdateSilencePolicyRequest. # noqa: E501
77
+
78
+
79
+ :return: The description of this UpdateSilencePolicyRequest. # noqa: E501
80
+ :rtype: str
81
+ """
82
+ return self._description
83
+
84
+ @description.setter
85
+ def description(self, description):
86
+ """Sets the description of this UpdateSilencePolicyRequest.
87
+
88
+
89
+ :param description: The description of this UpdateSilencePolicyRequest. # noqa: E501
90
+ :type: str
91
+ """
92
+
93
+ self._description = description
94
+
95
+ @property
96
+ def id(self):
97
+ """Gets the id of this UpdateSilencePolicyRequest. # noqa: E501
98
+
99
+
100
+ :return: The id of this UpdateSilencePolicyRequest. # noqa: E501
101
+ :rtype: str
102
+ """
103
+ return self._id
104
+
105
+ @id.setter
106
+ def id(self, id):
107
+ """Sets the id of this UpdateSilencePolicyRequest.
108
+
109
+
110
+ :param id: The id of this UpdateSilencePolicyRequest. # noqa: E501
111
+ :type: str
112
+ """
113
+ if self._configuration.client_side_validation and id is None:
114
+ raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
115
+
116
+ self._id = id
117
+
118
+ @property
119
+ def metric_label_matchers(self):
120
+ """Gets the metric_label_matchers of this UpdateSilencePolicyRequest. # noqa: E501
121
+
122
+
123
+ :return: The metric_label_matchers of this UpdateSilencePolicyRequest. # noqa: E501
124
+ :rtype: list[MetricLabelMatcherForUpdateSilencePolicyInput]
125
+ """
126
+ return self._metric_label_matchers
127
+
128
+ @metric_label_matchers.setter
129
+ def metric_label_matchers(self, metric_label_matchers):
130
+ """Sets the metric_label_matchers of this UpdateSilencePolicyRequest.
131
+
132
+
133
+ :param metric_label_matchers: The metric_label_matchers of this UpdateSilencePolicyRequest. # noqa: E501
134
+ :type: list[MetricLabelMatcherForUpdateSilencePolicyInput]
135
+ """
136
+
137
+ self._metric_label_matchers = metric_label_matchers
138
+
139
+ @property
140
+ def name(self):
141
+ """Gets the name of this UpdateSilencePolicyRequest. # noqa: E501
142
+
143
+
144
+ :return: The name of this UpdateSilencePolicyRequest. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._name
148
+
149
+ @name.setter
150
+ def name(self, name):
151
+ """Sets the name of this UpdateSilencePolicyRequest.
152
+
153
+
154
+ :param name: The name of this UpdateSilencePolicyRequest. # noqa: E501
155
+ :type: str
156
+ """
157
+
158
+ self._name = name
159
+
160
+ @property
161
+ def time_range_matchers(self):
162
+ """Gets the time_range_matchers of this UpdateSilencePolicyRequest. # noqa: E501
163
+
164
+
165
+ :return: The time_range_matchers of this UpdateSilencePolicyRequest. # noqa: E501
166
+ :rtype: list[TimeRangeMatcherForUpdateSilencePolicyInput]
167
+ """
168
+ return self._time_range_matchers
169
+
170
+ @time_range_matchers.setter
171
+ def time_range_matchers(self, time_range_matchers):
172
+ """Sets the time_range_matchers of this UpdateSilencePolicyRequest.
173
+
174
+
175
+ :param time_range_matchers: The time_range_matchers of this UpdateSilencePolicyRequest. # noqa: E501
176
+ :type: list[TimeRangeMatcherForUpdateSilencePolicyInput]
177
+ """
178
+
179
+ self._time_range_matchers = time_range_matchers
180
+
181
+ def to_dict(self):
182
+ """Returns the model properties as a dict"""
183
+ result = {}
184
+
185
+ for attr, _ in six.iteritems(self.swagger_types):
186
+ value = getattr(self, attr)
187
+ if isinstance(value, list):
188
+ result[attr] = list(map(
189
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
190
+ value
191
+ ))
192
+ elif hasattr(value, "to_dict"):
193
+ result[attr] = value.to_dict()
194
+ elif isinstance(value, dict):
195
+ result[attr] = dict(map(
196
+ lambda item: (item[0], item[1].to_dict())
197
+ if hasattr(item[1], "to_dict") else item,
198
+ value.items()
199
+ ))
200
+ else:
201
+ result[attr] = value
202
+ if issubclass(UpdateSilencePolicyRequest, dict):
203
+ for key, value in self.items():
204
+ result[key] = value
205
+
206
+ return result
207
+
208
+ def to_str(self):
209
+ """Returns the string representation of the model"""
210
+ return pprint.pformat(self.to_dict())
211
+
212
+ def __repr__(self):
213
+ """For `print` and `pprint`"""
214
+ return self.to_str()
215
+
216
+ def __eq__(self, other):
217
+ """Returns true if both objects are equal"""
218
+ if not isinstance(other, UpdateSilencePolicyRequest):
219
+ return False
220
+
221
+ return self.to_dict() == other.to_dict()
222
+
223
+ def __ne__(self, other):
224
+ """Returns true if both objects are not equal"""
225
+ if not isinstance(other, UpdateSilencePolicyRequest):
226
+ return True
227
+
228
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ vmp
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: common-version
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+ from volcenginesdkcore.configuration import Configuration
20
+
21
+
22
+ class UpdateSilencePolicyResponse(object):
23
+ """NOTE: This class is auto generated by the swagger code generator program.
24
+
25
+ Do not edit the class manually.
26
+ """
27
+
28
+ """
29
+ Attributes:
30
+ swagger_types (dict): The key is attribute name
31
+ and the value is attribute type.
32
+ attribute_map (dict): The key is attribute name
33
+ and the value is json key in definition.
34
+ """
35
+ swagger_types = {
36
+ 'id': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'id': 'Id'
41
+ }
42
+
43
+ def __init__(self, id=None, _configuration=None): # noqa: E501
44
+ """UpdateSilencePolicyResponse - a model defined in Swagger""" # noqa: E501
45
+ if _configuration is None:
46
+ _configuration = Configuration()
47
+ self._configuration = _configuration
48
+
49
+ self._id = None
50
+ self.discriminator = None
51
+
52
+ if id is not None:
53
+ self.id = id
54
+
55
+ @property
56
+ def id(self):
57
+ """Gets the id of this UpdateSilencePolicyResponse. # noqa: E501
58
+
59
+
60
+ :return: The id of this UpdateSilencePolicyResponse. # noqa: E501
61
+ :rtype: str
62
+ """
63
+ return self._id
64
+
65
+ @id.setter
66
+ def id(self, id):
67
+ """Sets the id of this UpdateSilencePolicyResponse.
68
+
69
+
70
+ :param id: The id of this UpdateSilencePolicyResponse. # noqa: E501
71
+ :type: str
72
+ """
73
+
74
+ self._id = id
75
+
76
+ def to_dict(self):
77
+ """Returns the model properties as a dict"""
78
+ result = {}
79
+
80
+ for attr, _ in six.iteritems(self.swagger_types):
81
+ value = getattr(self, attr)
82
+ if isinstance(value, list):
83
+ result[attr] = list(map(
84
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
85
+ value
86
+ ))
87
+ elif hasattr(value, "to_dict"):
88
+ result[attr] = value.to_dict()
89
+ elif isinstance(value, dict):
90
+ result[attr] = dict(map(
91
+ lambda item: (item[0], item[1].to_dict())
92
+ if hasattr(item[1], "to_dict") else item,
93
+ value.items()
94
+ ))
95
+ else:
96
+ result[attr] = value
97
+ if issubclass(UpdateSilencePolicyResponse, dict):
98
+ for key, value in self.items():
99
+ result[key] = value
100
+
101
+ return result
102
+
103
+ def to_str(self):
104
+ """Returns the string representation of the model"""
105
+ return pprint.pformat(self.to_dict())
106
+
107
+ def __repr__(self):
108
+ """For `print` and `pprint`"""
109
+ return self.to_str()
110
+
111
+ def __eq__(self, other):
112
+ """Returns true if both objects are equal"""
113
+ if not isinstance(other, UpdateSilencePolicyResponse):
114
+ return False
115
+
116
+ return self.to_dict() == other.to_dict()
117
+
118
+ def __ne__(self, other):
119
+ """Returns true if both objects are not equal"""
120
+ if not isinstance(other, UpdateSilencePolicyResponse):
121
+ return True
122
+
123
+ return self.to_dict() != other.to_dict()