Skip to content

Commit ff2e9fe

Browse files
committed
E-HPC Instant Computing Service Release, supporting mirroring and job management.
1 parent d627a8c commit ff2e9fe

21 files changed

+636
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2024-04-25 Version: 1.0.0
2+
- E-HPC Instant Computing Service Release, supporting mirroring and job management.
3+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-ehpcinstant
3+
=============================================================
4+
5+
.. This is the ehpcinstant module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'

aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/__init__.py

Whitespace-only changes.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
import json
22+
23+
class AddImageRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'AddImage')
27+
self.set_method('POST')
28+
29+
def get_Description(self): # String
30+
return self.get_query_params().get('Description')
31+
32+
def set_Description(self, Description): # String
33+
self.add_query_param('Description', Description)
34+
def get_Name(self): # String
35+
return self.get_query_params().get('Name')
36+
37+
def set_Name(self, Name): # String
38+
self.add_query_param('Name', Name)
39+
def get_ImageVersion(self): # String
40+
return self.get_query_params().get('ImageVersion')
41+
42+
def set_ImageVersion(self, ImageVersion): # String
43+
self.add_query_param('ImageVersion', ImageVersion)
44+
def get_ContainerImageSpec(self): # Struct
45+
return self.get_query_params().get('ContainerImageSpec')
46+
47+
def set_ContainerImageSpec(self, ContainerImageSpec): # Struct
48+
self.add_query_param("ContainerImageSpec", json.dumps(ContainerImageSpec))
49+
def get_VMImageSpec(self): # Struct
50+
return self.get_query_params().get('VMImageSpec')
51+
52+
def set_VMImageSpec(self, VMImageSpec): # Struct
53+
self.add_query_param("VMImageSpec", json.dumps(VMImageSpec))
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
import json
22+
23+
class CreateJobRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'CreateJob')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
def get_JobDescription(self): # String
31+
return self.get_query_params().get('JobDescription')
32+
33+
def set_JobDescription(self, JobDescription): # String
34+
self.add_query_param('JobDescription', JobDescription)
35+
def get_DeploymentPolicy(self): # Struct
36+
return self.get_query_params().get('DeploymentPolicy')
37+
38+
def set_DeploymentPolicy(self, DeploymentPolicy): # Struct
39+
self.add_query_param("DeploymentPolicy", json.dumps(DeploymentPolicy))
40+
def get_JobName(self): # String
41+
return self.get_query_params().get('JobName')
42+
43+
def set_JobName(self, JobName): # String
44+
self.add_query_param('JobName', JobName)
45+
def get_Tasks(self): # Array
46+
return self.get_query_params().get('Tasks')
47+
48+
def set_Tasks(self, Tasks): # Array
49+
self.add_query_param("Tasks", json.dumps(Tasks))
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
import json
22+
23+
class DeleteJobsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'DeleteJobs')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
def get_JobSpec(self): # Array
31+
return self.get_query_params().get('JobSpec')
32+
33+
def set_JobSpec(self, JobSpec): # Array
34+
self.add_query_param("JobSpec", json.dumps(JobSpec))
35+
def get_ExecutorIds(self): # Array
36+
return self.get_query_params().get('ExecutorIds')
37+
38+
def set_ExecutorIds(self, ExecutorIds): # Array
39+
self.add_query_param("ExecutorIds", json.dumps(ExecutorIds))
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
import json
22+
23+
class DescribeJobMetricDataRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'DescribeJobMetricData')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
def get_TaskName(self): # String
31+
return self.get_query_params().get('TaskName')
32+
33+
def set_TaskName(self, TaskName): # String
34+
self.add_query_param('TaskName', TaskName)
35+
def get_JobId(self): # String
36+
return self.get_query_params().get('JobId')
37+
38+
def set_JobId(self, JobId): # String
39+
self.add_query_param('JobId', JobId)
40+
def get_MetricName(self): # String
41+
return self.get_query_params().get('MetricName')
42+
43+
def set_MetricName(self, MetricName): # String
44+
self.add_query_param('MetricName', MetricName)
45+
def get_ArrayIndex(self): # Array
46+
return self.get_query_params().get('ArrayIndex')
47+
48+
def set_ArrayIndex(self, ArrayIndex): # Array
49+
self.add_query_param("ArrayIndex", json.dumps(ArrayIndex))

0 commit comments

Comments
 (0)