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,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateDrugJobRequest:
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
+ 'job_id': 'str',
22
+ 'body': 'UpdateDrugJobReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'eihealth_project_id': 'eihealth_project_id',
27
+ 'job_id': 'job_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, eihealth_project_id=None, job_id=None, body=None):
32
+ """UpdateDrugJobRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param eihealth_project_id: 平台项目ID。
37
+ :type eihealth_project_id: str
38
+ :param job_id: 作业id
39
+ :type job_id: str
40
+ :param body: Body of the UpdateDrugJobRequest
41
+ :type body: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
42
+ """
43
+
44
+
45
+
46
+ self._eihealth_project_id = None
47
+ self._job_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.eihealth_project_id = eihealth_project_id
52
+ self.job_id = job_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def eihealth_project_id(self):
58
+ """Gets the eihealth_project_id of this UpdateDrugJobRequest.
59
+
60
+ 平台项目ID。
61
+
62
+ :return: The eihealth_project_id of this UpdateDrugJobRequest.
63
+ :rtype: str
64
+ """
65
+ return self._eihealth_project_id
66
+
67
+ @eihealth_project_id.setter
68
+ def eihealth_project_id(self, eihealth_project_id):
69
+ """Sets the eihealth_project_id of this UpdateDrugJobRequest.
70
+
71
+ 平台项目ID。
72
+
73
+ :param eihealth_project_id: The eihealth_project_id of this UpdateDrugJobRequest.
74
+ :type eihealth_project_id: str
75
+ """
76
+ self._eihealth_project_id = eihealth_project_id
77
+
78
+ @property
79
+ def job_id(self):
80
+ """Gets the job_id of this UpdateDrugJobRequest.
81
+
82
+ 作业id
83
+
84
+ :return: The job_id of this UpdateDrugJobRequest.
85
+ :rtype: str
86
+ """
87
+ return self._job_id
88
+
89
+ @job_id.setter
90
+ def job_id(self, job_id):
91
+ """Sets the job_id of this UpdateDrugJobRequest.
92
+
93
+ 作业id
94
+
95
+ :param job_id: The job_id of this UpdateDrugJobRequest.
96
+ :type job_id: str
97
+ """
98
+ self._job_id = job_id
99
+
100
+ @property
101
+ def body(self):
102
+ """Gets the body of this UpdateDrugJobRequest.
103
+
104
+ :return: The body of this UpdateDrugJobRequest.
105
+ :rtype: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ """Sets the body of this UpdateDrugJobRequest.
112
+
113
+ :param body: The body of this UpdateDrugJobRequest.
114
+ :type body: :class:`huaweicloudsdkeihealth.v1.UpdateDrugJobReq`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, UpdateDrugJobRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,85 @@
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 UpdateDrugJobResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ """UpdateDrugJobResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(UpdateDrugJobResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, UpdateDrugJobResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -18,45 +18,21 @@ class UploadDataRequest:
18
18
 
19
19
  openapi_types = {
20
20
  'eihealth_project_id': 'str',
21
- 'target_folder': 'str',
22
- 'part_number': 'int',
23
- 'total_part': 'int',
24
- 'multipart_id': 'str',
25
- 'file_name': 'str',
26
- 'md5': 'str',
27
21
  'body': 'UploadDataRequestBody'
28
22
  }
29
23
 
30
24
  attribute_map = {
31
25
  'eihealth_project_id': 'eihealth_project_id',
32
- 'target_folder': 'target_folder',
33
- 'part_number': 'part_number',
34
- 'total_part': 'total_part',
35
- 'multipart_id': 'multipart_id',
36
- 'file_name': 'file_name',
37
- 'md5': 'md5',
38
26
  'body': 'body'
39
27
  }
40
28
 
41
- def __init__(self, eihealth_project_id=None, target_folder=None, part_number=None, total_part=None, multipart_id=None, file_name=None, md5=None, body=None):
29
+ def __init__(self, eihealth_project_id=None, body=None):
42
30
  """UploadDataRequest
43
31
 
44
32
  The model defined in huaweicloud sdk
45
33
 
46
34
  :param eihealth_project_id: 平台项目ID,您可以在平台单击所需的项目名称,进入项目设置页面查看。
