huaweicloudsdkaom 3.1.160__py3-none-any.whl → 3.1.161__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkaom might be problematic. Click here for more details.

@@ -6,14 +6,11 @@ from huaweicloudsdkaom.v1.aom_client import AomClient
6
6
  from huaweicloudsdkaom.v1.aom_async_client import AomAsyncClient
7
7
 
8
8
  from huaweicloudsdkaom.v1.model.approve_info import ApproveInfo
9
- from huaweicloudsdkaom.v1.model.create_fast_execute_script_request import CreateFastExecuteScriptRequest
10
- from huaweicloudsdkaom.v1.model.create_fast_execute_script_response import CreateFastExecuteScriptResponse
11
9
  from huaweicloudsdkaom.v1.model.create_workflow_request import CreateWorkflowRequest
12
10
  from huaweicloudsdkaom.v1.model.create_workflow_response import CreateWorkflowResponse
13
11
  from huaweicloudsdkaom.v1.model.execute_workflow_request import ExecuteWorkflowRequest
14
12
  from huaweicloudsdkaom.v1.model.execute_workflow_response import ExecuteWorkflowResponse
15
13
  from huaweicloudsdkaom.v1.model.execution_result_list import ExecutionResultList
16
- from huaweicloudsdkaom.v1.model.his_fast_script import HISFastScript
17
14
  from huaweicloudsdkaom.v1.model.job import Job
18
15
  from huaweicloudsdkaom.v1.model.list_all_job_by_name_request import ListAllJobByNameRequest
19
16
  from huaweicloudsdkaom.v1.model.list_all_job_by_name_response import ListAllJobByNameResponse
@@ -33,71 +33,6 @@ class AomAsyncClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
- def create_fast_execute_script_async(self, request):
37
- r"""快速创建并执行脚本
38
-
39
- 该接口用于创建快速执行脚本的任务,可以指定脚本类型,执行用户,脚本参数,执行机器,脚本内容,在用户指定的机器上执行脚本。(注:接口目前开放的region为:华东-苏州二零一)。
40
-
41
- Please refer to HUAWEI cloud API Explorer for details.
42
-
43
-
44
- :param request: Request instance for CreateFastExecuteScript
45
- :type request: :class:`huaweicloudsdkaom.v1.CreateFastExecuteScriptRequest`
46
- :rtype: :class:`huaweicloudsdkaom.v1.CreateFastExecuteScriptResponse`
47
- """
48
- http_info = self._create_fast_execute_script_http_info(request)
49
- return self._call_api(**http_info)
50
-
51
- def create_fast_execute_script_async_invoker(self, request):
52
- http_info = self._create_fast_execute_script_http_info(request)
53
- return AsyncInvoker(self, http_info)
54
-
55
- def _create_fast_execute_script_http_info(self, request):
56
- http_info = {
57
- "method": "POST",
58
- "resource_path": "/v1/{project_id}/cms/fast-execute-script",
59
- "request_type": request.__class__.__name__,
60
- "response_type": "CreateFastExecuteScriptResponse"
61
- }
62
-
63
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
-
65
- cname = None
66
-
67
- collection_formats = {}
68
-
69
- path_params = {}
70
-
71
- query_params = []
72
-
73
- header_params = {}
74
-
75
- form_params = {}
76
-
77
- body = None
78
- if 'body' in local_var_params:
79
- body = local_var_params['body']
80
- if isinstance(request, SdkStreamRequest):
81
- body = request.get_file_stream()
82
-
83
- response_headers = []
84
-
85
- header_params['Content-Type'] = http_utils.select_header_content_type(
86
- ['application/json'])
87
-
88
- auth_settings = []
89
-
90
- http_info["cname"] = cname
91
- http_info["collection_formats"] = collection_formats
92
- http_info["path_params"] = path_params
93
- http_info["query_params"] = query_params
94
- http_info["header_params"] = header_params
95
- http_info["post_params"] = form_params
96
- http_info["body"] = body
97
- http_info["response_headers"] = response_headers
98
-
99
- return http_info
100
-
101
36
  def create_workflow_async(self, request):
