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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BuildUpdateSrlz:
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
+ 'run_workspace': 'str',
21
+ 'run_image_status': 'RunImageStatusEnum'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'run_workspace': 'run_workspace',
26
+ 'run_image_status': 'run_image_status'
27
+ }
28
+
29
+ def __init__(self, run_workspace=None, run_image_status=None):
30
+ r"""BuildUpdateSrlz
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param run_workspace: 运行目录
35
+ :type run_workspace: str
36
+ :param run_image_status: 运行镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
37
+ :type run_image_status: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
38
+ """
39
+
40
+
41
+
42
+ self._run_workspace = None
43
+ self._run_image_status = None
44
+ self.discriminator = None
45
+
46
+ if run_workspace is not None:
47
+ self.run_workspace = run_workspace
48
+ self.run_image_status = run_image_status
49
+
50
+ @property
51
+ def run_workspace(self):
52
+ r"""Gets the run_workspace of this BuildUpdateSrlz.
53
+
54
+ 运行目录
55
+
56
+ :return: The run_workspace of this BuildUpdateSrlz.
57
+ :rtype: str
58
+ """
59
+ return self._run_workspace
60
+
61
+ @run_workspace.setter
62
+ def run_workspace(self, run_workspace):
63
+ r"""Sets the run_workspace of this BuildUpdateSrlz.
64
+
65
+ 运行目录
66
+
67
+ :param run_workspace: The run_workspace of this BuildUpdateSrlz.
68
+ :type run_workspace: str
69
+ """
70
+ self._run_workspace = run_workspace
71
+
72
+ @property
73
+ def run_image_status(self):
74
+ r"""Gets the run_image_status of this BuildUpdateSrlz.
75
+
76
+ 运行镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
77
+
78
+ :return: The run_image_status of this BuildUpdateSrlz.
79
+ :rtype: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
80
+ """
81
+ return self._run_image_status
82
+
83
+ @run_image_status.setter
84
+ def run_image_status(self, run_image_status):
85
+ r"""Sets the run_image_status of this BuildUpdateSrlz.
86
+
87
+ 运行镜像状态 * `0` - Success * `100` - Init * `101` - Init Failed * `200` - To Push * `201` - Uploading
88
+
89
+ :param run_image_status: The run_image_status of this BuildUpdateSrlz.
90
+ :type run_image_status: :class:`huaweicloudsdkoctopus.v2.RunImageStatusEnum`
91
+ """
92
+ self._run_image_status = run_image_status
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, BuildUpdateSrlz):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CategoryF62Enum:
9
+ """
10
+ allowed enum values
11
+ """
12
+ CODE = "code"
13
+ ARTIFACT = "artifact"
14
+ IMAGE = "image"
15
+ """
16
+ Attributes:
17
+ openapi_types (dict): The key is attribute name
18
+ and the value is attribute type.
19
+ attribute_map (dict): The key is attribute name
20
+ and the value is json key in definition.
21
+ """
22
+ sensitive_list = []
23
+
24
+ openapi_types = {
25
+ }
26
+
27
+ attribute_map = {
28
+ }
29
+
30
+ def __init__(self):
31
+ r"""CategoryF62Enum
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ """
36
+
37
+
38
+ self.discriminator = None
39
+
40
+ def to_dict(self):
41
+ """Returns the model properties as a dict"""
42
+ result = {}
43
+
44
+ for attr, _ in six.iteritems(self.openapi_types):
45
+ value = getattr(self, attr)
46
+ if isinstance(value, list):
47
+ result[attr] = list(map(
48
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
49
+ value
50
+ ))
51
+ elif hasattr(value, "to_dict"):
52
+ result[attr] = value.to_dict()
53
+ elif isinstance(value, dict):
54
+ result[attr] = dict(map(
55
+ lambda item: (item[0], item[1].to_dict())
56
+ if hasattr(item[1], "to_dict") else item,
57
+ value.items()
58
+ ))
59
+ else:
60
+ if attr in self.sensitive_list:
61
+ result[attr] = "****"
62
+ else:
63
+ result[attr] = value
64
+
65
+ return result
66
+
67
+ def to_str(self):
68
+ """Returns the string representation of the model"""
69
+ import simplejson as json
70
+ if six.PY2:
71
+ import sys
72
+ reload(sys)
73
+ sys.setdefaultencoding("utf-8")
74
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
75
+
76
+ def __repr__(self):
77
+ """For `print`"""
78
+ return self.to_str()
79
+
80
+ def __eq__(self, other):
81
+ """Returns true if both objects are equal"""
82
+ if not isinstance(other, CategoryF62Enum):
83
+ return False
84
+
85
+ return self.__dict__ == other.__dict__
86
+
87
+ def __ne__(self, other):
88
+ """Returns true if both objects are not equal"""
89
+ return not self == other
@@ -0,0 +1,255 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CompilationCreateSrlz:
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
+ 'git_url': 'str',
21
+ 'git_branch': 'str',
22
+ 'git_sha1': 'str',
23
+ 'compile_command': 'str',
24
+ 'compile_workspace': 'str',
25
+ 'artifact_paths': 'list[str]'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'git_url': 'git_url',
30
+ 'git_branch': 'git_branch',
31
+ 'git_sha1': 'git_sha1',
32
+ 'compile_command': 'compile_command',
33
+ 'compile_workspace': 'compile_workspace',
34
+ 'artifact_paths': 'artifact_paths'
35
+ }
36
+
37
+ def __init__(self, git_url=None, git_branch=None, git_sha1=None, compile_command=None, compile_workspace=None, artifact_paths=None):
38
+ r"""CompilationCreateSrlz
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param git_url: 代码仓库地址
43
+ :type git_url: str
44
+ :param git_branch: 代码分支
45
+ :type git_branch: str
46
+ :param git_sha1: commit id
47
+ :type git_sha1: str
48
+ :param compile_command: 编译命令
49
+ :type compile_command: str
50
+ :param compile_workspace: 编译目录,须在挂载路径下
51
+ :type compile_workspace: str
52
+ :param artifact_paths: 编译产物列表,须在挂载路径下
53
+ :type artifact_paths: list[str]
54
+ """
55
+
56
+
57
+
58
+ self._git_url = None
59
+ self._git_branch = None
60
+ self._git_sha1 = None
61
+ self._compile_command = None
62
+ self._compile_workspace = None
63
+ self._artifact_paths = None
64
+ self.discriminator = None
65
+
66
+ self.git_url = git_url
67
+ self.git_branch = git_branch
68
+ self.git_sha1 = git_sha1
69
+ self.compile_command = compile_command
70
+ if compile_workspace is not None:
71
+ self.compile_workspace = compile_workspace
72
+ self.artifact_paths = artifact_paths
73
+
74
+ @property
75
+ def git_url(self):
76
+ r"""Gets the git_url of this CompilationCreateSrlz.
77
+
78
+ 代码仓库地址
79
+
80
+ :return: The git_url of this CompilationCreateSrlz.
81
+ :rtype: str
82
+ """
83
+ return self._git_url
84
+
85
+ @git_url.setter
86
+ def git_url(self, git_url):
87
+ r"""Sets the git_url of this CompilationCreateSrlz.
88
+
89
+ 代码仓库地址
90
+
91
+ :param git_url: The git_url of this CompilationCreateSrlz.
92
+ :type git_url: str
93
+ """
94
+ self._git_url = git_url
95
+
96
+ @property
97
+ def git_branch(self):
98
+ r"""Gets the git_branch of this CompilationCreateSrlz.
99
+
100
+ 代码分支
101
+
102
+ :return: The git_branch of this CompilationCreateSrlz.
103
+ :rtype: str
104
+ """
105
+ return self._git_branch
106
+
107
+ @git_branch.setter
108
+ def git_branch(self, git_branch):
109
+ r"""Sets the git_branch of this CompilationCreateSrlz.
110
+
111
+ 代码分支
112
+
113
+ :param git_branch: The git_branch of this CompilationCreateSrlz.
114
+ :type git_branch: str
115
+ """
116
+ self._git_branch = git_branch
117
+
118
+ @property
119
+ def git_sha1(self):
120
+ r"""Gets the git_sha1 of this CompilationCreateSrlz.
121
+
122
+ commit id
123
+
124
+ :return: The git_sha1 of this CompilationCreateSrlz.
125
+ :rtype: str
126
+ """
127
+ return self._git_sha1
128
+
129
+ @git_sha1.setter
130
+ def git_sha1(self, git_sha1):
131
+ r"""Sets the git_sha1 of this CompilationCreateSrlz.
132
+
133
+ commit id
134
+
135
+ :param git_sha1: The git_sha1 of this CompilationCreateSrlz.
136
+ :type git_sha1: str
137
+ """
138
+ self._git_sha1 = git_sha1
139
+
140
+ @property
141
+ def compile_command(self):
142
+ r"""Gets the compile_command of this CompilationCreateSrlz.
143
+
144
+ 编译命令
145
+
146
+ :return: The compile_command of this CompilationCreateSrlz.
147
+ :rtype: str
148
+ """
149
+ return self._compile_command
150
+
151
+ @compile_command.setter
152
+ def compile_command(self, compile_command):
153
+ r"""Sets the compile_command of this CompilationCreateSrlz.
154
+
155
+ 编译命令
156
+
157
+ :param compile_command: The compile_command of this CompilationCreateSrlz.
158
+ :type compile_command: str
159
+ """
160
+ self._compile_command = compile_command
161
+
162
+ @property
163
+ def compile_workspace(self):
164
+ r"""Gets the compile_workspace of this CompilationCreateSrlz.
165
+
166
+ 编译目录,须在挂载路径下
167
+
168
+ :return: The compile_workspace of this CompilationCreateSrlz.
169
+ :rtype: str
170
+ """
171
+ return self._compile_workspace
172
+
173
+ @compile_workspace.setter
174
+ def compile_workspace(self, compile_workspace):
175
+ r"""Sets the compile_workspace of this CompilationCreateSrlz.
176
+
177
+ 编译目录,须在挂载路径下
178
+
179
+ :param compile_workspace: The compile_workspace of this CompilationCreateSrlz.
180
+ :type compile_workspace: str
181
+ """
182
+ self._compile_workspace = compile_workspace
183
+
184
+ @property
185
+ def artifact_paths(self):
186
+ r"""Gets the artifact_paths of this CompilationCreateSrlz.
187
+
188
+ 编译产物列表,须在挂载路径下
189
+
190
+ :return: The artifact_paths of this CompilationCreateSrlz.
191
+ :rtype: list[str]
192
+ """
193
+ return self._artifact_paths
194
+
195
+ @artifact_paths.setter
196
+ def artifact_paths(self, artifact_paths):
197
+ r"""Sets the artifact_paths of this CompilationCreateSrlz.
198
+
199
+ 编译产物列表,须在挂载路径下
200
+
201
+ :param artifact_paths: The artifact_paths of this CompilationCreateSrlz.
202
+ :type artifact_paths: list[str]
203
+ """
204
+ self._artifact_paths = artifact_paths
205
+
206
+ def to_dict(self):
207
+ """Returns the model properties as a dict"""
208
+ result = {}
209
+
210
+ for attr, _ in six.iteritems(self.openapi_types):
211
+ value = getattr(self, attr)
212
+ if isinstance(value, list):
213
+ result[attr] = list(map(
214
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
215
+ value
216
+ ))
217
+ elif hasattr(value, "to_dict"):
218
+ result[attr] = value.to_dict()
219
+ elif isinstance(value, dict):
220
+ result[attr] = dict(map(
221
+ lambda item: (item[0], item[1].to_dict())
222
+ if hasattr(item[1], "to_dict") else item,
223
+ value.items()
224
+ ))
225
+ else:
226
+ if attr in self.sensitive_list:
227
+ result[attr] = "****"
228
+ else:
229
+ result[attr] = value
230
+
231
+ return result
232
+
233
+ def to_str(self):
234
+ """Returns the string representation of the model"""
235
+ import simplejson as json
236
+ if six.PY2:
237
+ import sys
238
+ reload(sys)
239
+ sys.setdefaultencoding("utf-8")
240
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
241
+
242
+ def __repr__(self):
243
+ """For `print`"""
244
+ return self.to_str()
245
+
246
+ def __eq__(self, other):
247
+ """Returns true if both objects are equal"""
248
+ if not isinstance(other, CompilationCreateSrlz):
249
+ return False
250
+
251
+ return self.__dict__ == other.__dict__
252
+
253
+ def __ne__(self, other):
254
+ """Returns true if both objects are not equal"""
255
+ return not self == other