47
35
  :type eihealth_project_id: str
48
- :param target_folder: 目标文件夹
49
- :type target_folder: str
50
- :param part_number: 分段序号,表示第几个文件片段
51
- :type part_number: int
52
- :param total_part: 分段总数,上传的文件总共分成了几个片段
53
- :type total_part: int
54
- :param multipart_id: 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
55
- :type multipart_id: str
56
- :param file_name: 文件名称
57
- :type file_name: str
58
- :param md5: MD5
59
- :type md5: str
60
36
  :param body: Body of the UploadDataRequest
61
37
  :type body: :class:`huaweicloudsdkeihealth.v1.UploadDataRequestBody`
62
38
  """
@@ -64,28 +40,10 @@ class UploadDataRequest:
64
40
 
65
41
 
66
42
  self._eihealth_project_id = None
67
- self._target_folder = None
68
- self._part_number = None
69
- self._total_part = None
70
- self._multipart_id = None
71
- self._file_name = None
72
- self._md5 = None
73
43
  self._body = None
74
44
  self.discriminator = None
75
45
 
76
46
  self.eihealth_project_id = eihealth_project_id
77
- if target_folder is not None:
78
- self.target_folder = target_folder
79
- if part_number is not None:
80
- self.part_number = part_number
81
- if total_part is not None:
82
- self.total_part = total_part
83
- if multipart_id is not None:
84
- self.multipart_id = multipart_id
85
- if file_name is not None:
86
- self.file_name = file_name
87
- if md5 is not None:
88
- self.md5 = md5
89
47
  if body is not None:
90
48
  self.body = body
91
49
 
@@ -111,138 +69,6 @@ class UploadDataRequest:
111
69
  """
112
70
  self._eihealth_project_id = eihealth_project_id
113
71
 
114
- @property
115
- def target_folder(self):
116
- """Gets the target_folder of this UploadDataRequest.
117
-
118
- 目标文件夹
119
-
120
- :return: The target_folder of this UploadDataRequest.
121
- :rtype: str
122
- """
123
- return self._target_folder
124
-
125
- @target_folder.setter
126
- def target_folder(self, target_folder):
127
- """Sets the target_folder of this UploadDataRequest.
128
-
129
- 目标文件夹
130
-
131
- :param target_folder: The target_folder of this UploadDataRequest.
132
- :type target_folder: str
133
- """
134
- self._target_folder = target_folder
135
-
136
- @property
137
- def part_number(self):
138
- """Gets the part_number of this UploadDataRequest.
139
-
140
- 分段序号,表示第几个文件片段
141
-
142
- :return: The part_number of this UploadDataRequest.
143
- :rtype: int
144
- """
145
- return self._part_number
146
-
147
- @part_number.setter
148
- def part_number(self, part_number):
149
- """Sets the part_number of this UploadDataRequest.
150
-
151
- 分段序号,表示第几个文件片段
152
-
153
- :param part_number: The part_number of this UploadDataRequest.
154
- :type part_number: int
155
- """
156
- self._part_number = part_number
157
-
158
- @property
159
- def total_part(self):
160
- """Gets the total_part of this UploadDataRequest.
161
-
162
- 分段总数,上传的文件总共分成了几个片段
163
-
164
- :return: The total_part of this UploadDataRequest.
165
- :rtype: int
166
- """
167
- return self._total_part
168
-
169
- @total_part.setter
170
- def total_part(self, total_part):
171
- """Sets the total_part of this UploadDataRequest.
172
-
173
- 分段总数,上传的文件总共分成了几个片段
174
-
175
- :param total_part: The total_part of this UploadDataRequest.
176
- :type total_part: int
177
- """
178
- self._total_part = total_part
179
-
180
- @property
181
- def multipart_id(self):
182
- """Gets the multipart_id of this UploadDataRequest.
183
-
184
- 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
185
-
186
- :return: The multipart_id of this UploadDataRequest.
187
- :rtype: str
188
- """
189
- return self._multipart_id
190
-
191
- @multipart_id.setter
192
- def multipart_id(self, multipart_id):
193
- """Sets the multipart_id of this UploadDataRequest.
194
-
195
- 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
196
-
197
- :param multipart_id: The multipart_id of this UploadDataRequest.
198
- :type multipart_id: str
199
- """
200
- self._multipart_id = multipart_id
201
-
202
- @property
203
- def file_name(self):
204
- """Gets the file_name of this UploadDataRequest.
205
-
206
- 文件名称
207
-
208
- :return: The file_name of this UploadDataRequest.
209
- :rtype: str
210
- """
211
- return self._file_name
212
-
213
- @file_name.setter
214
- def file_name(self, file_name):
215
- """Sets the file_name of this UploadDataRequest.
216
-
217
- 文件名称
218
-
219
- :param file_name: The file_name of this UploadDataRequest.
220
- :type file_name: str
221
- """
222
- self._file_name = file_name
223
-
224
- @property
225
- def md5(self):
226
- """Gets the md5 of this UploadDataRequest.
227
-
228
- MD5
229
-
230
- :return: The md5 of this UploadDataRequest.
231
- :rtype: str
232
- """
233
- return self._md5
234
-
235
- @md5.setter
236
- def md5(self, md5):
237
- """Sets the md5 of this UploadDataRequest.
238
-
239
- MD5
240
-
241
- :param md5: The md5 of this UploadDataRequest.
242
- :type md5: str
243
- """
244
- self._md5 = md5
245
-
246
72
  @property