102
37
  r"""创建任务
103
38
 
@@ -33,71 +33,6 @@ class AomClient(Client):
33
33
 
34
34
  return client_builder
35
35
 
36
- def create_fast_execute_script(self, request):
37
- r"""快速创建并执行脚本
38
-
39
- 该接口用于创建快速执行脚本的任务,可以指定脚本类型,执行用户,脚本参数,执行机器,脚本内容,在用户指定的机器上执行脚本。(注:接口目前开放的region为:华东-苏州二零一)。
40
-
41
- Please refer to HUAWEI cloud API Explorer for details.
42
-
43
- :param request: Request instance for CreateFastExecuteScript
44
- :type request: :class:`huaweicloudsdkaom.v1.CreateFastExecuteScriptRequest`
45
- :rtype: :class:`huaweicloudsdkaom.v1.CreateFastExecuteScriptResponse`
46
- """
47
- http_info = self._create_fast_execute_script_http_info(request)
48
- return self._call_api(**http_info)
49
-
50
- def create_fast_execute_script_invoker(self, request):
51
- http_info = self._create_fast_execute_script_http_info(request)
52
- return SyncInvoker(self, http_info)
53
-
54
- @classmethod
55
- def _create_fast_execute_script_http_info(cls, request):
56
- http_info = {
57
- "method": "POST",
58
- "resource_path": "/v1/{project_id}/cms/fast-execute-script",
59
- "request_type": request.__class__.__name__,
60
- "response_type": "CreateFastExecuteScriptResponse"
61
- }
62
-
63
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
-
65
- cname = None
66
-
67
- collection_formats = {}
68
-
69
- path_params = {}
70
-
71
- query_params = []
72
-
73
- header_params = {}
74
-
75
- form_params = {}
76
-
77
- body = None
78
- if 'body' in local_var_params:
79
- body = local_var_params['body']
80
- if isinstance(request, SdkStreamRequest):
81
- body = request.get_file_stream()
82
-
83
- response_headers = []
84
-
85
- header_params['Content-Type'] = http_utils.select_header_content_type(
86
- ['application/json'])
87
-
88
- auth_settings = []
89
-
90
- http_info["cname"] = cname
91
- http_info["collection_formats"] = collection_formats
92
- http_info["path_params"] = path_params
93
- http_info["query_params"] = query_params
94
- http_info["header_params"] = header_params
95
- http_info["post_params"] = form_params
96
- http_info["body"] = body
97
- http_info["response_headers"] = response_headers
98
-
99
- return http_info
100
-
101
36
  def create_workflow(self, request):
102
37
  r"""创建任务
103
38
 
@@ -4,14 +4,11 @@ from __future__ import absolute_import
4
4
 
5
5
  # import models into model package
6
6
  from huaweicloudsdkaom.v1.model.approve_info import ApproveInfo
7
- from huaweicloudsdkaom.v1.model.create_fast_execute_script_request import CreateFastExecuteScriptRequest
8
- from huaweicloudsdkaom.v1.model.create_fast_execute_script_response import CreateFastExecuteScriptResponse
9
7
  from huaweicloudsdkaom.v1.model.create_workflow_request import CreateWorkflowRequest
10
8
  from huaweicloudsdkaom.v1.model.create_workflow_response import CreateWorkflowResponse
11
9
  from huaweicloudsdkaom.v1.model.execute_workflow_request import ExecuteWorkflowRequest
12
10
  from huaweicloudsdkaom.v1.model.execute_workflow_response import ExecuteWorkflowResponse
13
11
  from huaweicloudsdkaom.v1.model.execution_result_list import ExecutionResultList
14
- from huaweicloudsdkaom.v1.model.his_fast_script import HISFastScript
15
12
  from huaweicloudsdkaom.v1.model.job import Job
16
13
  from huaweicloudsdkaom.v1.model.list_all_job_by_name_request import ListAllJobByNameRequest
17
14
  from huaweicloudsdkaom.v1.model.list_all_job_by_name_response import ListAllJobByNameResponse
@@ -56,6 +56,8 @@ class AomRegion:
56
56
  "https://aom.my-kualalumpur-1.myhuaweicloud.com")
57
57
  AP_SOUTHEAST_5 = Region("ap-southeast-5",
58
58
  "https://aom.ap-southeast-5.myhuaweicloud.com")
59
+ AF_NORTH_1 = Region("af-north-1",
60
+ "https://aom.af-north-1.myhuaweicloud.com")
59
61
 
60
62
  static_fields = {
61
63
  "cn-north-4": CN_NORTH_4,
@@ -83,6 +85,7 @@ class AomRegion:
83
85
  "ru-moscow-1": RU_MOSCOW_1,
84
86
  "my-kualalumpur-1": MY_KUALALUMPUR_1,
85
87
  "ap-southeast-5": AP_SOUTHEAST_5,
88
+ "af-north-1": AF_NORTH_1,
86
89
  }
87
90
 
88
91
  @classmethod
