Skip to content

Commit

Permalink
E-HPC Instant Computing Service Release, supporting mirroring and job…
Browse files Browse the repository at this point in the history
… management.
  • Loading branch information
sdk-team committed Apr 25, 2024
1 parent d627a8c commit ff2e9fe
Show file tree
Hide file tree
Showing 21 changed files with 636 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ehpcinstant/ChangeLog.txt
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.

13 changes: 13 additions & 0 deletions aliyun-python-sdk-ehpcinstant/LICENSE
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.
1 change: 1 addition & 0 deletions aliyun-python-sdk-ehpcinstant/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE README.rst ChangeLog.txt
15 changes: 15 additions & 0 deletions aliyun-python-sdk-ehpcinstant/README.rst
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>`_
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
Empty file.
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))
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))
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))
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))
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))
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)
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)
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)

0 comments on commit ff2e9fe

Please sign in to comment.