247
73
  def body(self):
248
74
  """Gets the body of this UploadDataRequest.
@@ -17,28 +17,70 @@ class UploadDataRequestBody:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
- 'file': 'file'
20
+ 'file': 'file',
21
+ 'target_folder': 'str',
22
+ 'part_number': 'str',
23
+ 'total_part': 'str',
24
+ 'multipart_id': 'str',
25
+ 'file_name': 'str',
26
+ 'md5': 'str'
21
27
  }
22
28
 
23
29
  attribute_map = {
24
- 'file': 'file'
30
+ 'file': 'file',
31
+ 'target_folder': 'target_folder',
32
+ 'part_number': 'part_number',
33
+ 'total_part': 'total_part',
34
+ 'multipart_id': 'multipart_id',
35
+ 'file_name': 'file_name',
36
+ 'md5': 'md5'
25
37
  }
26
38
 
27
- def __init__(self, file=None):
39
+ def __init__(self, file=None, target_folder=None, part_number=None, total_part=None, multipart_id=None, file_name=None, md5=None):
28
40
  """UploadDataRequestBody
29
41
 
30
42
  The model defined in huaweicloud sdk
31
43
 
32
44
  :param file: 文件流对象
33
45
  :type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
46
+ :param target_folder: 目标文件夹
47
+ :type target_folder: str
48
+ :param part_number: 分段序号,表示第几个文件片段
49
+ :type part_number: str
50
+ :param total_part: 分段总数,上传的文件总共分成了几个片段
51
+ :type total_part: str
52
+ :param multipart_id: 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
53
+ :type multipart_id: str
54
+ :param file_name: 文件名称
55
+ :type file_name: str
56
+ :param md5: MD5
57
+ :type md5: str
34
58
  """
35
59
 
36
60
 
37
61
 
38
62
  self._file = None
63
+ self._target_folder = None
64
+ self._part_number = None
65
+ self._total_part = None
66
+ self._multipart_id = None
67
+ self._file_name = None
68
+ self._md5 = None
39
69
  self.discriminator = None
40
70
 
41
71
  self.file = file
72
+ if target_folder is not None:
73
+ self.target_folder = target_folder
74
+ if part_number is not None:
75
+ self.part_number = part_number
76
+ if total_part is not None:
77
+ self.total_part = total_part
78
+ if multipart_id is not None:
79
+ self.multipart_id = multipart_id
80
+ if file_name is not None:
81
+ self.file_name = file_name
82
+ if md5 is not None:
83
+ self.md5 = md5
42
84
 
43
85
  @property
44
86
  def file(self):
@@ -62,6 +104,138 @@ class UploadDataRequestBody:
62
104
  """
63
105
  self._file = file
64
106
 
