huaweicloudsdkeihealth 3.1.86__py2.py3-none-any.whl → 3.1.132__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.
Files changed (134) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +100 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +5335 -3295
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +5335 -3295
  4. huaweicloudsdkeihealth/v1/model/__init__.py +100 -0
  5. huaweicloudsdkeihealth/v1/model/add_drug_database_file_req.py +139 -0
  6. huaweicloudsdkeihealth/v1/model/add_drug_database_file_request.py +139 -0
  7. huaweicloudsdkeihealth/v1/model/add_drug_database_file_response.py +85 -0
  8. huaweicloudsdkeihealth/v1/model/base_model.py +142 -0
  9. huaweicloudsdkeihealth/v1/model/base_model_dto.py +202 -0
  10. huaweicloudsdkeihealth/v1/model/bind_site_dto.py +30 -1
  11. huaweicloudsdkeihealth/v1/model/bound_box_dto.py +171 -0
  12. huaweicloudsdkeihealth/v1/model/clustering_drug_file.py +197 -0
  13. huaweicloudsdkeihealth/v1/model/clustering_file_source.py +89 -0
  14. huaweicloudsdkeihealth/v1/model/convert_file.py +197 -0
  15. huaweicloudsdkeihealth/v1/model/cpi_receptor.py +226 -0
  16. huaweicloudsdkeihealth/v1/model/create_admet_job_req.py +61 -3
  17. huaweicloudsdkeihealth/v1/model/create_clustering_job_req.py +134 -0
  18. huaweicloudsdkeihealth/v1/model/create_clustering_job_request.py +139 -0
  19. huaweicloudsdkeihealth/v1/model/create_clustering_job_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/create_cpi_job_req.py +166 -0
  21. huaweicloudsdkeihealth/v1/model/create_cpi_job_request.py +139 -0
  22. huaweicloudsdkeihealth/v1/model/create_cpi_job_response.py +145 -0
  23. huaweicloudsdkeihealth/v1/model/create_css_cluster_req.py +170 -0
  24. huaweicloudsdkeihealth/v1/model/create_css_cluster_request.py +111 -0
  25. huaweicloudsdkeihealth/v1/model/create_css_cluster_response.py +116 -0
  26. huaweicloudsdkeihealth/v1/model/create_database_req2.py +252 -0
  27. huaweicloudsdkeihealth/v1/model/create_dock_job_req.py +32 -3
  28. huaweicloudsdkeihealth/v1/model/create_drug_database_request.py +111 -0
  29. huaweicloudsdkeihealth/v1/model/create_drug_database_response.py +116 -0
  30. huaweicloudsdkeihealth/v1/model/create_drug_ligand_interaction2d_svg_req.py +32 -3
  31. huaweicloudsdkeihealth/v1/model/create_favorite_req.py +254 -0
  32. huaweicloudsdkeihealth/v1/model/create_favorite_request.py +139 -0
  33. huaweicloudsdkeihealth/v1/model/create_favorite_response.py +116 -0
  34. huaweicloudsdkeihealth/v1/model/create_fep_job_req.py +30 -1
  35. huaweicloudsdkeihealth/v1/model/create_gen_job_req.py +338 -0
  36. huaweicloudsdkeihealth/v1/model/create_gen_job_request.py +139 -0
  37. huaweicloudsdkeihealth/v1/model/create_gen_job_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/create_ligand_preview_task_req.py +32 -3
  39. huaweicloudsdkeihealth/v1/model/create_model_req.py +32 -3
  40. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_req.py +198 -0
  41. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_request.py +139 -0
  42. huaweicloudsdkeihealth/v1/model/create_mol_batch_download_task_response.py +116 -0
  43. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_req.py +163 -0
  44. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_request.py +139 -0
  45. huaweicloudsdkeihealth/v1/model/create_mol_docking_job_response.py +145 -0
  46. huaweicloudsdkeihealth/v1/model/create_optm_job_req.py +59 -1
  47. huaweicloudsdkeihealth/v1/model/create_search_job_req.py +308 -0
  48. huaweicloudsdkeihealth/v1/model/create_search_job_request.py +139 -0
  49. huaweicloudsdkeihealth/v1/model/create_search_job_response.py +145 -0
  50. huaweicloudsdkeihealth/v1/model/create_target_opt_job_req.py +184 -0
  51. huaweicloudsdkeihealth/v1/model/create_target_opt_job_request.py +139 -0
  52. huaweicloudsdkeihealth/v1/model/create_target_opt_job_response.py +145 -0
  53. huaweicloudsdkeihealth/v1/model/css_cluster_dto.py +202 -0
  54. huaweicloudsdkeihealth/v1/model/database_file.py +167 -0
  55. huaweicloudsdkeihealth/v1/model/database_file_source.py +88 -0
  56. huaweicloudsdkeihealth/v1/model/delete_css_cluster_request.py +114 -0
  57. huaweicloudsdkeihealth/v1/model/delete_css_cluster_response.py +85 -0
  58. huaweicloudsdkeihealth/v1/model/delete_drug_database_request.py +114 -0
  59. huaweicloudsdkeihealth/v1/model/delete_drug_database_response.py +85 -0
  60. huaweicloudsdkeihealth/v1/model/delete_favorite_request.py +142 -0
  61. huaweicloudsdkeihealth/v1/model/delete_favorite_response.py +85 -0
  62. huaweicloudsdkeihealth/v1/model/detail_database_file.py +225 -0
  63. huaweicloudsdkeihealth/v1/model/download_data_req.py +61 -3
  64. huaweicloudsdkeihealth/v1/model/drug_database_dto.py +521 -0
  65. huaweicloudsdkeihealth/v1/model/fasta_receptor.py +197 -0
  66. huaweicloudsdkeihealth/v1/model/favorite_dto.py +376 -0
  67. huaweicloudsdkeihealth/v1/model/get_archive_config_rsp.py +3 -32
  68. huaweicloudsdkeihealth/v1/model/interaction.py +166 -0
  69. huaweicloudsdkeihealth/v1/model/interaction_constraint_dto.py +167 -0
  70. huaweicloudsdkeihealth/v1/model/interaction_type.py +91 -0
  71. huaweicloudsdkeihealth/v1/model/job_result.py +32 -3
  72. huaweicloudsdkeihealth/v1/model/list_base_model_request.py +202 -0
  73. huaweicloudsdkeihealth/v1/model/list_base_model_response.py +145 -0
  74. huaweicloudsdkeihealth/v1/model/list_css_cluster_request.py +144 -0
  75. huaweicloudsdkeihealth/v1/model/list_css_cluster_response.py +145 -0
  76. huaweicloudsdkeihealth/v1/model/list_drug_database_request.py +260 -0
  77. huaweicloudsdkeihealth/v1/model/list_drug_database_response.py +174 -0
  78. huaweicloudsdkeihealth/v1/model/list_drug_model_request.py +35 -6
  79. huaweicloudsdkeihealth/v1/model/list_favorite_request.py +433 -0
  80. huaweicloudsdkeihealth/v1/model/list_favorite_response.py +145 -0
  81. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_request.py +144 -0
  82. huaweicloudsdkeihealth/v1/model/list_term_tenant_css_cluster_response.py +145 -0
  83. huaweicloudsdkeihealth/v1/model/md_param.py +169 -0
  84. huaweicloudsdkeihealth/v1/model/md_step_param.py +202 -0
  85. huaweicloudsdkeihealth/v1/model/model_dto.py +61 -3
  86. huaweicloudsdkeihealth/v1/model/optimization_mode.py +1 -0
  87. huaweicloudsdkeihealth/v1/model/pocket_fragment.py +30 -1
  88. huaweicloudsdkeihealth/v1/model/receptor_dto.py +280 -0
  89. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_req.py +168 -0
  90. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_request.py +139 -0
  91. huaweicloudsdkeihealth/v1/model/run_fasta_preprocess_response.py +145 -0
  92. huaweicloudsdkeihealth/v1/model/run_format_converter_req.py +166 -0
  93. huaweicloudsdkeihealth/v1/model/run_format_converter_request.py +139 -0
  94. huaweicloudsdkeihealth/v1/model/run_format_converter_response.py +112 -0
  95. huaweicloudsdkeihealth/v1/model/search_type.py +88 -0
  96. huaweicloudsdkeihealth/v1/model/show_admet_job_response.py +57 -3
  97. huaweicloudsdkeihealth/v1/model/show_clustering_job_request.py +142 -0
  98. huaweicloudsdkeihealth/v1/model/show_clustering_job_response.py +191 -0
  99. huaweicloudsdkeihealth/v1/model/show_cpi_job_request.py +142 -0
  100. huaweicloudsdkeihealth/v1/model/show_cpi_job_response.py +170 -0
  101. huaweicloudsdkeihealth/v1/model/show_docking_job_response.py +30 -1
  102. huaweicloudsdkeihealth/v1/model/show_fep_job_response.py +30 -1
  103. huaweicloudsdkeihealth/v1/model/show_gen_job_request.py +142 -0
  104. huaweicloudsdkeihealth/v1/model/show_gen_job_response.py +365 -0
  105. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_request.py +142 -0
  106. huaweicloudsdkeihealth/v1/model/show_mol_batch_download_task_response.py +199 -0
  107. huaweicloudsdkeihealth/v1/model/show_optm_job_response.py +55 -1
  108. huaweicloudsdkeihealth/v1/model/show_search_job_request.py +142 -0
  109. huaweicloudsdkeihealth/v1/model/show_search_job_response.py +340 -0
  110. huaweicloudsdkeihealth/v1/model/show_target_opt_job_request.py +142 -0
  111. huaweicloudsdkeihealth/v1/model/show_target_opt_job_response.py +187 -0
  112. huaweicloudsdkeihealth/v1/model/strong_constraint_dto.py +28 -3
  113. huaweicloudsdkeihealth/v1/model/strong_constraint_type.py +1 -0
  114. huaweicloudsdkeihealth/v1/model/target_opt_ligand.py +139 -0
  115. huaweicloudsdkeihealth/v1/model/target_opt_receptor.py +255 -0
  116. huaweicloudsdkeihealth/v1/model/task_progress.py +115 -0
  117. huaweicloudsdkeihealth/v1/model/term_tenant_css_cluster_dto.py +173 -0
  118. huaweicloudsdkeihealth/v1/model/update_drug_database_req.py +114 -0
  119. huaweicloudsdkeihealth/v1/model/update_drug_database_request.py +139 -0
  120. huaweicloudsdkeihealth/v1/model/update_drug_database_response.py +85 -0
  121. huaweicloudsdkeihealth/v1/model/update_drug_job_req.py +115 -0
  122. huaweicloudsdkeihealth/v1/model/update_drug_job_request.py +167 -0
  123. huaweicloudsdkeihealth/v1/model/update_drug_job_response.py +85 -0
  124. huaweicloudsdkeihealth/v1/model/upload_data_request.py +1 -175
  125. huaweicloudsdkeihealth/v1/model/upload_data_request_body.py +177 -3
  126. huaweicloudsdkeihealth/v1/model/validate_css_connection_request.py +111 -0
  127. huaweicloudsdkeihealth/v1/model/validate_css_connection_response.py +145 -0
  128. huaweicloudsdkeihealth/v1/model/weak_constraint_dto.py +28 -3
  129. huaweicloudsdkeihealth/v1/model/weak_constraint_type.py +1 -0
  130. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/METADATA +2 -2
  131. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/RECORD +134 -34
  132. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/WHEEL +1 -1
  133. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/LICENSE +0 -0
  134. {huaweicloudsdkeihealth-3.1.86.dist-info → huaweicloudsdkeihealth-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,184 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateTargetOptJobReq:
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
+ 'basic_info': 'CreateDrugJobBasicInfo',
21
+ 'receptor': 'TargetOptReceptor',
22
+ 'ligand': 'TargetOptLigand',
23
+ 'md_params': 'MdParam'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'basic_info': 'basic_info',
28
+ 'receptor': 'receptor',
29
+ 'ligand': 'ligand',
30
+ 'md_params': 'md_params'
31
+ }
32
+
33
+ def __init__(self, basic_info=None, receptor=None, ligand=None, md_params=None):
34
+ """CreateTargetOptJobReq
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param basic_info:
39
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
40
+ :param receptor:
41
+ :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
42
+ :param ligand:
43
+ :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
44
+ :param md_params:
45
+ :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam`
46
+ """
47
+
48
+
49
+
50
+ self._basic_info = None
51
+ self._receptor = None
52
+ self._ligand = None
53
+ self._md_params = None
54
+ self.discriminator = None
55
+
56
+ self.basic_info = basic_info
57
+ self.receptor = receptor
58
+ if ligand is not None:
59
+ self.ligand = ligand
60
+ if md_params is not None:
61
+ self.md_params = md_params
62
+
63
+ @property
64
+ def basic_info(self):
65
+ """Gets the basic_info of this CreateTargetOptJobReq.
66
+
67
+ :return: The basic_info of this CreateTargetOptJobReq.
68
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
69
+ """
70
+ return self._basic_info
71
+
72
+ @basic_info.setter
73
+ def basic_info(self, basic_info):
74
+ """Sets the basic_info of this CreateTargetOptJobReq.
75
+
76
+ :param basic_info: The basic_info of this CreateTargetOptJobReq.
77
+ :type basic_info: :class:`huaweicloudsdkeihealth.v1.CreateDrugJobBasicInfo`
78
+ """
79
+ self._basic_info = basic_info
80
+
81
+ @property
82
+ def receptor(self):
83
+ """Gets the receptor of this CreateTargetOptJobReq.
84
+
85
+ :return: The receptor of this CreateTargetOptJobReq.
86
+ :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
87
+ """
88
+ return self._receptor
89
+
90
+ @receptor.setter
91
+ def receptor(self, receptor):
92
+ """Sets the receptor of this CreateTargetOptJobReq.
93
+
94
+ :param receptor: The receptor of this CreateTargetOptJobReq.
95
+ :type receptor: :class:`huaweicloudsdkeihealth.v1.TargetOptReceptor`
96
+ """
97
+ self._receptor = receptor
98
+
99
+ @property
100
+ def ligand(self):
101
+ """Gets the ligand of this CreateTargetOptJobReq.
102
+
103
+ :return: The ligand of this CreateTargetOptJobReq.
104
+ :rtype: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
105
+ """
106
+ return self._ligand
107
+
108
+ @ligand.setter
109
+ def ligand(self, ligand):
110
+ """Sets the ligand of this CreateTargetOptJobReq.
111
+
112
+ :param ligand: The ligand of this CreateTargetOptJobReq.
113
+ :type ligand: :class:`huaweicloudsdkeihealth.v1.TargetOptLigand`
114
+ """
115
+ self._ligand = ligand
116
+
117
+ @property
118
+ def md_params(self):
119
+ """Gets the md_params of this CreateTargetOptJobReq.
120
+
121
+ :return: The md_params of this CreateTargetOptJobReq.
122
+ :rtype: :class:`huaweicloudsdkeihealth.v1.MdParam`
123
+ """
124
+ return self._md_params
125
+
126
+ @md_params.setter
127
+ def md_params(self, md_params):
128
+ """Sets the md_params of this CreateTargetOptJobReq.
129
+
130
+ :param md_params: The md_params of this CreateTargetOptJobReq.
131
+ :type md_params: :class:`huaweicloudsdkeihealth.v1.MdParam`
132
+ """
133
+ self._md_params = md_params
134
+
135
+ def to_dict(self):
136
+ """Returns the model properties as a dict"""
137
+ result = {}
138
+
139
+ for attr, _ in six.iteritems(self.openapi_types):
140
+ value = getattr(self, attr)
141
+ if isinstance(value, list):
142
+ result[attr] = list(map(
143
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
144
+ value
145
+ ))
146
+ elif hasattr(value, "to_dict"):
147
+ result[attr] = value.to_dict()
148
+ elif isinstance(value, dict):
149
+ result[attr] = dict(map(
150
+ lambda item: (item[0], item[1].to_dict())
151
+ if hasattr(item[1], "to_dict") else item,
152
+ value.items()
153
+ ))
154
+ else:
155
+ if attr in self.sensitive_list:
156
+ result[attr] = "****"
157
+ else:
158
+ result[attr] = value
159
+
160
+ return result
161
+
162
+ def to_str(self):
163
+ """Returns the string representation of the model"""
164
+ import simplejson as json
165
+ if six.PY2:
166
+ import sys
167
+ reload(sys)
168
+ sys.setdefaultencoding("utf-8")
169
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
170
+
171
+ def __repr__(self):
172
+ """For `print`"""
173
+ return self.to_str()
174
+
175
+ def __eq__(self, other):
176
+ """Returns true if both objects are equal"""
177
+ if not isinstance(other, CreateTargetOptJobReq):
178
+ return False
179
+
180
+ return self.__dict__ == other.__dict__
181
+
182
+ def __ne__(self, other):
183
+ """Returns true if both objects are not equal"""
184
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateTargetOptJobRequest:
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
+ 'eihealth_project_id': 'str',
21
+ 'body': 'CreateTargetOptJobReq'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'eihealth_project_id': 'eihealth_project_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, eihealth_project_id=None, body=None):
30
+ """CreateTargetOptJobRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param eihealth_project_id: 平台项目ID。
35
+ :type eihealth_project_id: str
36
+ :param body: Body of the CreateTargetOptJobRequest
37
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq`
38
+ """
39
+
40
+
41
+
42
+ self._eihealth_project_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.eihealth_project_id = eihealth_project_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def eihealth_project_id(self):
52
+ """Gets the eihealth_project_id of this CreateTargetOptJobRequest.
53
+
54
+ 平台项目ID。
55
+
56
+ :return: The eihealth_project_id of this CreateTargetOptJobRequest.
57
+ :rtype: str
58
+ """
59
+ return self._eihealth_project_id
60
+
61
+ @eihealth_project_id.setter
62
+ def eihealth_project_id(self, eihealth_project_id):
63
+ """Sets the eihealth_project_id of this CreateTargetOptJobRequest.
64
+
65
+ 平台项目ID。
66
+
67
+ :param eihealth_project_id: The eihealth_project_id of this CreateTargetOptJobRequest.
68
+ :type eihealth_project_id: str
69
+ """
70
+ self._eihealth_project_id = eihealth_project_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this CreateTargetOptJobRequest.
75
+
76
+ :return: The body of this CreateTargetOptJobRequest.
77
+ :rtype: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this CreateTargetOptJobRequest.
84
+
85
+ :param body: The body of this CreateTargetOptJobRequest.
86
+ :type body: :class:`huaweicloudsdkeihealth.v1.CreateTargetOptJobReq`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, CreateTargetOptJobRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,145 @@
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 CreateTargetOptJobResponse(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
+ 'id': 'str',
22
+ 'limit_concurrency': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'id': 'id',
27
+ 'limit_concurrency': 'limit_concurrency'
28
+ }
29
+
30
+ def __init__(self, id=None, limit_concurrency=None):
31
+ """CreateTargetOptJobResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param id: 作业id
36
+ :type id: str
37
+ :param limit_concurrency: 限制的并发量
38
+ :type limit_concurrency: int
39
+ """
40
+
41
+ super(CreateTargetOptJobResponse, self).__init__()
42
+
43
+ self._id = None
44
+ self._limit_concurrency = None
45
+ self.discriminator = None
46
+
47
+ if id is not None:
48
+ self.id = id
49
+ if limit_concurrency is not None:
50
+ self.limit_concurrency = limit_concurrency
51
+
52
+ @property
53
+ def id(self):
54
+ """Gets the id of this CreateTargetOptJobResponse.
55
+
56
+ 作业id
57
+
58
+ :return: The id of this CreateTargetOptJobResponse.
59
+ :rtype: str
60
+ """
61
+ return self._id
62
+
63
+ @id.setter
64
+ def id(self, id):
65
+ """Sets the id of this CreateTargetOptJobResponse.
66
+
67
+ 作业id
68
+
69
+ :param id: The id of this CreateTargetOptJobResponse.
70
+ :type id: str
71
+ """
72
+ self._id = id
73
+
74
+ @property
75
+ def limit_concurrency(self):
76
+ """Gets the limit_concurrency of this CreateTargetOptJobResponse.
77
+
78
+ 限制的并发量
79
+
80
+ :return: The limit_concurrency of this CreateTargetOptJobResponse.
81
+ :rtype: int
82
+ """
83
+ return self._limit_concurrency
84
+
85
+ @limit_concurrency.setter
86
+ def limit_concurrency(self, limit_concurrency):
87
+ """Sets the limit_concurrency of this CreateTargetOptJobResponse.
88
+
89
+ 限制的并发量
90
+
91
+ :param limit_concurrency: The limit_concurrency of this CreateTargetOptJobResponse.
92
+ :type limit_concurrency: int
93
+ """
94
+ self._limit_concurrency = limit_concurrency
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, CreateTargetOptJobResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CssClusterDto:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'storage': 'int',
23
+ 'import_time': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'id': 'id',
28
+ 'name': 'name',
29
+ 'storage': 'storage',
30
+ 'import_time': 'import_time'
31
+ }
32
+
33
+ def __init__(self, id=None, name=None, storage=None, import_time=None):
34
+ """CssClusterDto
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param id: 已绑定的集群id
39
+ :type id: str
40
+ :param name: css集群名称
41
+ :type name: str
42
+ :param storage: css集群总存储
43
+ :type storage: int
44
+ :param import_time: css集群导入时间
45
+ :type import_time: str
46
+ """
47
+
48
+
49
+
50
+ self._id = None
51
+ self._name = None
52
+ self._storage = None
53
+ self._import_time = None
54
+ self.discriminator = None
55
+
56
+ if id is not None:
57
+ self.id = id
58
+ if name is not None:
59
+ self.name = name
60
+ if storage is not None:
61
+ self.storage = storage
62
+ if import_time is not None:
63
+ self.import_time = import_time
64
+
65
+ @property
66
+ def id(self):
67
+ """Gets the id of this CssClusterDto.
68
+
69
+ 已绑定的集群id
70
+
71
+ :return: The id of this CssClusterDto.
72
+ :rtype: str
73
+ """
74
+ return self._id
75
+
76
+ @id.setter
77
+ def id(self, id):
78
+ """Sets the id of this CssClusterDto.
79
+
80
+ 已绑定的集群id
81
+
82
+ :param id: The id of this CssClusterDto.
83
+ :type id: str
84
+ """
85
+ self._id = id
86
+
87
+ @property
88
+ def name(self):
89
+ """Gets the name of this CssClusterDto.
90
+
91
+ css集群名称
92
+
93
+ :return: The name of this CssClusterDto.
94
+ :rtype: str
95
+ """
96
+ return self._name
97
+
98
+ @name.setter
99
+ def name(self, name):
100
+ """Sets the name of this CssClusterDto.
101
+
102
+ css集群名称
103
+
104
+ :param name: The name of this CssClusterDto.
105
+ :type name: str
106
+ """
107
+ self._name = name
108
+
109
+ @property
110
+ def storage(self):
111
+ """Gets the storage of this CssClusterDto.
112
+
113
+ css集群总存储
114
+
115
+ :return: The storage of this CssClusterDto.
116
+ :rtype: int
117
+ """
118
+ return self._storage
119
+
120
+ @storage.setter
121
+ def storage(self, storage):
122
+ """Sets the storage of this CssClusterDto.
123
+
124
+ css集群总存储
125
+
126
+ :param storage: The storage of this CssClusterDto.
127
+ :type storage: int
128
+ """
129
+ self._storage = storage
130
+
131
+ @property
132
+ def import_time(self):
133
+ """Gets the import_time of this CssClusterDto.
134
+
135
+ css集群导入时间
136
+
137
+ :return: The import_time of this CssClusterDto.
138
+ :rtype: str
139
+ """
140
+ return self._import_time
141
+
142
+ @import_time.setter
143
+ def import_time(self, import_time):
144
+ """Sets the import_time of this CssClusterDto.
145
+
146
+ css集群导入时间
147
+
148
+ :param import_time: The import_time of this CssClusterDto.
149
+ :type import_time: str
150
+ """
151
+ self._import_time = import_time
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, CssClusterDto):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other