huaweicloudsdkoctopus 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.
Files changed (126) hide show
  1. huaweicloudsdkoctopus/__init__.py +0 -0
  2. huaweicloudsdkoctopus/v2/__init__.py +122 -0
  3. huaweicloudsdkoctopus/v2/model/__init__.py +119 -0
  4. huaweicloudsdkoctopus/v2/model/alg_image_create_srlz.py +350 -0
  5. huaweicloudsdkoctopus/v2/model/alg_image_list_srlz.py +266 -0
  6. huaweicloudsdkoctopus/v2/model/algorithm_create_srlz.py +399 -0
  7. huaweicloudsdkoctopus/v2/model/algorithm_list_srlz.py +266 -0
  8. huaweicloudsdkoctopus/v2/model/batch_config_abc_info_srlz.py +142 -0
  9. huaweicloudsdkoctopus/v2/model/batch_config_evaluation_info_srlz.py +142 -0
  10. huaweicloudsdkoctopus/v2/model/batch_config_image_info_srlz.py +198 -0
  11. huaweicloudsdkoctopus/v2/model/batch_config_msg_notify_srlz.py +115 -0
  12. huaweicloudsdkoctopus/v2/model/batch_config_scenario_srlz.py +173 -0
  13. huaweicloudsdkoctopus/v2/model/batch_config_srlz.py +806 -0
  14. huaweicloudsdkoctopus/v2/model/batch_create_request.py +198 -0
  15. huaweicloudsdkoctopus/v2/model/batch_srlz.py +604 -0
  16. huaweicloudsdkoctopus/v2/model/build_create_srlz.py +115 -0
  17. huaweicloudsdkoctopus/v2/model/build_update_srlz.py +143 -0
  18. huaweicloudsdkoctopus/v2/model/category_f62_enum.py +89 -0
  19. huaweicloudsdkoctopus/v2/model/compilation_create_srlz.py +255 -0
  20. huaweicloudsdkoctopus/v2/model/compilation_update_srlz.py +311 -0
  21. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_request.py +111 -0
  22. huaweicloudsdkoctopus/v2/model/create_sim_algorithm_images_response.py +361 -0
  23. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_request.py +111 -0
  24. huaweicloudsdkoctopus/v2/model/create_sim_algorithms_response.py +404 -0
  25. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_request.py +111 -0
  26. huaweicloudsdkoctopus/v2/model/create_sim_batch_configs_response.py +819 -0
  27. huaweicloudsdkoctopus/v2/model/create_sim_batches_request.py +111 -0
  28. huaweicloudsdkoctopus/v2/model/create_sim_batches_response.py +619 -0
  29. huaweicloudsdkoctopus/v2/model/create_sim_extensions_request.py +111 -0
  30. huaweicloudsdkoctopus/v2/model/create_sim_extensions_response.py +314 -0
  31. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_request.py +111 -0
  32. huaweicloudsdkoctopus/v2/model/create_sim_sm_maps_response.py +253 -0
  33. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_request.py +139 -0
  34. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_files_response.py +377 -0
  35. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_request.py +111 -0
  36. huaweicloudsdkoctopus/v2/model/create_sim_sm_scenarios_response.py +618 -0
  37. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_request.py +114 -0
  38. huaweicloudsdkoctopus/v2/model/delete_sim_algorithm_images_response.py +85 -0
  39. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_request.py +114 -0
  40. huaweicloudsdkoctopus/v2/model/delete_sim_algorithms_response.py +85 -0
  41. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_request.py +114 -0
  42. huaweicloudsdkoctopus/v2/model/delete_sim_batch_configs_response.py +85 -0
  43. huaweicloudsdkoctopus/v2/model/delete_sim_batches_request.py +114 -0
  44. huaweicloudsdkoctopus/v2/model/delete_sim_batches_response.py +85 -0
  45. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_request.py +114 -0
  46. huaweicloudsdkoctopus/v2/model/delete_sim_extensions_response.py +85 -0
  47. huaweicloudsdkoctopus/v2/model/extension_srlz.py +353 -0
  48. huaweicloudsdkoctopus/v2/model/extensions_create_srlz.py +306 -0
  49. huaweicloudsdkoctopus/v2/model/extensions_list_srlz.py +291 -0
  50. huaweicloudsdkoctopus/v2/model/family_enum.py +91 -0
  51. huaweicloudsdkoctopus/v2/model/file_create_req_srlz.py +142 -0
  52. huaweicloudsdkoctopus/v2/model/file_create_srlz.py +366 -0
  53. huaweicloudsdkoctopus/v2/model/file_nested_create_req_srlz.py +142 -0
  54. huaweicloudsdkoctopus/v2/model/file_nested_srlz.py +279 -0
  55. huaweicloudsdkoctopus/v2/model/file_retrieve_srlz.py +310 -0
  56. huaweicloudsdkoctopus/v2/model/label_brief_srlz.py +279 -0
  57. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_request.py +339 -0
  58. huaweicloudsdkoctopus/v2/model/list_sim_algorithm_images_response.py +185 -0
  59. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_request.py +281 -0
  60. huaweicloudsdkoctopus/v2/model/list_sim_algorithms_response.py +185 -0
  61. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_request.py +625 -0
  62. huaweicloudsdkoctopus/v2/model/list_sim_batch_configs_response.py +185 -0
  63. huaweicloudsdkoctopus/v2/model/list_sim_batches_request.py +426 -0
  64. huaweicloudsdkoctopus/v2/model/list_sim_batches_response.py +185 -0
  65. huaweicloudsdkoctopus/v2/model/list_sim_extensions_request.py +202 -0
  66. huaweicloudsdkoctopus/v2/model/list_sim_extensions_response.py +185 -0
  67. huaweicloudsdkoctopus/v2/model/list_sim_simulations_request.py +401 -0
  68. huaweicloudsdkoctopus/v2/model/list_sim_simulations_response.py +189 -0
  69. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_request.py +547 -0
  70. huaweicloudsdkoctopus/v2/model/list_sim_sm_scenarios_response.py +185 -0
  71. huaweicloudsdkoctopus/v2/model/map_create_req_srlz.py +162 -0
  72. huaweicloudsdkoctopus/v2/model/map_version_enum.py +91 -0
  73. huaweicloudsdkoctopus/v2/model/mutable_file_srlz.py +114 -0
  74. huaweicloudsdkoctopus/v2/model/patched_alg_image_update_srlz.py +302 -0
  75. huaweicloudsdkoctopus/v2/model/patched_algorithm_update_srlz.py +796 -0
  76. huaweicloudsdkoctopus/v2/model/patched_file_detail_srlz.py +144 -0
  77. huaweicloudsdkoctopus/v2/model/post_response.py +140 -0
  78. huaweicloudsdkoctopus/v2/model/post_response_field.py +236 -0
  79. huaweicloudsdkoctopus/v2/model/priority_enum.py +91 -0
  80. huaweicloudsdkoctopus/v2/model/record_mode_enum.py +88 -0
  81. huaweicloudsdkoctopus/v2/model/run_image_status_enum.py +91 -0
  82. huaweicloudsdkoctopus/v2/model/run_srlz.py +254 -0
  83. huaweicloudsdkoctopus/v2/model/scenario_create_req_srlz.py +439 -0
  84. huaweicloudsdkoctopus/v2/model/scenario_list_srlz.py +548 -0
  85. huaweicloudsdkoctopus/v2/model/scenario_status_enum.py +92 -0
  86. huaweicloudsdkoctopus/v2/model/scenario_version_enum.py +91 -0
  87. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_request.py +114 -0
  88. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_image_response.py +361 -0
  89. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_request.py +114 -0
  90. huaweicloudsdkoctopus/v2/model/show_sim_algorithm_response.py +377 -0
  91. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_request.py +114 -0
  92. huaweicloudsdkoctopus/v2/model/show_sim_batch_config_response.py +819 -0
  93. huaweicloudsdkoctopus/v2/model/show_sim_extension_request.py +110 -0
  94. huaweicloudsdkoctopus/v2/model/show_sim_extension_response.py +353 -0
  95. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_request.py +142 -0
  96. huaweicloudsdkoctopus/v2/model/show_sim_simulations_files_response.py +290 -0
  97. huaweicloudsdkoctopus/v2/model/simulation_eva_result_metric_srlz.py +260 -0
  98. huaweicloudsdkoctopus/v2/model/simulation_eva_result_srlz.py +231 -0
  99. huaweicloudsdkoctopus/v2/model/simulation_evaluation_metric_srlz.py +289 -0
  100. huaweicloudsdkoctopus/v2/model/simulation_evaluation_srlz.py +231 -0
  101. huaweicloudsdkoctopus/v2/model/simulation_file_path_srlz.py +347 -0
  102. huaweicloudsdkoctopus/v2/model/simulation_srlz.py +708 -0
  103. huaweicloudsdkoctopus/v2/model/status15e_enum.py +99 -0
  104. huaweicloudsdkoctopus/v2/model/status6a7_enum.py +106 -0
  105. huaweicloudsdkoctopus/v2/model/type87e_enum.py +88 -0
  106. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_request.py +139 -0
  107. huaweicloudsdkoctopus/v2/model/update_sim_algorithm_images_response.py +303 -0
  108. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_request.py +139 -0
  109. huaweicloudsdkoctopus/v2/model/update_sim_algorithms_response.py +431 -0
  110. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_request.py +138 -0
  111. huaweicloudsdkoctopus/v2/model/update_sim_batch_configs_extensions_response.py +85 -0
  112. huaweicloudsdkoctopus/v2/model/update_sim_extensions_request.py +139 -0
  113. huaweicloudsdkoctopus/v2/model/update_sim_extensions_response.py +356 -0
  114. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_request.py +167 -0
  115. huaweicloudsdkoctopus/v2/model/update_sim_sm_maps_files_response.py +435 -0
  116. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_request.py +167 -0
  117. huaweicloudsdkoctopus/v2/model/update_sim_sm_scenarios_files_response.py +435 -0
  118. huaweicloudsdkoctopus/v2/octopus_async_client.py +2262 -0
  119. huaweicloudsdkoctopus/v2/octopus_client.py +2259 -0
  120. huaweicloudsdkoctopus/v2/region/__init__.py +0 -0
  121. huaweicloudsdkoctopus/v2/region/octopus_region.py +31 -0
  122. huaweicloudsdkoctopus-3.1.160.dist-info/LICENSE +13 -0
  123. huaweicloudsdkoctopus-3.1.160.dist-info/METADATA +26 -0
  124. huaweicloudsdkoctopus-3.1.160.dist-info/RECORD +126 -0
  125. huaweicloudsdkoctopus-3.1.160.dist-info/WHEEL +5 -0
  126. huaweicloudsdkoctopus-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,185 @@
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 ListSimSmScenariosResponse(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
+ 'count': 'int',
22
+ 'next': 'str',
23
+ 'previous': 'str',
24
+ 'results': 'list[ScenarioListSrlz]'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'count': 'count',
29
+ 'next': 'next',
30
+ 'previous': 'previous',
31
+ 'results': 'results'
32
+ }
33
+
34
+ def __init__(self, count=None, next=None, previous=None, results=None):
35
+ r"""ListSimSmScenariosResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param count:
40
+ :type count: int
41
+ :param next:
42
+ :type next: str
43
+ :param previous:
44
+ :type previous: str
45
+ :param results:
46
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.ScenarioListSrlz`]
47
+ """
48
+
49
+ super(ListSimSmScenariosResponse, self).__init__()
50
+
51
+ self._count = None
52
+ self._next = None
53
+ self._previous = None
54
+ self._results = None
55
+ self.discriminator = None
56
+
57
+ if count is not None:
58
+ self.count = count
59
+ self.next = next
60
+ self.previous = previous
61
+ if results is not None:
62
+ self.results = results
63
+
64
+ @property
65
+ def count(self):
66
+ r"""Gets the count of this ListSimSmScenariosResponse.
67
+
68
+ :return: The count of this ListSimSmScenariosResponse.
69
+ :rtype: int
70
+ """
71
+ return self._count
72
+
73
+ @count.setter
74
+ def count(self, count):
75
+ r"""Sets the count of this ListSimSmScenariosResponse.
76
+
77
+ :param count: The count of this ListSimSmScenariosResponse.
78
+ :type count: int
79
+ """
80
+ self._count = count
81
+
82
+ @property
83
+ def next(self):
84
+ r"""Gets the next of this ListSimSmScenariosResponse.
85
+
86
+ :return: The next of this ListSimSmScenariosResponse.
87
+ :rtype: str
88
+ """
89
+ return self._next
90
+
91
+ @next.setter
92
+ def next(self, next):
93
+ r"""Sets the next of this ListSimSmScenariosResponse.
94
+
95
+ :param next: The next of this ListSimSmScenariosResponse.
96
+ :type next: str
97
+ """
98
+ self._next = next
99
+
100
+ @property
101
+ def previous(self):
102
+ r"""Gets the previous of this ListSimSmScenariosResponse.
103
+
104
+ :return: The previous of this ListSimSmScenariosResponse.
105
+ :rtype: str
106
+ """
107
+ return self._previous
108
+
109
+ @previous.setter
110
+ def previous(self, previous):
111
+ r"""Sets the previous of this ListSimSmScenariosResponse.
112
+
113
+ :param previous: The previous of this ListSimSmScenariosResponse.
114
+ :type previous: str
115
+ """
116
+ self._previous = previous
117
+
118
+ @property
119
+ def results(self):
120
+ r"""Gets the results of this ListSimSmScenariosResponse.
121
+
122
+ :return: The results of this ListSimSmScenariosResponse.
123
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.ScenarioListSrlz`]
124
+ """
125
+ return self._results
126
+
127
+ @results.setter
128
+ def results(self, results):
129
+ r"""Sets the results of this ListSimSmScenariosResponse.
130
+
131
+ :param results: The results of this ListSimSmScenariosResponse.
132
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.ScenarioListSrlz`]
133
+ """
134
+ self._results = results
135
+
136
+ def to_dict(self):
137
+ """Returns the model properties as a dict"""
138
+ result = {}
139
+
140
+ for attr, _ in six.iteritems(self.openapi_types):
141
+ value = getattr(self, attr)
142
+ if isinstance(value, list):
143
+ result[attr] = list(map(
144
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
145
+ value
146
+ ))
147
+ elif hasattr(value, "to_dict"):
148
+ result[attr] = value.to_dict()
149
+ elif isinstance(value, dict):
150
+ result[attr] = dict(map(
151
+ lambda item: (item[0], item[1].to_dict())
152
+ if hasattr(item[1], "to_dict") else item,
153
+ value.items()
154
+ ))
155
+ else:
156
+ if attr in self.sensitive_list:
157
+ result[attr] = "****"
158
+ else:
159
+ result[attr] = value
160
+
161
+ return result
162
+
163
+ def to_str(self):
164
+ """Returns the string representation of the model"""
165
+ import simplejson as json
166
+ if six.PY2:
167
+ import sys
168
+ reload(sys)
169
+ sys.setdefaultencoding("utf-8")
170
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
171
+
172
+ def __repr__(self):
173
+ """For `print`"""
174
+ return self.to_str()
175
+
176
+ def __eq__(self, other):
177
+ """Returns true if both objects are equal"""
178
+ if not isinstance(other, ListSimSmScenariosResponse):
179
+ return False
180
+
181
+ return self.__dict__ == other.__dict__
182
+
183
+ def __ne__(self, other):
184
+ """Returns true if both objects are not equal"""
185
+ return not self == other
@@ -0,0 +1,162 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MapCreateReqSrlz:
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
+ 'file': 'FileCreateReqSrlz',
21
+ 'version': 'MapVersionEnum',
22
+ 'agreement_confirm': 'bool'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'file': 'file',
27
+ 'version': 'version',
28
+ 'agreement_confirm': 'agreement_confirm'
29
+ }
30
+
31
+ def __init__(self, file=None, version=None, agreement_confirm=None):
32
+ r"""MapCreateReqSrlz
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param file:
37
+ :type file: :class:`huaweicloudsdkoctopus.v2.FileCreateReqSrlz`
38
+ :param version:
39
+ :type version: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
40
+ :param agreement_confirm: 是否同意协议,必须为true
41
+ :type agreement_confirm: bool
42
+ """
43
+
44
+
45
+
46
+ self._file = None
47
+ self._version = None
48
+ self._agreement_confirm = None
49
+ self.discriminator = None
50
+
51
+ self.file = file
52
+ self.version = version
53
+ self.agreement_confirm = agreement_confirm
54
+
55
+ @property
56
+ def file(self):
57
+ r"""Gets the file of this MapCreateReqSrlz.
58
+
59
+ :return: The file of this MapCreateReqSrlz.
60
+ :rtype: :class:`huaweicloudsdkoctopus.v2.FileCreateReqSrlz`
61
+ """
62
+ return self._file
63
+
64
+ @file.setter
65
+ def file(self, file):
66
+ r"""Sets the file of this MapCreateReqSrlz.
67
+
68
+ :param file: The file of this MapCreateReqSrlz.
69
+ :type file: :class:`huaweicloudsdkoctopus.v2.FileCreateReqSrlz`
70
+ """
71
+ self._file = file
72
+
73
+ @property
74
+ def version(self):
75
+ r"""Gets the version of this MapCreateReqSrlz.
76
+
77
+ :return: The version of this MapCreateReqSrlz.
78
+ :rtype: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
79
+ """
80
+ return self._version
81
+
82
+ @version.setter
83
+ def version(self, version):
84
+ r"""Sets the version of this MapCreateReqSrlz.
85
+
86
+ :param version: The version of this MapCreateReqSrlz.
87
+ :type version: :class:`huaweicloudsdkoctopus.v2.MapVersionEnum`
88
+ """
89
+ self._version = version
90
+
91
+ @property
92
+ def agreement_confirm(self):
93
+ r"""Gets the agreement_confirm of this MapCreateReqSrlz.
94
+
95
+ 是否同意协议,必须为true
96
+
97
+ :return: The agreement_confirm of this MapCreateReqSrlz.
98
+ :rtype: bool
99
+ """
100
+ return self._agreement_confirm
101
+
102
+ @agreement_confirm.setter
103
+ def agreement_confirm(self, agreement_confirm):
104
+ r"""Sets the agreement_confirm of this MapCreateReqSrlz.
105
+
106
+ 是否同意协议,必须为true
107
+
108
+ :param agreement_confirm: The agreement_confirm of this MapCreateReqSrlz.
109
+ :type agreement_confirm: bool
110
+ """
111
+ self._agreement_confirm = agreement_confirm
112
+
113
+ def to_dict(self):
114
+ """Returns the model properties as a dict"""
115
+ result = {}
116
+
117
+ for attr, _ in six.iteritems(self.openapi_types):
118
+ value = getattr(self, attr)
119
+ if isinstance(value, list):
120
+ result[attr] = list(map(
121
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
122
+ value
123
+ ))
124
+ elif hasattr(value, "to_dict"):
125
+ result[attr] = value.to_dict()
126
+ elif isinstance(value, dict):
127
+ result[attr] = dict(map(
128
+ lambda item: (item[0], item[1].to_dict())
129
+ if hasattr(item[1], "to_dict") else item,
130
+ value.items()
131
+ ))
132
+ else:
133
+ if attr in self.sensitive_list:
134
+ result[attr] = "****"
135
+ else:
136
+ result[attr] = value
137
+
138
+ return result
139
+
140
+ def to_str(self):
141
+ """Returns the string representation of the model"""
142
+ import simplejson as json
143
+ if six.PY2:
144
+ import sys
145
+ reload(sys)
146
+ sys.setdefaultencoding("utf-8")
147
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
148
+
149
+ def __repr__(self):
150
+ """For `print`"""
151
+ return self.to_str()
152
+
153
+ def __eq__(self, other):
154
+ """Returns true if both objects are equal"""
155
+ if not isinstance(other, MapCreateReqSrlz):
156
+ return False
157
+
158
+ return self.__dict__ == other.__dict__
159
+
160
+ def __ne__(self, other):
161
+ """Returns true if both objects are not equal"""
162
+ return not self == other
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MapVersionEnum:
9
+ """
10
+ allowed enum values
11
+ """
12
+ V1_4_0 = "v1.4.0"
13
+ V1_5_0 = "v1.5.0"
14
+ V1_6_0 = "v1.6.0"
15
+ V1_6_1 = "v1.6.1"
16
+ V1_7_0 = "v1.7.0"
17
+ """
18
+ Attributes:
19
+ openapi_types (dict): The key is attribute name
20
+ and the value is attribute type.
21
+ attribute_map (dict): The key is attribute name
22
+ and the value is json key in definition.
23
+ """
24
+ sensitive_list = []
25
+
26
+ openapi_types = {
27
+ }
28
+
29
+ attribute_map = {
30
+ }
31
+
32
+ def __init__(self):
33
+ r"""MapVersionEnum
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ """
38
+
39
+
40
+ self.discriminator = None
41
+
42
+ def to_dict(self):
43
+ """Returns the model properties as a dict"""
44
+ result = {}
45
+
46
+ for attr, _ in six.iteritems(self.openapi_types):
47
+ value = getattr(self, attr)
48
+ if isinstance(value, list):
49
+ result[attr] = list(map(
50
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
51
+ value
52
+ ))
53
+ elif hasattr(value, "to_dict"):
54
+ result[attr] = value.to_dict()
55
+ elif isinstance(value, dict):
56
+ result[attr] = dict(map(
57
+ lambda item: (item[0], item[1].to_dict())
58
+ if hasattr(item[1], "to_dict") else item,
59
+ value.items()
60
+ ))
61
+ else:
62
+ if attr in self.sensitive_list:
63
+ result[attr] = "****"
64
+ else:
65
+ result[attr] = value
66
+
67
+ return result
68
+
69
+ def to_str(self):
70
+ """Returns the string representation of the model"""
71
+ import simplejson as json
72
+ if six.PY2:
73
+ import sys
74
+ reload(sys)
75
+ sys.setdefaultencoding("utf-8")
76
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
77
+
78
+ def __repr__(self):
79
+ """For `print`"""
80
+ return self.to_str()
81
+
82
+ def __eq__(self, other):
83
+ """Returns true if both objects are equal"""
84
+ if not isinstance(other, MapVersionEnum):
85
+ return False
86
+
87
+ return self.__dict__ == other.__dict__
88
+
89
+ def __ne__(self, other):
90
+ """Returns true if both objects are not equal"""
91
+ 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 MutableFileSrlz:
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
+ 'content': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'content': 'content'
25
+ }
26
+
27
+ def __init__(self, content=None):
28
+ r"""MutableFileSrlz
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param content: 内容
33
+ :type content: str
34
+ """
35
+
36
+
37
+
38
+ self._content = None
39
+ self.discriminator = None
40
+
41
+ self.content = content
42
+
43
+ @property
44
+ def content(self):
45
+ r"""Gets the content of this MutableFileSrlz.
46
+
47
+ 内容
48
+
49
+ :return: The content of this MutableFileSrlz.
50
+ :rtype: str
51
+ """
52
+ return self._content
53
+
54
+ @content.setter
55
+ def content(self, content):
56
+ r"""Sets the content of this MutableFileSrlz.
57
+
58
+ 内容
59
+
60
+ :param content: The content of this MutableFileSrlz.
61
+ :type content: str
62
+ """
63
+ self._content = content
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, MutableFileSrlz):
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