@@ -56,6 +56,8 @@ class AomRegion:
56
56
  "https://aom.my-kualalumpur-1.myhuaweicloud.com")
57
57
  AP_SOUTHEAST_5 = Region("ap-southeast-5",
58
58
  "https://aom.ap-southeast-5.myhuaweicloud.com")
59
+ AF_NORTH_1 = Region("af-north-1",
60
+ "https://aom.af-north-1.myhuaweicloud.com")
59
61
 
60
62
  static_fields = {
61
63
  "cn-north-4": CN_NORTH_4,
@@ -83,6 +85,7 @@ class AomRegion:
83
85
  "ru-moscow-1": RU_MOSCOW_1,
84
86
  "my-kualalumpur-1": MY_KUALALUMPUR_1,
85
87
  "ap-southeast-5": AP_SOUTHEAST_5,
88
+ "af-north-1": AF_NORTH_1,
86
89
  }
87
90
 
88
91
  @classmethod
@@ -56,6 +56,8 @@ class AomRegion:
56
56
  "https://aom.my-kualalumpur-1.myhuaweicloud.com")
57
57
  AP_SOUTHEAST_5 = Region("ap-southeast-5",
58
58
  "https://aom.ap-southeast-5.myhuaweicloud.com")
59
+ AF_NORTH_1 = Region("af-north-1",
60
+ "https://aom.af-north-1.myhuaweicloud.com")
59
61
 
60
62
  static_fields = {
61
63
  "cn-north-4": CN_NORTH_4,
@@ -83,6 +85,7 @@ class AomRegion:
83
85
  "ru-moscow-1": RU_MOSCOW_1,
84
86
  "my-kualalumpur-1": MY_KUALALUMPUR_1,
85
87
  "ap-southeast-5": AP_SOUTHEAST_5,
88
+ "af-north-1": AF_NORTH_1,
86
89
  }
87
90
 
88
91
  @classmethod
@@ -56,6 +56,8 @@ class AomRegion:
56
56
  "https://aom.my-kualalumpur-1.myhuaweicloud.com")
57
57
  AP_SOUTHEAST_5 = Region("ap-southeast-5",
58
58
  "https://aom.ap-southeast-5.myhuaweicloud.com")
59
+ AF_NORTH_1 = Region("af-north-1",
60
+ "https://aom.af-north-1.myhuaweicloud.com")
59
61
 
60
62
  static_fields = {
61
63
  "cn-north-4": CN_NORTH_4,
@@ -83,6 +85,7 @@ class AomRegion:
83
85
  "ru-moscow-1": RU_MOSCOW_1,
84
86
  "my-kualalumpur-1": MY_KUALALUMPUR_1,
85
87
  "ap-southeast-5": AP_SOUTHEAST_5,
88
+ "af-north-1": AF_NORTH_1,
86
89
  }
87
90
 
88
91
  @classmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkaom
3
- Version: 3.1.160
3
+ Version: 3.1.161
4
4
  Summary: AOM
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -21,6 +21,6 @@ Classifier: Topic :: Software Development
21
21
  Requires-Python: >=3.6
22
22
  Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
- Requires-Dist: huaweicloudsdkcore>=3.1.160
24
+ Requires-Dist: huaweicloudsdkcore>=3.1.161
25
25
 
26
26
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,17 +1,14 @@
1
1
  huaweicloudsdkaom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkaom/v1/__init__.py,sha256=uRBURFOxOEvczsEBzSZ5bnI4MP6BnSK2RrabI_dShpc,4481
3
- huaweicloudsdkaom/v1/aom_async_client.py,sha256=-7PeIGHENEbcznyhz4fnixkovOb3SF81KLyR_ltOBts,36839
4
- huaweicloudsdkaom/v1/aom_client.py,sha256=QqRvFbMg1eS1CbZxAm1JjgOUbADdgp5kbrJ2DwYPWzU,36762
5
- huaweicloudsdkaom/v1/model/__init__.py,sha256=2VT_sCGllA3vqSpi3HP0f9jHgCN5TQZt7kjj-af1F9c,4395
2
+ huaweicloudsdkaom/v1/__init__.py,sha256=wl3EZzqqu_LcyonN_UVD-9D5EWU-IUzNF5VtHpx8fzU,4200
3
+ huaweicloudsdkaom/v1/aom_async_client.py,sha256=zw8SIvKqwaOAGnADOBEry42xSj4ze9aKmGtEsme0eoU,34485
4
+ huaweicloudsdkaom/v1/aom_client.py,sha256=CEgFpDl10sJyMfOh1mAX4gKHf-0u2kc7ViSSrAG26zY,34406
5
+ huaweicloudsdkaom/v1/model/__init__.py,sha256=4u5YJh0d9U-kk-PBM4VXMRgDGKIWgdaHi9vIwFhHNfc,4114
6
6
  huaweicloudsdkaom/v1/model/approve_info.py,sha256=tAhnqm0of_T452C9byH0GCOKINi9CXTkdrQcIMsmbHE,4988
