-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E-HPC Instant Computing Service Release, supporting mirroring and job…
… management.
- Loading branch information
Showing
21 changed files
with
636 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
2024-04-25 Version: 1.0.0 | ||
- E-HPC Instant Computing Service Release, supporting mirroring and job management. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 1999-present Alibaba Group Holding Ltd. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include LICENSE README.rst ChangeLog.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
============================================================= | ||
aliyun-python-sdk-ehpcinstant | ||
============================================================= | ||
|
||
.. This is the ehpcinstant module of Aliyun Python SDK. | ||
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services. | ||
|
||
This module works on Python versions: | ||
|
||
2.6.5 and greater | ||
|
||
**Documentation:** | ||
|
||
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '1.0.0' |
Empty file.
53 changes: 53 additions & 0 deletions
53
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/AddImageRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class AddImageRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'AddImage') | ||
self.set_method('POST') | ||
|
||
def get_Description(self): # String | ||
return self.get_query_params().get('Description') | ||
|
||
def set_Description(self, Description): # String | ||
self.add_query_param('Description', Description) | ||
def get_Name(self): # String | ||
return self.get_query_params().get('Name') | ||
|
||
def set_Name(self, Name): # String | ||
self.add_query_param('Name', Name) | ||
def get_ImageVersion(self): # String | ||
return self.get_query_params().get('ImageVersion') | ||
|
||
def set_ImageVersion(self, ImageVersion): # String | ||
self.add_query_param('ImageVersion', ImageVersion) | ||
def get_ContainerImageSpec(self): # Struct | ||
return self.get_query_params().get('ContainerImageSpec') | ||
|
||
def set_ContainerImageSpec(self, ContainerImageSpec): # Struct | ||
self.add_query_param("ContainerImageSpec", json.dumps(ContainerImageSpec)) | ||
def get_VMImageSpec(self): # Struct | ||
return self.get_query_params().get('VMImageSpec') | ||
|
||
def set_VMImageSpec(self, VMImageSpec): # Struct | ||
self.add_query_param("VMImageSpec", json.dumps(VMImageSpec)) |
49 changes: 49 additions & 0 deletions
49
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/CreateJobRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class CreateJobRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'CreateJob') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_JobDescription(self): # String | ||
return self.get_query_params().get('JobDescription') | ||
|
||
def set_JobDescription(self, JobDescription): # String | ||
self.add_query_param('JobDescription', JobDescription) | ||
def get_DeploymentPolicy(self): # Struct | ||
return self.get_query_params().get('DeploymentPolicy') | ||
|
||
def set_DeploymentPolicy(self, DeploymentPolicy): # Struct | ||
self.add_query_param("DeploymentPolicy", json.dumps(DeploymentPolicy)) | ||
def get_JobName(self): # String | ||
return self.get_query_params().get('JobName') | ||
|
||
def set_JobName(self, JobName): # String | ||
self.add_query_param('JobName', JobName) | ||
def get_Tasks(self): # Array | ||
return self.get_query_params().get('Tasks') | ||
|
||
def set_Tasks(self, Tasks): # Array | ||
self.add_query_param("Tasks", json.dumps(Tasks)) |
39 changes: 39 additions & 0 deletions
39
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/DeleteJobsRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class DeleteJobsRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'DeleteJobs') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_JobSpec(self): # Array | ||
return self.get_query_params().get('JobSpec') | ||
|
||
def set_JobSpec(self, JobSpec): # Array | ||
self.add_query_param("JobSpec", json.dumps(JobSpec)) | ||
def get_ExecutorIds(self): # Array | ||
return self.get_query_params().get('ExecutorIds') | ||
|
||
def set_ExecutorIds(self, ExecutorIds): # Array | ||
self.add_query_param("ExecutorIds", json.dumps(ExecutorIds)) |
49 changes: 49 additions & 0 deletions
49
...on-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/DescribeJobMetricDataRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class DescribeJobMetricDataRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'DescribeJobMetricData') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_TaskName(self): # String | ||
return self.get_query_params().get('TaskName') | ||
|
||
def set_TaskName(self, TaskName): # String | ||
self.add_query_param('TaskName', TaskName) | ||
def get_JobId(self): # String | ||
return self.get_query_params().get('JobId') | ||
|
||
def set_JobId(self, JobId): # String | ||
self.add_query_param('JobId', JobId) | ||
def get_MetricName(self): # String | ||
return self.get_query_params().get('MetricName') | ||
|
||
def set_MetricName(self, MetricName): # String | ||
self.add_query_param('MetricName', MetricName) | ||
def get_ArrayIndex(self): # Array | ||
return self.get_query_params().get('ArrayIndex') | ||
|
||
def set_ArrayIndex(self, ArrayIndex): # Array | ||
self.add_query_param("ArrayIndex", json.dumps(ArrayIndex)) |
44 changes: 44 additions & 0 deletions
44
...on-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/DescribeJobMetricLastRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class DescribeJobMetricLastRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'DescribeJobMetricLast') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_TaskName(self): # String | ||
return self.get_query_params().get('TaskName') | ||
|
||
def set_TaskName(self, TaskName): # String | ||
self.add_query_param('TaskName', TaskName) | ||
def get_JobId(self): # String | ||
return self.get_query_params().get('JobId') | ||
|
||
def set_JobId(self, JobId): # String | ||
self.add_query_param('JobId', JobId) | ||
def get_ArrayIndex(self): # Array | ||
return self.get_query_params().get('ArrayIndex') | ||
|
||
def set_ArrayIndex(self, ArrayIndex): # Array | ||
self.add_query_param("ArrayIndex", json.dumps(ArrayIndex)) |
32 changes: 32 additions & 0 deletions
32
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/GetImageRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class GetImageRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'GetImage') | ||
self.set_method('POST') | ||
|
||
def get_ImageId(self): # String | ||
return self.get_query_params().get('ImageId') | ||
|
||
def set_ImageId(self, ImageId): # String | ||
self.add_query_param('ImageId', ImageId) |
33 changes: 33 additions & 0 deletions
33
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/GetJobRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
|
||
class GetJobRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'GetJob') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_JobId(self): # String | ||
return self.get_query_params().get('JobId') | ||
|
||
def set_JobId(self, JobId): # String | ||
self.add_query_param('JobId', JobId) |
44 changes: 44 additions & 0 deletions
44
aliyun-python-sdk-ehpcinstant/aliyunsdkehpcinstant/request/v20230701/ListExecutorsRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from aliyunsdkcore.request import RpcRequest | ||
import json | ||
|
||
class ListExecutorsRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'EhpcInstant', '2023-07-01', 'ListExecutors') | ||
self.set_protocol_type('https') | ||
self.set_method('POST') | ||
|
||
def get_PageNumber(self): # String | ||
return self.get_query_params().get('PageNumber') | ||
|
||
def set_PageNumber(self, PageNumber): # String | ||
self.add_query_param('PageNumber', PageNumber) | ||
def get_Filter(self): # Struct | ||
return self.get_query_params().get('Filter') | ||
|
||
def set_Filter(self, Filter): # Struct | ||
self.add_query_param("Filter", json.dumps(Filter)) | ||
def get_PageSize(self): # String | ||
return self.get_query_params().get('PageSize') | ||
|
||
def set_PageSize(self, PageSize): # String | ||
self.add_query_param('PageSize', PageSize) |
Oops, something went wrong.