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