huaweicloudsdkdwr 3.1.160__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 huaweicloudsdkdwr might be problematic. Click here for more details.

Files changed (171) hide show
  1. huaweicloudsdkdwr/__init__.py +0 -0
  2. huaweicloudsdkdwr/v1/__init__.py +93 -0
  3. huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
  4. huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
  5. huaweicloudsdkdwr/v1/model/__init__.py +90 -0
  6. huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
  7. huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
  8. huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
  9. huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
  10. huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
  11. huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
  12. huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
  13. huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
  14. huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
  15. huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
  16. huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
  17. huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
  18. huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
  19. huaweicloudsdkdwr/v1/model/decribe_collection_data.py +344 -0
  20. huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
  21. huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
  22. huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
  23. huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
  24. huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
  25. huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
  26. huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
  27. huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
  28. huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
  29. huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
  30. huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
  31. huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
  32. huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
  33. huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
  34. huaweicloudsdkdwr/v1/model/describe_index_data.py +166 -0
  35. huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
  36. huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
  37. huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
  38. huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
  39. huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
  40. huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
  41. huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
  42. huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
  43. huaweicloudsdkdwr/v1/model/field.py +229 -0
  44. huaweicloudsdkdwr/v1/model/field_data.py +285 -0
  45. huaweicloudsdkdwr/v1/model/flavor.py +142 -0
  46. huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
  47. huaweicloudsdkdwr/v1/model/get_progress_data.py +167 -0
  48. huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
  49. huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
  50. huaweicloudsdkdwr/v1/model/hybrid_search_body.py +282 -0
  51. huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
  52. huaweicloudsdkdwr/v1/model/hybrid_search_response.py +170 -0
  53. huaweicloudsdkdwr/v1/model/index_desc.py +198 -0
  54. huaweicloudsdkdwr/v1/model/index_params.py +171 -0
  55. huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
  56. huaweicloudsdkdwr/v1/model/insert_entities_data.py +143 -0
  57. huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
  58. huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
  59. huaweicloudsdkdwr/v1/model/job_data.py +316 -0
  60. huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
  61. huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
  62. huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
  63. huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
  64. huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
  65. huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
  66. huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
  67. huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
  68. huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
  69. huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
  70. huaweicloudsdkdwr/v1/model/list_stores_response.py +170 -0
  71. huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
  72. huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
  73. huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
  74. huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
  75. huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
  76. huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
  77. huaweicloudsdkdwr/v1/model/query_entities_response.py +170 -0
  78. huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
  79. huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
  80. huaweicloudsdkdwr/v1/model/rerank.py +143 -0
  81. huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
  82. huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
  83. huaweicloudsdkdwr/v1/model/search_entities_response.py +170 -0
  84. huaweicloudsdkdwr/v1/model/store_data.py +364 -0
  85. huaweicloudsdkdwr/v1/model/store_info.py +114 -0
  86. huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
  87. huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
  88. huaweicloudsdkdwr/v1/model/upsert_entities_data.py +142 -0
  89. huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
  90. huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
  91. huaweicloudsdkdwr/v1/region/__init__.py +0 -0
  92. huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
  93. huaweicloudsdkdwr/v3/__init__.py +76 -0
  94. huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
  95. huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
  96. huaweicloudsdkdwr/v3/model/__init__.py +73 -0
  97. huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +114 -0
  98. huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +137 -0
  99. huaweicloudsdkdwr/v3/model/action.py +427 -0
  100. huaweicloudsdkdwr/v3/model/action_result.py +228 -0
  101. huaweicloudsdkdwr/v3/model/action_template_item.py +144 -0
  102. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +139 -0
  103. huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +274 -0
  104. huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +84 -0
  105. huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +477 -0
  106. huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +139 -0
  107. huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +419 -0
  108. huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +84 -0
  109. huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +137 -0
  110. huaweicloudsdkdwr/v3/model/create_workflow_request.py +139 -0
  111. huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +281 -0
  112. huaweicloudsdkdwr/v3/model/create_workflow_response.py +274 -0
  113. huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +114 -0
  114. huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +137 -0
  115. huaweicloudsdkdwr/v3/model/delete_workflow_request.py +114 -0
  116. huaweicloudsdkdwr/v3/model/delete_workflow_response.py +137 -0
  117. huaweicloudsdkdwr/v3/model/execute_workflow_body.py +167 -0
  118. huaweicloudsdkdwr/v3/model/execution.py +289 -0
  119. huaweicloudsdkdwr/v3/model/express_config.py +144 -0
  120. huaweicloudsdkdwr/v3/model/func_vpc.py +260 -0
  121. huaweicloudsdkdwr/v3/model/graph_item.py +202 -0
  122. huaweicloudsdkdwr/v3/model/input.py +370 -0
  123. huaweicloudsdkdwr/v3/model/input_para_type.py +84 -0
  124. huaweicloudsdkdwr/v3/model/input_para_value_type.py +89 -0
  125. huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +231 -0
  126. huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +303 -0
  127. huaweicloudsdkdwr/v3/model/list_system_templates_request.py +202 -0
  128. huaweicloudsdkdwr/v3/model/list_system_templates_response.py +332 -0
  129. huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +259 -0
  130. huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +303 -0
  131. huaweicloudsdkdwr/v3/model/list_workflows_request.py +173 -0
  132. huaweicloudsdkdwr/v3/model/list_workflows_response.py +303 -0
  133. huaweicloudsdkdwr/v3/model/node_execution.py +289 -0
  134. huaweicloudsdkdwr/v3/model/policy.py +144 -0
  135. huaweicloudsdkdwr/v3/model/provided_action.py +564 -0
  136. huaweicloudsdkdwr/v3/model/public_template_item.py +285 -0
  137. huaweicloudsdkdwr/v3/model/public_template_register_type.py +87 -0
  138. huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +142 -0
  139. huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +274 -0
  140. huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +202 -0
  141. huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +332 -0
  142. huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +114 -0
  143. huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +212 -0
  144. huaweicloudsdkdwr/v3/model/show_service_contract_request.py +114 -0
  145. huaweicloudsdkdwr/v3/model/show_service_contract_response.py +245 -0
  146. huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +114 -0
  147. huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +212 -0
  148. huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +114 -0
  149. huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +212 -0
  150. huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +114 -0
  151. huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +332 -0
  152. huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +142 -0
  153. huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +535 -0
  154. huaweicloudsdkdwr/v3/model/state.py +345 -0
  155. huaweicloudsdkdwr/v3/model/statement.py +144 -0
  156. huaweicloudsdkdwr/v3/model/third_action_template_item.py +285 -0
  157. huaweicloudsdkdwr/v3/model/third_template_request_body.py +430 -0
  158. huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +139 -0
  159. huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +274 -0
  160. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +114 -0
  161. huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +137 -0
  162. huaweicloudsdkdwr/v3/model/update_workflow_body.py +115 -0
  163. huaweicloudsdkdwr/v3/model/update_workflow_request.py +139 -0
  164. huaweicloudsdkdwr/v3/model/update_workflow_response.py +274 -0
  165. huaweicloudsdkdwr/v3/region/__init__.py +0 -0
  166. huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
  167. huaweicloudsdkdwr-3.1.160.dist-info/LICENSE +13 -0
  168. huaweicloudsdkdwr-3.1.160.dist-info/METADATA +26 -0
  169. huaweicloudsdkdwr-3.1.160.dist-info/RECORD +171 -0
  170. huaweicloudsdkdwr-3.1.160.dist-info/WHEEL +5 -0
  171. huaweicloudsdkdwr-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowServiceContractRequest:
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
+ 'type': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'type': 'type'
25
+ }
26
+
27
+ def __init__(self, type=None):
28
+ r"""ShowServiceContractRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param type: 服务协议名称 使用公共Action的免责声明协议: use_public_action_privacy_statement 注册公共Action的免责声明协议: register_public_action_privacy_statement
33
+ :type type: str
34
+ """
35
+
36
+
37
+
38
+ self._type = None
39
+ self.discriminator = None
40
+
41
+ self.type = type
42
+
43
+ @property
44
+ def type(self):
45
+ r"""Gets the type of this ShowServiceContractRequest.
46
+
47
+ 服务协议名称 使用公共Action的免责声明协议: use_public_action_privacy_statement 注册公共Action的免责声明协议: register_public_action_privacy_statement
48
+
49
+ :return: The type of this ShowServiceContractRequest.
50
+ :rtype: str
51
+ """
52
+ return self._type
53
+
54
+ @type.setter
55
+ def type(self, type):
56
+ r"""Sets the type of this ShowServiceContractRequest.
57
+
58
+ 服务协议名称 使用公共Action的免责声明协议: use_public_action_privacy_statement 注册公共Action的免责声明协议: register_public_action_privacy_statement
59
+
60
+ :param type: The type of this ShowServiceContractRequest.
61
+ :type type: str
62
+ """
63
+ self._type = type
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowServiceContractRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,245 @@
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 ShowServiceContractResponse(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
+ 'agreement_type': 'str',
22
+ 'create_time': 'str',
23
+ 'x_request_id': 'str',
24
+ 'connection': 'str',
25
+ 'content_length': 'str',
26
+ 'date': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'agreement_type': 'agreement_type',
31
+ 'create_time': 'create_time',
32
+ 'x_request_id': 'x-request-id',
33
+ 'connection': 'Connection',
34
+ 'content_length': 'Content-Length',
35
+ 'date': 'Date'
36
+ }
37
+
38
+ def __init__(self, agreement_type=None, create_time=None, x_request_id=None, connection=None, content_length=None, date=None):
39
+ r"""ShowServiceContractResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param agreement_type: 服务协议类型,默认为use_public_action_privacy_statement。
44
+ :type agreement_type: str
45
+ :param create_time: 同意时间。
46
+ :type create_time: str
47
+ :param x_request_id:
48
+ :type x_request_id: str
49
+ :param connection:
50
+ :type connection: str
51
+ :param content_length:
52
+ :type content_length: str
53
+ :param date:
54
+ :type date: str
55
+ """
56
+
57
+ super(ShowServiceContractResponse, self).__init__()
58
+
59
+ self._agreement_type = None
60
+ self._create_time = None
61
+ self._x_request_id = None
62
+ self._connection = None
63
+ self._content_length = None
64
+ self._date = None
65
+ self.discriminator = None
66
+
67
+ if agreement_type is not None:
68
+ self.agreement_type = agreement_type
69
+ if create_time is not None:
70
+ self.create_time = create_time
71
+ if x_request_id is not None:
72
+ self.x_request_id = x_request_id
73
+ if connection is not None:
74
+ self.connection = connection
75
+ if content_length is not None:
76
+ self.content_length = content_length
77
+ if date is not None:
78
+ self.date = date
79
+
80
+ @property
81
+ def agreement_type(self):
82
+ r"""Gets the agreement_type of this ShowServiceContractResponse.
83
+
84
+ 服务协议类型,默认为use_public_action_privacy_statement。
85
+
86
+ :return: The agreement_type of this ShowServiceContractResponse.
87
+ :rtype: str
88
+ """
89
+ return self._agreement_type
90
+
91
+ @agreement_type.setter
92
+ def agreement_type(self, agreement_type):
93
+ r"""Sets the agreement_type of this ShowServiceContractResponse.
94
+
95
+ 服务协议类型,默认为use_public_action_privacy_statement。
96
+
97
+ :param agreement_type: The agreement_type of this ShowServiceContractResponse.
98
+ :type agreement_type: str
99
+ """
100
+ self._agreement_type = agreement_type
101
+
102
+ @property
103
+ def create_time(self):
104
+ r"""Gets the create_time of this ShowServiceContractResponse.
105
+
106
+ 同意时间。
107
+
108
+ :return: The create_time of this ShowServiceContractResponse.
109
+ :rtype: str
110
+ """
111
+ return self._create_time
112
+
113
+ @create_time.setter
114
+ def create_time(self, create_time):
115
+ r"""Sets the create_time of this ShowServiceContractResponse.
116
+
117
+ 同意时间。
118
+
119
+ :param create_time: The create_time of this ShowServiceContractResponse.
120
+ :type create_time: str
121
+ """
122
+ self._create_time = create_time
123
+
124
+ @property
125
+ def x_request_id(self):
126
+ r"""Gets the x_request_id of this ShowServiceContractResponse.
127
+
128
+ :return: The x_request_id of this ShowServiceContractResponse.
129
+ :rtype: str
130
+ """
131
+ return self._x_request_id
132
+
133
+ @x_request_id.setter
134
+ def x_request_id(self, x_request_id):
135
+ r"""Sets the x_request_id of this ShowServiceContractResponse.
136
+
137
+ :param x_request_id: The x_request_id of this ShowServiceContractResponse.
138
+ :type x_request_id: str
139
+ """
140
+ self._x_request_id = x_request_id
141
+
142
+ @property
143
+ def connection(self):
144
+ r"""Gets the connection of this ShowServiceContractResponse.
145
+
146
+ :return: The connection of this ShowServiceContractResponse.
147
+ :rtype: str
148
+ """
149
+ return self._connection
150
+
151
+ @connection.setter
152
+ def connection(self, connection):
153
+ r"""Sets the connection of this ShowServiceContractResponse.
154
+
155
+ :param connection: The connection of this ShowServiceContractResponse.
156
+ :type connection: str
157
+ """
158
+ self._connection = connection
159
+
160
+ @property
161
+ def content_length(self):
162
+ r"""Gets the content_length of this ShowServiceContractResponse.
163
+
164
+ :return: The content_length of this ShowServiceContractResponse.
165
+ :rtype: str
166
+ """
167
+ return self._content_length
168
+
169
+ @content_length.setter
170
+ def content_length(self, content_length):
171
+ r"""Sets the content_length of this ShowServiceContractResponse.
172
+
173
+ :param content_length: The content_length of this ShowServiceContractResponse.
174
+ :type content_length: str
175
+ """
176
+ self._content_length = content_length
177
+
178
+ @property
179
+ def date(self):
180
+ r"""Gets the date of this ShowServiceContractResponse.
181
+
182
+ :return: The date of this ShowServiceContractResponse.
183
+ :rtype: str
184
+ """
185
+ return self._date
186
+
187
+ @date.setter
188
+ def date(self, date):
189
+ r"""Sets the date of this ShowServiceContractResponse.
190
+
191
+ :param date: The date of this ShowServiceContractResponse.
192
+ :type date: str
193
+ """
194
+ self._date = date
195
+
196
+ def to_dict(self):
197
+ """Returns the model properties as a dict"""
198
+ result = {}
199
+
200
+ for attr, _ in six.iteritems(self.openapi_types):
201
+ value = getattr(self, attr)
202
+ if isinstance(value, list):
203
+ result[attr] = list(map(
204
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
205
+ value
206
+ ))
207
+ elif hasattr(value, "to_dict"):
208
+ result[attr] = value.to_dict()
209
+ elif isinstance(value, dict):
210
+ result[attr] = dict(map(
211
+ lambda item: (item[0], item[1].to_dict())
212
+ if hasattr(item[1], "to_dict") else item,
213
+ value.items()
214
+ ))
215
+ else:
216
+ if attr in self.sensitive_list:
217
+ result[attr] = "****"
218
+ else:
219
+ result[attr] = value
220
+
221
+ return result
222
+
223
+ def to_str(self):
224
+ """Returns the string representation of the model"""
225
+ import simplejson as json
226
+ if six.PY2:
227
+ import sys
228
+ reload(sys)
229
+ sys.setdefaultencoding("utf-8")
230
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
231
+
232
+ def __repr__(self):
233
+ """For `print`"""
234
+ return self.to_str()
235
+
236
+ def __eq__(self, other):
237
+ """Returns true if both objects are equal"""
238
+ if not isinstance(other, ShowServiceContractResponse):
239
+ return False
240
+
241
+ return self.__dict__ == other.__dict__
242
+
243
+ def __ne__(self, other):
244
+ """Returns true if both objects are not equal"""
245
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowSystemTemplateDetailRequest:
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
+ 'template_name': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'template_name': 'template_name'
25
+ }
26
+
27
+ def __init__(self, template_name=None):
28
+ r"""ShowSystemTemplateDetailRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param template_name: 系统算子模板名称.。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
33
+ :type template_name: str
34
+ """
35
+
36
+
37
+
38
+ self._template_name = None
39
+ self.discriminator = None
40
+
41
+ self.template_name = template_name
42
+
43
+ @property
44
+ def template_name(self):
45
+ r"""Gets the template_name of this ShowSystemTemplateDetailRequest.
46
+
47
+ 系统算子模板名称.。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
48
+
49
+ :return: The template_name of this ShowSystemTemplateDetailRequest.
50
+ :rtype: str
51
+ """
52
+ return self._template_name
53
+
54
+ @template_name.setter
55
+ def template_name(self, template_name):
56
+ r"""Sets the template_name of this ShowSystemTemplateDetailRequest.
57
+
58
+ 系统算子模板名称.。名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符,且不能重名。
59
+
60
+ :param template_name: The template_name of this ShowSystemTemplateDetailRequest.
61
+ :type template_name: str
62
+ """
63
+ self._template_name = template_name
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ShowSystemTemplateDetailRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other
@@ -0,0 +1,212 @@
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 ShowSystemTemplateDetailResponse(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
+ 'provided_actions': 'list[ProvidedAction]',
22
+ 'x_request_id': 'str',
23
+ 'connection': 'str',
24
+ 'content_length': 'str',
25
+ 'date': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'provided_actions': 'provided_actions',
30
+ 'x_request_id': 'x-request-id',
31
+ 'connection': 'Connection',
32
+ 'content_length': 'Content-Length',
33
+ 'date': 'Date'
34
+ }
35
+
36
+ def __init__(self, provided_actions=None, x_request_id=None, connection=None, content_length=None, date=None):
37
+ r"""ShowSystemTemplateDetailResponse
38
+
39
+ The model defined in huaweicloud sdk
40
+
41
+ :param provided_actions:
42
+ :type provided_actions: list[:class:`huaweicloudsdkdwr.v3.ProvidedAction`]
43
+ :param x_request_id:
44
+ :type x_request_id: str
45
+ :param connection:
46
+ :type connection: str
47
+ :param content_length:
48
+ :type content_length: str
49
+ :param date:
50
+ :type date: str
51
+ """
52
+
53
+ super(ShowSystemTemplateDetailResponse, self).__init__()
54
+
55
+ self._provided_actions = None
56
+ self._x_request_id = None
57
+ self._connection = None
58
+ self._content_length = None
59
+ self._date = None
60
+ self.discriminator = None
61
+
62
+ if provided_actions is not None:
63
+ self.provided_actions = provided_actions
64
+ if x_request_id is not None:
65
+ self.x_request_id = x_request_id
66
+ if connection is not None:
67
+ self.connection = connection
68
+ if content_length is not None:
69
+ self.content_length = content_length
70
+ if date is not None:
71
+ self.date = date
72
+
73
+ @property
74
+ def provided_actions(self):
75
+ r"""Gets the provided_actions of this ShowSystemTemplateDetailResponse.
76
+
77
+ :return: The provided_actions of this ShowSystemTemplateDetailResponse.
78
+ :rtype: list[:class:`huaweicloudsdkdwr.v3.ProvidedAction`]
79
+ """
80
+ return self._provided_actions
81
+
82
+ @provided_actions.setter
83
+ def provided_actions(self, provided_actions):
84
+ r"""Sets the provided_actions of this ShowSystemTemplateDetailResponse.
85
+
86
+ :param provided_actions: The provided_actions of this ShowSystemTemplateDetailResponse.
87
+ :type provided_actions: list[:class:`huaweicloudsdkdwr.v3.ProvidedAction`]
88
+ """
89
+ self._provided_actions = provided_actions
90
+
91
+ @property
92
+ def x_request_id(self):
93
+ r"""Gets the x_request_id of this ShowSystemTemplateDetailResponse.
94
+
95
+ :return: The x_request_id of this ShowSystemTemplateDetailResponse.
96
+ :rtype: str
97
+ """
98
+ return self._x_request_id
99
+
100
+ @x_request_id.setter
101
+ def x_request_id(self, x_request_id):
102
+ r"""Sets the x_request_id of this ShowSystemTemplateDetailResponse.
103
+
104
+ :param x_request_id: The x_request_id of this ShowSystemTemplateDetailResponse.
105
+ :type x_request_id: str
106
+ """
107
+ self._x_request_id = x_request_id
108
+
109
+ @property
110
+ def connection(self):
111
+ r"""Gets the connection of this ShowSystemTemplateDetailResponse.
112
+
113
+ :return: The connection of this ShowSystemTemplateDetailResponse.
114
+ :rtype: str
115
+ """
116
+ return self._connection
117
+
118
+ @connection.setter
119
+ def connection(self, connection):
120
+ r"""Sets the connection of this ShowSystemTemplateDetailResponse.
121
+
122
+ :param connection: The connection of this ShowSystemTemplateDetailResponse.
123
+ :type connection: str
124
+ """
125
+ self._connection = connection
126
+
127
+ @property
128
+ def content_length(self):
129
+ r"""Gets the content_length of this ShowSystemTemplateDetailResponse.
130
+
131
+ :return: The content_length of this ShowSystemTemplateDetailResponse.
132
+ :rtype: str
133
+ """
134
+ return self._content_length
135
+
136
+ @content_length.setter
137
+ def content_length(self, content_length):
138
+ r"""Sets the content_length of this ShowSystemTemplateDetailResponse.
139
+
140
+ :param content_length: The content_length of this ShowSystemTemplateDetailResponse.
141
+ :type content_length: str
142
+ """
143
+ self._content_length = content_length
144
+
145
+ @property
146
+ def date(self):
147
+ r"""Gets the date of this ShowSystemTemplateDetailResponse.
148
+
149
+ :return: The date of this ShowSystemTemplateDetailResponse.
150
+ :rtype: str
151
+ """
152
+ return self._date
153
+
154
+ @date.setter
155
+ def date(self, date):
156
+ r"""Sets the date of this ShowSystemTemplateDetailResponse.
157
+
158
+ :param date: The date of this ShowSystemTemplateDetailResponse.
159
+ :type date: str
160
+ """
161
+ self._date = date
162
+
163
+ def to_dict(self):
164
+ """Returns the model properties as a dict"""
165
+ result = {}
166
+
167
+ for attr, _ in six.iteritems(self.openapi_types):
168
+ value = getattr(self, attr)
169
+ if isinstance(value, list):
170
+ result[attr] = list(map(
171
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
172
+ value
173
+ ))
174
+ elif hasattr(value, "to_dict"):
175
+ result[attr] = value.to_dict()
176
+ elif isinstance(value, dict):
177
+ result[attr] = dict(map(
178
+ lambda item: (item[0], item[1].to_dict())
179
+ if hasattr(item[1], "to_dict") else item,
180
+ value.items()
181
+ ))
182
+ else:
183
+ if attr in self.sensitive_list:
184
+ result[attr] = "****"
185
+ else:
186
+ result[attr] = value
187
+
188
+ return result
189
+
190
+ def to_str(self):
191
+ """Returns the string representation of the model"""
192
+ import simplejson as json
193
+ if six.PY2:
194
+ import sys
195
+ reload(sys)
196
+ sys.setdefaultencoding("utf-8")
197
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
198
+
199
+ def __repr__(self):
200
+ """For `print`"""
201
+ return self.to_str()
202
+
203
+ def __eq__(self, other):
204
+ """Returns true if both objects are equal"""
205
+ if not isinstance(other, ShowSystemTemplateDetailResponse):
206
+ return False
207
+
208
+ return self.__dict__ == other.__dict__
209
+
210
+ def __ne__(self, other):
211
+ """Returns true if both objects are not equal"""
212
+ return not self == other