107
+ @property
108
+ def target_folder(self):
109
+ """Gets the target_folder of this UploadDataRequestBody.
110
+
111
+ 目标文件夹
112
+
113
+ :return: The target_folder of this UploadDataRequestBody.
114
+ :rtype: str
115
+ """
116
+ return self._target_folder
117
+
118
+ @target_folder.setter
119
+ def target_folder(self, target_folder):
120
+ """Sets the target_folder of this UploadDataRequestBody.
121
+
122
+ 目标文件夹
123
+
124
+ :param target_folder: The target_folder of this UploadDataRequestBody.
125
+ :type target_folder: str
126
+ """
127
+ self._target_folder = target_folder
128
+
129
+ @property
130
+ def part_number(self):
131
+ """Gets the part_number of this UploadDataRequestBody.
132
+
133
+ 分段序号,表示第几个文件片段
134
+
135
+ :return: The part_number of this UploadDataRequestBody.
136
+ :rtype: str
137
+ """
138
+ return self._part_number
139
+
140
+ @part_number.setter
141
+ def part_number(self, part_number):
142
+ """Sets the part_number of this UploadDataRequestBody.
143
+
144
+ 分段序号,表示第几个文件片段
145
+
146
+ :param part_number: The part_number of this UploadDataRequestBody.
147
+ :type part_number: str
148
+ """
149
+ self._part_number = part_number
150
+
151
+ @property
152
+ def total_part(self):
153
+ """Gets the total_part of this UploadDataRequestBody.
154
+
155
+ 分段总数,上传的文件总共分成了几个片段
156
+
157
+ :return: The total_part of this UploadDataRequestBody.
158
+ :rtype: str
159
+ """
160
+ return self._total_part
161
+
162
+ @total_part.setter
163
+ def total_part(self, total_part):
164
+ """Sets the total_part of this UploadDataRequestBody.
165
+
166
+ 分段总数,上传的文件总共分成了几个片段
167
+
168
+ :param total_part: The total_part of this UploadDataRequestBody.
169
+ :type total_part: str
170
+ """
171
+ self._total_part = total_part
172
+
173
+ @property
174
+ def multipart_id(self):
175
+ """Gets the multipart_id of this UploadDataRequestBody.
176
+
177
+ 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
178
+
179
+ :return: The multipart_id of this UploadDataRequestBody.
180
+ :rtype: str
181
+ """
182
+ return self._multipart_id
183
+
184
+ @multipart_id.setter
185
+ def multipart_id(self, multipart_id):
186
+ """Sets the multipart_id of this UploadDataRequestBody.
187
+
188
+ 分段上传任务id,除了第一个片段外,后续的片段都需要标识出任务id
189
+
190
+ :param multipart_id: The multipart_id of this UploadDataRequestBody.
191
+ :type multipart_id: str
192
+ """
193
+ self._multipart_id = multipart_id
194
+
195
+ @property
196
+ def file_name(self):
197
+ """Gets the file_name of this UploadDataRequestBody.
198
+
199
+ 文件名称
200
+
201
+ :return: The file_name of this UploadDataRequestBody.
202
+ :rtype: str
203
+ """
204
+ return self._file_name
205
+
206
+ @file_name.setter
207
+ def file_name(self, file_name):
208
+ """Sets the file_name of this UploadDataRequestBody.
209
+
210
+ 文件名称
211
+
212
+ :param file_name: The file_name of this UploadDataRequestBody.
213
+ :type file_name: str
214
+ """
215
+ self._file_name = file_name
216
+
217
+ @property
218
+ def md5(self):
219
+ """Gets the md5 of this UploadDataRequestBody.
220
+
221
+ MD5
222
+
223
+ :return: The md5 of this UploadDataRequestBody.
224
+ :rtype: str
225
+ """
226
+ return self._md5
227
+
228
+ @md5.setter
229
+ def md5(self, md5):
230
+ """Sets the md5 of this UploadDataRequestBody.
231
+
232
+ MD5
233
+
234
+ :param md5: The md5 of this UploadDataRequestBody.
235
+ :type md5: str
236
+ """
237
+ self._md5 = md5
238
+
65
239
  def to_dict(self):
66
240
  """Returns the model properties as a dict"""
67
241
  result = {}