7
- huaweicloudsdkaom/v1/model/create_fast_execute_script_request.py,sha256=1TnTqLz5tBQS5LUUcz3vpFdumBZmLeDV0KtzHDu-igQ,3178
8
- huaweicloudsdkaom/v1/model/create_fast_execute_script_response.py,sha256=hVAVTuWP5FRxEN1pgMVwyS7-7r1lqGKYjjQp8w4Ljvg,3401
9
7
  huaweicloudsdkaom/v1/model/create_workflow_request.py,sha256=T5V70w8oKFtrkMW_IEr9ED9g2gBmhmUV_wNuP9uRvls,3130
10
8
  huaweicloudsdkaom/v1/model/create_workflow_response.py,sha256=i-S--PB2KQRsmzKcVKd1H8IL3IZSGJXu7MlK0_Scjc8,38620
11
9
  huaweicloudsdkaom/v1/model/execute_workflow_request.py,sha256=GEqAew0nqSQ_dV0EFn8HxaGyRtv-CdkuZfuPJCyK4xQ,3274
12
10
  huaweicloudsdkaom/v1/model/execute_workflow_response.py,sha256=EvT7C3BhT8zdelchCWd9LU0mJgBGur8MVewGq9OrIqQ,3301
13
11
  huaweicloudsdkaom/v1/model/execution_result_list.py,sha256=zKlJUxLebjj0q_wGRcHneZ51bqohRLeZody5DIEdMYA,7292
14
- huaweicloudsdkaom/v1/model/his_fast_script.py,sha256=FNrUYQnmnIFIilKP47Ld1rEe0nYnk3eDpSRMcgy7Eew,7830
15
12
  huaweicloudsdkaom/v1/model/job.py,sha256=mGOKyI9Dz91JbldeVqVmtqvumczDKP-hsOTkkEGGbj8,14342
16
13
  huaweicloudsdkaom/v1/model/list_all_job_by_name_request.py,sha256=A7gAUKY8ZXYYuGCQndB_849W08q9HnfFUH_5FqtLoQc,3154
17
14
  huaweicloudsdkaom/v1/model/list_all_job_by_name_response.py,sha256=iAGITA44BEkSK8VlDDa0QP8Yqe3sqzv_SZZRcxIJi2M,4298
@@ -54,7 +51,7 @@ huaweicloudsdkaom/v1/model/workflow_execution_brief.py,sha256=R7xCYIOEZvT9QSmU1x
54
51
  huaweicloudsdkaom/v1/model/workflow_query_param.py,sha256=jKZqPYqzPgG6QXpCUf5pa3EmTjgcVn6KEbLQx_S8KnY,13333
55
52
  huaweicloudsdkaom/v1/model/workflow_request_body.py,sha256=L4kl5muHs-_ukrXN37us5Cc3XFDDLMRJhclZf9jvrHk,13322
56
53
  huaweicloudsdkaom/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
57
- huaweicloudsdkaom/v1/region/aom_region.py,sha256=rbSfpHvgjIn6uKTntBErlAp5N9OjyRKpuoiqCDx_OX8,4471
54
+ huaweicloudsdkaom/v1/region/aom_region.py,sha256=xxYEWqUPw4IdL3hF6ISQRY-nglL52rIqq6SKT6K6cVk,4611
58
55
  huaweicloudsdkaom/v2/__init__.py,sha256=SB-BHT64LLojhyI92_y4r9gTubZALGNE1wf1pDVsf-w,15607
59
56
  huaweicloudsdkaom/v2/aom_async_client.py,sha256=ODxoJGlW2BKSEfrB6iE1APDZnUrUVzBiyWqLIaHy15g,114461
60
57
  huaweicloudsdkaom/v2/aom_client.py,sha256=1BvEyYxM5zn9axMh4eJPf-uH-DkPq0f9FTAypIsRf6I,114456
@@ -240,7 +237,7 @@ huaweicloudsdkaom/v2/model/update_mute_rule_request.py,sha256=zCdc5c6RCDa0zF0J3a
240
237
  huaweicloudsdkaom/v2/model/update_mute_rule_response.py,sha256=5NfQw2DTZROrKhuk_S4rfkMG0xbVcsiykFVmTqHyT7o,2440
