소스 검색

EHPC SDK Auto Released By qianzheng.llc,Version:1.44.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 년 전
부모
커밋
1ab7e15b2f

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-12-13 Version: 1.44.0
+1, Add SystemDiskSize in CreateCluster and AddNodes, add more parameters in RecoverCluster
+
 2018-12-12 Version: 1.43.15
 1, Add interface GrantAccountPrivilege;
 2, Add interface RevokeAccountPrivilege;

+ 1 - 0
services/ehpc/add_nodes.go

@@ -88,6 +88,7 @@ type AddNodesRequest struct {
 	AutoRenew             string           `position:"Query" name:"AutoRenew"`
 	EcsChargeType         string           `position:"Query" name:"EcsChargeType"`
 	CreateMode            string           `position:"Query" name:"CreateMode"`
+	SystemDiskSize        requests.Integer `position:"Query" name:"SystemDiskSize"`
 	InstanceType          string           `position:"Query" name:"InstanceType"`
 	ComputeSpotPriceLimit string           `position:"Query" name:"ComputeSpotPriceLimit"`
 }

+ 1 - 0
services/ehpc/create_cluster.go

@@ -93,6 +93,7 @@ type CreateClusterRequest struct {
 	EcsOrderManagerCount        requests.Integer                  `position:"Query" name:"EcsOrder.Manager.Count"`
 	Password                    string                            `position:"Query" name:"Password"`
 	EcsOrderLoginCount          requests.Integer                  `position:"Query" name:"EcsOrder.Login.Count"`
+	SystemDiskSize              requests.Integer                  `position:"Query" name:"SystemDiskSize"`
 	ComputeSpotPriceLimit       string                            `position:"Query" name:"ComputeSpotPriceLimit"`
 	AutoRenewPeriod             requests.Integer                  `position:"Query" name:"AutoRenewPeriod"`
 	Period                      requests.Integer                  `position:"Query" name:"Period"`

+ 108 - 0
services/ehpc/create_job_file.go

@@ -0,0 +1,108 @@
+package ehpc
+
+//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.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateJobFile invokes the ehpc.CreateJobFile API synchronously
+// api document: https://help.aliyun.com/api/ehpc/createjobfile.html
+func (client *Client) CreateJobFile(request *CreateJobFileRequest) (response *CreateJobFileResponse, err error) {
+	response = CreateCreateJobFileResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateJobFileWithChan invokes the ehpc.CreateJobFile API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/createjobfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateJobFileWithChan(request *CreateJobFileRequest) (<-chan *CreateJobFileResponse, <-chan error) {
+	responseChan := make(chan *CreateJobFileResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateJobFile(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateJobFileWithCallback invokes the ehpc.CreateJobFile API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/createjobfile.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateJobFileWithCallback(request *CreateJobFileRequest, callback func(response *CreateJobFileResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateJobFileResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateJobFile(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateJobFileRequest is the request struct for api CreateJobFile
+type CreateJobFileRequest struct {
+	*requests.RpcRequest
+	TargetFile        string `position:"Query" name:"TargetFile"`
+	RunasUserPassword string `position:"Query" name:"RunasUserPassword"`
+	RunasUser         string `position:"Query" name:"RunasUser"`
+	ClusterId         string `position:"Query" name:"ClusterId"`
+	Content           string `position:"Query" name:"Content"`
+}
+
+// CreateJobFileResponse is the response struct for api CreateJobFile
+type CreateJobFileResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	TemplateId string `json:"TemplateId" xml:"TemplateId"`
+}
+
+// CreateCreateJobFileRequest creates a request to invoke CreateJobFile API
+func CreateCreateJobFileRequest() (request *CreateJobFileRequest) {
+	request = &CreateJobFileRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("EHPC", "2018-04-12", "CreateJobFile", "ehs", "openAPI")
+	return
+}
+
+// CreateCreateJobFileResponse creates a response to parse from CreateJobFile response
+func CreateCreateJobFileResponse() (response *CreateJobFileResponse) {
+	response = &CreateJobFileResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 1
services/ehpc/recover_cluster.go

@@ -76,7 +76,12 @@ func (client *Client) RecoverClusterWithCallback(request *RecoverClusterRequest,
 // RecoverClusterRequest is the request struct for api RecoverCluster
 type RecoverClusterRequest struct {
 	*requests.RpcRequest
-	ClusterId string `position:"Query" name:"ClusterId"`
+	ImageId         string `position:"Query" name:"ImageId"`
+	OsTag           string `position:"Query" name:"OsTag"`
+	AccountType     string `position:"Query" name:"AccountType"`
+	SchedulerType   string `position:"Query" name:"SchedulerType"`
+	ClusterId       string `position:"Query" name:"ClusterId"`
+	ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"`
 }
 
 // RecoverClusterResponse is the response struct for api RecoverCluster

+ 1 - 0
services/ehpc/struct_cluster_info_simple.go

@@ -34,6 +34,7 @@ type ClusterInfoSimple struct {
 	ImageOwnerAlias string         `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"`
 	ImageId         string         `json:"ImageId" xml:"ImageId"`
 	Location        string         `json:"Location" xml:"Location"`
+	EhpcVersion     string         `json:"EhpcVersion" xml:"EhpcVersion"`
 	Managers        Managers       `json:"Managers" xml:"Managers"`
 	Computes        Computes       `json:"Computes" xml:"Computes"`
 	TotalResources  TotalResources `json:"TotalResources" xml:"TotalResources"`