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 ListSimBatchesResponse(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[BatchSrlz]'
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"""ListSimBatchesResponse
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.BatchSrlz`]
47
+ """
48
+
49
+ super(ListSimBatchesResponse, 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 ListSimBatchesResponse.
67
+
68
+ :return: The count of this ListSimBatchesResponse.
69
+ :rtype: int
70
+ """
71
+ return self._count
72
+
73
+ @count.setter
74
+ def count(self, count):
75
+ r"""Sets the count of this ListSimBatchesResponse.
76
+
77
+ :param count: The count of this ListSimBatchesResponse.
78
+ :type count: int
79
+ """
80
+ self._count = count
81
+
82
+ @property
83
+ def next(self):
84
+ r"""Gets the next of this ListSimBatchesResponse.
85
+
86
+ :return: The next of this ListSimBatchesResponse.
87
+ :rtype: str
88
+ """
89
+ return self._next
90
+
91
+ @next.setter
92
+ def next(self, next):
93
+ r"""Sets the next of this ListSimBatchesResponse.
94
+
95
+ :param next: The next of this ListSimBatchesResponse.
96
+ :type next: str
97
+ """
98
+ self._next = next
99
+
100
+ @property
101
+ def previous(self):
102
+ r"""Gets the previous of this ListSimBatchesResponse.
103
+
104
+ :return: The previous of this ListSimBatchesResponse.
105
+ :rtype: str
106
+ """
107
+ return self._previous
108
+
109
+ @previous.setter
110
+ def previous(self, previous):
111
+ r"""Sets the previous of this ListSimBatchesResponse.
112
+
113
+ :param previous: The previous of this ListSimBatchesResponse.
114
+ :type previous: str
115
+ """
116
+ self._previous = previous
117
+
118
+ @property
119
+ def results(self):
120
+ r"""Gets the results of this ListSimBatchesResponse.
121
+
122
+ :return: The results of this ListSimBatchesResponse.
123
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.BatchSrlz`]
124
+ """
125
+ return self._results
126
+
127
+ @results.setter
128
+ def results(self, results):
129
+ r"""Sets the results of this ListSimBatchesResponse.
130
+
131
+ :param results: The results of this ListSimBatchesResponse.
132
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.BatchSrlz`]
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, ListSimBatchesResponse):
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,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSimExtensionsRequest:
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
+ 'offset': 'int',
21
+ 'limit': 'int',
22
+ 'ordering': 'str',
23
+ 'search': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'offset': 'offset',
28
+ 'limit': 'limit',
29
+ 'ordering': 'ordering',
30
+ 'search': 'search'
31
+ }
32
+
33
+ def __init__(self, offset=None, limit=None, ordering=None, search=None):
34
+ r"""ListSimExtensionsRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param offset: A page number within the paginated result set.
39
+ :type offset: int
40
+ :param limit: Number of results to return per page.default_limit = 10.
41
+ :type limit: int
42
+ :param ordering: Which field to use when ordering the results.
43
+ :type ordering: str
44
+ :param search: A search term.
45
+ :type search: str
46
+ """
47
+
48
+
49
+
50
+ self._offset = None
51
+ self._limit = None
52
+ self._ordering = None
53
+ self._search = None
54
+ self.discriminator = None
55
+
56
+ if offset is not None:
57
+ self.offset = offset
58
+ if limit is not None:
59
+ self.limit = limit
60
+ if ordering is not None:
61
+ self.ordering = ordering
62
+ if search is not None:
63
+ self.search = search
64
+
65
+ @property
66
+ def offset(self):
67
+ r"""Gets the offset of this ListSimExtensionsRequest.
68
+
69
+ A page number within the paginated result set.
70
+
71
+ :return: The offset of this ListSimExtensionsRequest.
72
+ :rtype: int
73
+ """
74
+ return self._offset
75
+
76
+ @offset.setter
77
+ def offset(self, offset):
78
+ r"""Sets the offset of this ListSimExtensionsRequest.
79
+
80
+ A page number within the paginated result set.
81
+
82
+ :param offset: The offset of this ListSimExtensionsRequest.
83
+ :type offset: int
84
+ """
85
+ self._offset = offset
86
+
87
+ @property
88
+ def limit(self):
89
+ r"""Gets the limit of this ListSimExtensionsRequest.
90
+
91
+ Number of results to return per page.default_limit = 10.
92
+
93
+ :return: The limit of this ListSimExtensionsRequest.
94
+ :rtype: int
95
+ """
96
+ return self._limit
97
+
98
+ @limit.setter
99
+ def limit(self, limit):
100
+ r"""Sets the limit of this ListSimExtensionsRequest.
101
+
102
+ Number of results to return per page.default_limit = 10.
103
+
104
+ :param limit: The limit of this ListSimExtensionsRequest.
105
+ :type limit: int
106
+ """
107
+ self._limit = limit
108
+
109
+ @property
110
+ def ordering(self):
111
+ r"""Gets the ordering of this ListSimExtensionsRequest.
112
+
113
+ Which field to use when ordering the results.
114
+
115
+ :return: The ordering of this ListSimExtensionsRequest.
116
+ :rtype: str
117
+ """
118
+ return self._ordering
119
+
120
+ @ordering.setter
121
+ def ordering(self, ordering):
122
+ r"""Sets the ordering of this ListSimExtensionsRequest.
123
+
124
+ Which field to use when ordering the results.
125
+
126
+ :param ordering: The ordering of this ListSimExtensionsRequest.
127
+ :type ordering: str
128
+ """
129
+ self._ordering = ordering
130
+
131
+ @property
132
+ def search(self):
133
+ r"""Gets the search of this ListSimExtensionsRequest.
134
+
135
+ A search term.
136
+
137
+ :return: The search of this ListSimExtensionsRequest.
138
+ :rtype: str
139
+ """
140
+ return self._search
141
+
142
+ @search.setter
143
+ def search(self, search):
144
+ r"""Sets the search of this ListSimExtensionsRequest.
145
+
146
+ A search term.
147
+
148
+ :param search: The search of this ListSimExtensionsRequest.
149
+ :type search: str
150
+ """
151
+ self._search = search
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, ListSimExtensionsRequest):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -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 ListSimExtensionsResponse(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[ExtensionsListSrlz]'
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"""ListSimExtensionsResponse
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.ExtensionsListSrlz`]
47
+ """
48
+
49
+ super(ListSimExtensionsResponse, 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 ListSimExtensionsResponse.
67
+
68
+ :return: The count of this ListSimExtensionsResponse.
69
+ :rtype: int
70
+ """
71
+ return self._count
72
+
73
+ @count.setter
74
+ def count(self, count):
75
+ r"""Sets the count of this ListSimExtensionsResponse.
76
+
77
+ :param count: The count of this ListSimExtensionsResponse.
78
+ :type count: int
79
+ """
80
+ self._count = count
81
+
82
+ @property
83
+ def next(self):
84
+ r"""Gets the next of this ListSimExtensionsResponse.
85
+
86
+ :return: The next of this ListSimExtensionsResponse.
87
+ :rtype: str
88
+ """
89
+ return self._next
90
+
91
+ @next.setter
92
+ def next(self, next):
93
+ r"""Sets the next of this ListSimExtensionsResponse.
94
+
95
+ :param next: The next of this ListSimExtensionsResponse.
96
+ :type next: str
97
+ """
98
+ self._next = next
99
+
100
+ @property
101
+ def previous(self):
102
+ r"""Gets the previous of this ListSimExtensionsResponse.
103
+
104
+ :return: The previous of this ListSimExtensionsResponse.
105
+ :rtype: str
106
+ """
107
+ return self._previous
108
+
109
+ @previous.setter
110
+ def previous(self, previous):
111
+ r"""Sets the previous of this ListSimExtensionsResponse.
112
+
113
+ :param previous: The previous of this ListSimExtensionsResponse.
114
+ :type previous: str
115
+ """
116
+ self._previous = previous
117
+
118
+ @property
119
+ def results(self):
120
+ r"""Gets the results of this ListSimExtensionsResponse.
121
+
122
+ :return: The results of this ListSimExtensionsResponse.
123
+ :rtype: list[:class:`huaweicloudsdkoctopus.v2.ExtensionsListSrlz`]
124
+ """
125
+ return self._results
126
+
127
+ @results.setter
128
+ def results(self, results):
129
+ r"""Sets the results of this ListSimExtensionsResponse.
130
+
131
+ :param results: The results of this ListSimExtensionsResponse.
132
+ :type results: list[:class:`huaweicloudsdkoctopus.v2.ExtensionsListSrlz`]
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, ListSimExtensionsResponse):
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