241
238
  huaweicloudsdkaom/v2/model/value_data.py,sha256=3qIvTzEgqHLPVUtdTvlJP5XQCYUAHuxW3-v2obb0dx4,5378
242
239
  huaweicloudsdkaom/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
243
- huaweicloudsdkaom/v2/region/aom_region.py,sha256=rbSfpHvgjIn6uKTntBErlAp5N9OjyRKpuoiqCDx_OX8,4471
240
+ huaweicloudsdkaom/v2/region/aom_region.py,sha256=xxYEWqUPw4IdL3hF6ISQRY-nglL52rIqq6SKT6K6cVk,4611
244
241
  huaweicloudsdkaom/v3/__init__.py,sha256=eH44sPi8DTYnp5nf3u1y8VFIRwAjcI-7pla-RDgC_u8,3995
245
242
  huaweicloudsdkaom/v3/aom_async_client.py,sha256=maH9FHzjDLTkViznaTzNgJWzngznw1W-_ieW5A6_yas,43498
246
243
  huaweicloudsdkaom/v3/aom_client.py,sha256=cpZaSXtp2sl5oM2OEVPBklR13LWTUiZj3K8szcrb77k,43431
@@ -293,7 +290,7 @@ huaweicloudsdkaom/v3/model/update_sub_app_request.py,sha256=sfduol9sp3esanF-7Biv
293
290
  huaweicloudsdkaom/v3/model/update_sub_app_response.py,sha256=L8XybsglIDrfS2jSubdPuuTS9t8LLBA6nLADFqWZUOk,2432
294
291
  huaweicloudsdkaom/v3/model/waterfall_page_list_param.py,sha256=QXoPY9VwT4bO7ltmvSAc_Pmq34AeJXDdtA4d7LB1Hnk,4206
295
292
  huaweicloudsdkaom/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
296
- huaweicloudsdkaom/v3/region/aom_region.py,sha256=rbSfpHvgjIn6uKTntBErlAp5N9OjyRKpuoiqCDx_OX8,4471
293
+ huaweicloudsdkaom/v3/region/aom_region.py,sha256=xxYEWqUPw4IdL3hF6ISQRY-nglL52rIqq6SKT6K6cVk,4611
297
294
  huaweicloudsdkaom/v4/__init__.py,sha256=ImANg7bYvHmvgeOZfBZzmdX_3yTqCHc5gQRoq4s3z_E,1277
298
295
  huaweicloudsdkaom/v4/aom_async_client.py,sha256=oWvLuQVxGOEFRFkZWgHUgmrBW5g4qLl-cNqMzRfmSiM,9704
299
296
  huaweicloudsdkaom/v4/aom_client.py,sha256=gTye5DecuIsHtnVLDbF7prdWDnQUgSKTDXfQh8rOx9k,9605
@@ -312,9 +309,9 @@ huaweicloudsdkaom/v4/model/show_agent_infos_request.py,sha256=7YLYglHD06EEZ8skFe
312
309
  huaweicloudsdkaom/v4/model/show_agent_infos_response.py,sha256=Exxt7gM29JNucfg3UFFDfYMq4U8anOMsKzrz76TU4bA,5780
313
310
  huaweicloudsdkaom/v4/model/single_agent_param.py,sha256=B9jIRnXql23LujJlxFJm9NysHZoT28uoMgfpadckXhw,3752
314
311
  huaweicloudsdkaom/v4/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
