huaweicloudsdkdcs 3.1.147__py2.py3-none-any.whl → 3.1.149__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 huaweicloudsdkdcs might be problematic. Click here for more details.

Files changed (40) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +29 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
  3. huaweicloudsdkdcs/v2/dcs_client.py +604 -0
  4. huaweicloudsdkdcs/v2/model/__init__.py +29 -0
  5. huaweicloudsdkdcs/v2/model/band_width.py +144 -0
  6. huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
  7. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
  8. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
  9. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
  10. huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
  11. huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
  12. huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
  13. huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
  14. huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
  15. huaweicloudsdkdcs/v2/model/key_space.py +202 -0
  16. huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
  17. huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
  18. huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
  19. huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
  20. huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
  21. huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
  22. huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
  23. huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
  24. huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
  25. huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
  26. huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
  27. huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
  28. huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
  29. huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
  30. huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
  31. huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
  32. huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
  33. huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
  34. huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
  35. huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
  36. {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/RECORD +40 -11
  38. {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.147.dist-info → huaweicloudsdkdcs-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class CreateOfflineKeyAnalysisResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'task_id': 'task_id'
26
+ }
27
+
28
+ def __init__(self, task_id=None):
29
+ r"""CreateOfflineKeyAnalysisResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param task_id: **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
34
+ :type task_id: str
35
+ """
36
+
37
+ super(CreateOfflineKeyAnalysisResponse, self).__init__()
38
+
39
+ self._task_id = None
40
+ self.discriminator = None
41
+
42
+ if task_id is not None:
43
+ self.task_id = task_id
44
+
45
+ @property
46
+ def task_id(self):
47
+ r"""Gets the task_id of this CreateOfflineKeyAnalysisResponse.
48
+
49
+ **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
50
+
51
+ :return: The task_id of this CreateOfflineKeyAnalysisResponse.
52
+ :rtype: str
53
+ """
54
+ return self._task_id
55
+
56
+ @task_id.setter
57
+ def task_id(self, task_id):
58
+ r"""Sets the task_id of this CreateOfflineKeyAnalysisResponse.
59
+
60
+ **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
61
+
62
+ :param task_id: The task_id of this CreateOfflineKeyAnalysisResponse.
63
+ :type task_id: str
64
+ """
65
+ self._task_id = task_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, CreateOfflineKeyAnalysisResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteOfflineKeyAnalysisTaskRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'instance_id': 'str',
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'task_id': 'task_id'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, task_id=None):
30
+ r"""DeleteOfflineKeyAnalysisTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type instance_id: str
36
+ :param task_id: **参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type task_id: str
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._task_id = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ self.task_id = task_id
48
+
49
+ @property
50
+ def instance_id(self):
51
+ r"""Gets the instance_id of this DeleteOfflineKeyAnalysisTaskRequest.
52
+
53
+ **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
54
+
55
+ :return: The instance_id of this DeleteOfflineKeyAnalysisTaskRequest.
56
+ :rtype: str
57
+ """
58
+ return self._instance_id
59
+
60
+ @instance_id.setter
61
+ def instance_id(self, instance_id):
62
+ r"""Sets the instance_id of this DeleteOfflineKeyAnalysisTaskRequest.
63
+
64
+ **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
65
+
66
+ :param instance_id: The instance_id of this DeleteOfflineKeyAnalysisTaskRequest.
67
+ :type instance_id: str
68
+ """
69
+ self._instance_id = instance_id
70
+
71
+ @property
72
+ def task_id(self):
73
+ r"""Gets the task_id of this DeleteOfflineKeyAnalysisTaskRequest.
74
+
75
+ **参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The task_id of this DeleteOfflineKeyAnalysisTaskRequest.
78
+ :rtype: str
79
+ """
80
+ return self._task_id
81
+
82
+ @task_id.setter
83
+ def task_id(self, task_id):
84
+ r"""Sets the task_id of this DeleteOfflineKeyAnalysisTaskRequest.
85
+
86
+ **参数解释**: 任务ID。可通过DCS控制台进入离线全量key分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param task_id: The task_id of this DeleteOfflineKeyAnalysisTaskRequest.
89
+ :type task_id: str
90
+ """
91
+ self._task_id = task_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, DeleteOfflineKeyAnalysisTaskRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class DeleteOfflineKeyAnalysisTaskResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'task_id': 'task_id'
26
+ }
27
+
28
+ def __init__(self, task_id=None):
29
+ r"""DeleteOfflineKeyAnalysisTaskResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param task_id: **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
34
+ :type task_id: str
35
+ """
36
+
37
+ super(DeleteOfflineKeyAnalysisTaskResponse, self).__init__()
38
+
39
+ self._task_id = None
40
+ self.discriminator = None
41
+
42
+ if task_id is not None:
43
+ self.task_id = task_id
44
+
45
+ @property
46
+ def task_id(self):
47
+ r"""Gets the task_id of this DeleteOfflineKeyAnalysisTaskResponse.
48
+
49
+ **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
50
+
51
+ :return: The task_id of this DeleteOfflineKeyAnalysisTaskResponse.
52
+ :rtype: str
53
+ """
54
+ return self._task_id
55
+
56
+ @task_id.setter
57
+ def task_id(self, task_id):
58
+ r"""Sets the task_id of this DeleteOfflineKeyAnalysisTaskResponse.
59
+
60
+ **参数解释**: 离线全量key分析任务ID。 **取值范围**: 不涉及。
61
+
62
+ :param task_id: The task_id of this DeleteOfflineKeyAnalysisTaskResponse.
63
+ :type task_id: str
64
+ """
65
+ self._task_id = task_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, DeleteOfflineKeyAnalysisTaskResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DimsInfo:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'dim_k': 'str',
21
+ 'dim_v': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'dim_k': 'dim_k',
26
+ 'dim_v': 'dim_v'
27
+ }
28
+
29
+ def __init__(self, dim_k=None, dim_v=None):
30
+ r"""DimsInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param dim_k: **参数解释**: CES监控维度路由。 **取值范围**: 不涉及。
35
+ :type dim_k: str
36
+ :param dim_v: **参数解释**: CES监控维度ID。 **取值范围**: 不涉及。
37
+ :type dim_v: str
38
+ """
39
+
40
+
41
+
42
+ self._dim_k = None
43
+ self._dim_v = None
44
+ self.discriminator = None
45
+
46
+ if dim_k is not None:
47
+ self.dim_k = dim_k
48
+ if dim_v is not None:
49
+ self.dim_v = dim_v
50
+
51
+ @property
52
+ def dim_k(self):
53
+ r"""Gets the dim_k of this DimsInfo.
54
+
55
+ **参数解释**: CES监控维度路由。 **取值范围**: 不涉及。
56
+
57
+ :return: The dim_k of this DimsInfo.
58
+ :rtype: str
59
+ """
60
+ return self._dim_k
61
+
62
+ @dim_k.setter
63
+ def dim_k(self, dim_k):
64
+ r"""Sets the dim_k of this DimsInfo.
65
+
66
+ **参数解释**: CES监控维度路由。 **取值范围**: 不涉及。
67
+
68
+ :param dim_k: The dim_k of this DimsInfo.
69
+ :type dim_k: str
70
+ """
71
+ self._dim_k = dim_k
72
+
73
+ @property
74
+ def dim_v(self):
75
+ r"""Gets the dim_v of this DimsInfo.
76
+
77
+ **参数解释**: CES监控维度ID。 **取值范围**: 不涉及。
78
+
79
+ :return: The dim_v of this DimsInfo.
80
+ :rtype: str
81
+ """
82
+ return self._dim_v
83
+
84
+ @dim_v.setter
85
+ def dim_v(self, dim_v):
86
+ r"""Sets the dim_v of this DimsInfo.
87
+
88
+ **参数解释**: CES监控维度ID。 **取值范围**: 不涉及。
89
+
90
+ :param dim_v: The dim_v of this DimsInfo.
91
+ :type dim_v: str
92
+ """
93
+ self._dim_v = dim_v
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, DimsInfo):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadHotKeyRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'instance_id': 'str',
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'task_id': 'task_id'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, task_id=None):
30
+ r"""DownloadHotKeyRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type instance_id: str
36
+ :param task_id: **参数解释**: 热Key分析任务ID,可通过DCS控制台进入实例缓存分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type task_id: str
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._task_id = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ self.task_id = task_id
48
+
49
+ @property
50
+ def instance_id(self):
51
+ r"""Gets the instance_id of this DownloadHotKeyRequest.
52
+
53
+ **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
54
+
55
+ :return: The instance_id of this DownloadHotKeyRequest.
56
+ :rtype: str
57
+ """
58
+ return self._instance_id
59
+
60
+ @instance_id.setter
61
+ def instance_id(self, instance_id):
62
+ r"""Sets the instance_id of this DownloadHotKeyRequest.
63
+
64
+ **参数解释**: 实例ID。可通过DCS控制台进入实例详情界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
65
+
66
+ :param instance_id: The instance_id of this DownloadHotKeyRequest.
67
+ :type instance_id: str
68
+ """
69
+ self._instance_id = instance_id
70
+
71
+ @property
72
+ def task_id(self):
73
+ r"""Gets the task_id of this DownloadHotKeyRequest.
74
+
75
+ **参数解释**: 热Key分析任务ID,可通过DCS控制台进入实例缓存分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
76
+
77
+ :return: The task_id of this DownloadHotKeyRequest.
78
+ :rtype: str
79
+ """
80
+ return self._task_id
81
+
82
+ @task_id.setter
83
+ def task_id(self, task_id):
84
+ r"""Sets the task_id of this DownloadHotKeyRequest.
85
+
86
+ **参数解释**: 热Key分析任务ID,可通过DCS控制台进入实例缓存分析界面查看。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
87
+
88
+ :param task_id: The task_id of this DownloadHotKeyRequest.
89
+ :type task_id: str
90
+ """
91
+ self._task_id = task_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, DownloadHotKeyRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other