315
- huaweicloudsdkaom/v4/region/aom_region.py,sha256=rbSfpHvgjIn6uKTntBErlAp5N9OjyRKpuoiqCDx_OX8,4471
316
- huaweicloudsdkaom-3.1.160.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
317
- huaweicloudsdkaom-3.1.160.dist-info/METADATA,sha256=X-KF4uZH0VSBwLKoq8Q48iPIT0ofPXJUfdysrV3ao2Y,1064
318
- huaweicloudsdkaom-3.1.160.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
319
- huaweicloudsdkaom-3.1.160.dist-info/top_level.txt,sha256=V5oNEkojACaeCidjN4ULPkHqYB7uxxA_RXYXAe-MgEM,18
320
- huaweicloudsdkaom-3.1.160.dist-info/RECORD,,
312
+ huaweicloudsdkaom/v4/region/aom_region.py,sha256=xxYEWqUPw4IdL3hF6ISQRY-nglL52rIqq6SKT6K6cVk,4611
313
+ huaweicloudsdkaom-3.1.161.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
314
+ huaweicloudsdkaom-3.1.161.dist-info/METADATA,sha256=NpQX4esPCNVwNely7kF-Z0OsiXgAl3r3dSyOq4K8VRc,1064
315
+ huaweicloudsdkaom-3.1.161.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
316
+ huaweicloudsdkaom-3.1.161.dist-info/top_level.txt,sha256=V5oNEkojACaeCidjN4ULPkHqYB7uxxA_RXYXAe-MgEM,18
317
+ huaweicloudsdkaom-3.1.161.dist-info/RECORD,,
@@ -1,111 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class CreateFastExecuteScriptRequest:
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
- 'body': 'HISFastScript'
21
- }
22
-
23
- attribute_map = {
24
- 'body': 'body'
25
- }
26
-
27
- def __init__(self, body=None):
28
- r"""CreateFastExecuteScriptRequest
29
-
30
- The model defined in huaweicloud sdk
31
-
32
- :param body: Body of the CreateFastExecuteScriptRequest
33
- :type body: :class:`huaweicloudsdkaom.v1.HISFastScript`
34
- """
35
-
36
-
37
-
38
- self._body = None
39
- self.discriminator = None
40
-
41
- if body is not None:
42
- self.body = body
43
-
44
- @property
45
- def body(self):
46
- r"""Gets the body of this CreateFastExecuteScriptRequest.
47
-
48
- :return: The body of this CreateFastExecuteScriptRequest.
49
- :rtype: :class:`huaweicloudsdkaom.v1.HISFastScript`
50
- """
51
- return self._body
52
-
53
- @body.setter
54
- def body(self, body):
55
- r"""Sets the body of this CreateFastExecuteScriptRequest.
56
-
57
- :param body: The body of this CreateFastExecuteScriptRequest.
58
- :type body: :class:`huaweicloudsdkaom.v1.HISFastScript`
59
- """
60
- self._body = body
61
-
62
- def to_dict(self):
63
- """Returns the model properties as a dict"""
64
- result = {}
65
-
66
- for attr, _ in six.iteritems(self.openapi_types):
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
- if six.PY2:
93
- import sys
94
- reload(sys)
95
- sys.setdefaultencoding("utf-8")
96
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
-
98
- def __repr__(self):
99
- """For `print`"""
100
- return self.to_str()
101
-
102
- def __eq__(self, other):
103
- """Returns true if both objects are equal"""
104
- if not isinstance(other, CreateFastExecuteScriptRequest):
105
- return False
106
-
107
- return self.__dict__ == other.__dict__
108
-
109
- def __ne__(self, other):
110
- """Returns true if both objects are not equal"""
111
- return not self == other
@@ -1,116 +0,0 @@
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 CreateFastExecuteScriptResponse(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
- 'execution_id': 'str'
22
- }
23
-
24
- attribute_map = {
25
- 'execution_id': 'execution_id'
26
- }
27
-
28
- def __init__(self, execution_id=None):
29
- r"""CreateFastExecuteScriptResponse
30
-
31
- The model defined in huaweicloud sdk
32
-
33
- :param execution_id: 工作流执行id。
34
- :type execution_id: str
35
- """
36
-
37
- super(CreateFastExecuteScriptResponse, self).__init__()
38
-
39
- self._execution_id = None
40
- self.discriminator = None
41
-
42
- if execution_id is not None:
43
- self.execution_id = execution_id
44
-
45
- @property
46
- def execution_id(self):
47
- r"""Gets the execution_id of this CreateFastExecuteScriptResponse.
48
-
49
- 工作流执行id。
50
-
51
- :return: The execution_id of this CreateFastExecuteScriptResponse.
52
- :rtype: str
53
- """
54
- return self._execution_id
55
-
56
- @execution_id.setter
57
- def execution_id(self, execution_id):
58
- r"""Sets the execution_id of this CreateFastExecuteScriptResponse.
59
-
60
- 工作流执行id。
61
-
62
- :param execution_id: The execution_id of this CreateFastExecuteScriptResponse.
63
- :type execution_id: str
64
- """
65
- self._execution_id = execution_id
66
-
67
- def to_dict(self):
68
- """Returns the model properties as a dict"""
69
- result = {}
70
-
71
- for attr, _ in six.iteritems(self.openapi_types):
72
- value = getattr(self, attr)
73
- if isinstance(value, list):
74
- result[attr] = list(map(
75
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
- value
77
- ))
78
- elif hasattr(value, "to_dict"):
79
- result[attr] = value.to_dict()
80
- elif isinstance(value, dict):
81
- result[attr] = dict(map(
82
- lambda item: (item[0], item[1].to_dict())
83
- if hasattr(item[1], "to_dict") else item,
84
- value.items()
85
- ))
86
- else:
87
- if attr in self.sensitive_list:
88
- result[attr] = "****"
89
- else:
90
- result[attr] = value
91
-
92
- return result
93
-
94
- def to_str(self):
95
- """Returns the string representation of the model"""
96
- import simplejson as json
97
- if six.PY2:
98
- import sys
99
- reload(sys)
100
- sys.setdefaultencoding("utf-8")
101
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
-
103
- def __repr__(self):
104
- """For `print`"""
105
- return self.to_str()
106
-
107
- def __eq__(self, other):
108
- """Returns true if both objects are equal"""
109
- if not isinstance(other, CreateFastExecuteScriptResponse):
110
- return False
111
-
112
- return self.__dict__ == other.__dict__
113
-
114
- def __ne__(self, other):
115
- """Returns true if both objects are not equal"""
116
- return not self == other
@@ -1,283 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class HISFastScript:
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
- 'script_type': 'str',
21
- 'cmd_user': 'str',
22
- 'script_content': 'str',
23
- 'ecs_id_list': 'str',
24
- 'name': 'str',
25
- 'project_id': 'str',
26
- 'script_args': 'str'
27
- }
28
-
29
- attribute_map = {
30
- 'script_type': 'script_type',
31
- 'cmd_user': 'cmd_user',
32
- 'script_content': 'script_content',
33
- 'ecs_id_list': 'ecs_id_list',
34
- 'name': 'name',
35
- 'project_id': 'project_id',
36
- 'script_args': 'script_args'
37
- }
38
-
39
- def __init__(self, script_type=None, cmd_user=None, script_content=None, ecs_id_list=None, name=None, project_id=None, script_args=None):
40
- r"""HISFastScript
41
-
42
- The model defined in huaweicloud sdk
43
-
44
- :param script_type: 脚本类型。SHELL BAT PYTHON POWER_SHELL
45
- :type script_type: str
46
- :param cmd_user: 执行脚本的ECS机器用户。
47
- :type cmd_user: str
48
- :param script_content: 脚本内容。
49
- :type script_content: str
50
- :param ecs_id_list: 执行的机器列表。
51
- :type ecs_id_list: str
52
- :param name: 任务名称。
53
- :type name: str
54
- :param project_id: 项目ID。
55
- :type project_id: str
56
- :param script_args: 任务参数,多个参数以空格分隔。
57
- :type script_args: str
58
- """
59
-
60
-
61
-
62
- self._script_type = None
63
- self._cmd_user = None
64
- self._script_content = None
65
- self._ecs_id_list = None
66
- self._name = None
67
- self._project_id = None
68
- self._script_args = None
69
- self.discriminator = None
70
-
71
- self.script_type = script_type
72
- self.cmd_user = cmd_user
73
- self.script_content = script_content
74
- self.ecs_id_list = ecs_id_list
75
- self.name = name
76
- self.project_id = project_id
77
- if script_args is not None:
78
- self.script_args = script_args
79
-
80
- @property
81
- def script_type(self):
82
- r"""Gets the script_type of this HISFastScript.
83
-
84
- 脚本类型。SHELL BAT PYTHON POWER_SHELL
85
-
86
- :return: The script_type of this HISFastScript.
87
- :rtype: str
88
- """
89
- return self._script_type
90
-
91
- @script_type.setter
92
- def script_type(self, script_type):
93
- r"""Sets the script_type of this HISFastScript.
94
-
95
- 脚本类型。SHELL BAT PYTHON POWER_SHELL
96
-
97
- :param script_type: The script_type of this HISFastScript.
98
- :type script_type: str
99
- """
100
- self._script_type = script_type
101
-
102
- @property
103
- def cmd_user(self):
104
- r"""Gets the cmd_user of this HISFastScript.
105
-
106
- 执行脚本的ECS机器用户。
107
-
108
- :return: The cmd_user of this HISFastScript.
109
- :rtype: str
110
- """
111
- return self._cmd_user
112
-
113
- @cmd_user.setter
114
- def cmd_user(self, cmd_user):
115
- r"""Sets the cmd_user of this HISFastScript.
116
-
117
- 执行脚本的ECS机器用户。
118
-
119
- :param cmd_user: The cmd_user of this HISFastScript.
120
- :type cmd_user: str
121
- """
122
- self._cmd_user = cmd_user
123
-
124
- @property
125
- def script_content(self):
126
- r"""Gets the script_content of this HISFastScript.
127
-
128
- 脚本内容。
129
-
130
- :return: The script_content of this HISFastScript.
131
- :rtype: str
132
- """
133
- return self._script_content
134
-
135
- @script_content.setter
136
- def script_content(self, script_content):
137
- r"""Sets the script_content of this HISFastScript.
138
-
139
- 脚本内容。
140
-
141
- :param script_content: The script_content of this HISFastScript.
142
- :type script_content: str
143
- """
144
- self._script_content = script_content
145
-
146
- @property
147
- def ecs_id_list(self):
148
- r"""Gets the ecs_id_list of this HISFastScript.
149
-
150
- 执行的机器列表。
151
-
152
- :return: The ecs_id_list of this HISFastScript.
153
- :rtype: str
154
- """
155
- return self._ecs_id_list
156
-
157
- @ecs_id_list.setter
158
- def ecs_id_list(self, ecs_id_list):
159
- r"""Sets the ecs_id_list of this HISFastScript.
160
-
161
- 执行的机器列表。
162
-
163
- :param ecs_id_list: The ecs_id_list of this HISFastScript.
164
- :type ecs_id_list: str
165
- """
166
- self._ecs_id_list = ecs_id_list
167
-
168
- @property
169
- def name(self):
170
- r"""Gets the name of this HISFastScript.
171
-
172
- 任务名称。
173
-
174
- :return: The name of this HISFastScript.
175
- :rtype: str
176
- """
177
- return self._name
178
-
179
- @name.setter
180
- def name(self, name):
181
- r"""Sets the name of this HISFastScript.
182
-
183
- 任务名称。
184
-
185
- :param name: The name of this HISFastScript.
186
- :type name: str
187
- """
188
- self._name = name
189
-
190
- @property
191
- def project_id(self):
192
- r"""Gets the project_id of this HISFastScript.
193
-
194
- 项目ID。
195
-
196
- :return: The project_id of this HISFastScript.
197
- :rtype: str
198
- """
199
- return self._project_id
200
-
201
- @project_id.setter
202
- def project_id(self, project_id):
203
- r"""Sets the project_id of this HISFastScript.
204
-
205
- 项目ID。
206
-
207
- :param project_id: The project_id of this HISFastScript.
208
- :type project_id: str
209
- """
210
- self._project_id = project_id
211
-
212
- @property
213
- def script_args(self):
214
- r"""Gets the script_args of this HISFastScript.
215
-
216
- 任务参数,多个参数以空格分隔。
217
-
218
- :return: The script_args of this HISFastScript.
219
- :rtype: str
220
- """
221
- return self._script_args
222
-
223
- @script_args.setter
224
- def script_args(self, script_args):
225
- r"""Sets the script_args of this HISFastScript.
226
-
227
- 任务参数,多个参数以空格分隔。
228
-
229
- :param script_args: The script_args of this HISFastScript.
230
- :type script_args: str
231
- """
232
- self._script_args = script_args
233
-
234
- def to_dict(self):
235
- """Returns the model properties as a dict"""
236
- result = {}
237
-
238
- for attr, _ in six.iteritems(self.openapi_types):
239
- value = getattr(self, attr)
240
- if isinstance(value, list):
241
- result[attr] = list(map(
242
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
243
- value
244
- ))
245
- elif hasattr(value, "to_dict"):
246
- result[attr] = value.to_dict()
247
- elif isinstance(value, dict):
248
- result[attr] = dict(map(
249
- lambda item: (item[0], item[1].to_dict())
250
- if hasattr(item[1], "to_dict") else item,
251
- value.items()
252
- ))
253
- else:
254
- if attr in self.sensitive_list:
255
- result[attr] = "****"
256
- else:
257
- result[attr] = value
258
-
259
- return result
260
-
261
- def to_str(self):
262
- """Returns the string representation of the model"""
263
- import simplejson as json
264
- if six.PY2:
265
- import sys
266
- reload(sys)
267
- sys.setdefaultencoding("utf-8")
268
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
269
-
270
- def __repr__(self):
271
- """For `print`"""
272
- return self.to_str()
273
-
274
- def __eq__(self, other):
275
- """Returns true if both objects are equal"""
276
- if not isinstance(other, HISFastScript):
277
- return False
278
-
279
- return self.__dict__ == other.__dict__
280
-
281
- def __ne__(self, other):
282
- """Returns true if both objects are not equal"""
283
- return not self == other