Ver Fonte

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

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy há 7 anos atrás
pai
commit
7bf64534b3

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-11-14 Version: 1.38.0
+1, Better support for hybrid cluster.
+
 2018-11-13 Version: 1.37.0
 1, Add FuzzyMatchDomainSensitiveWord interface,Support fuzzy matching sensitive words.
 2, Add BatchFuzzyMatchDomainSensitiveWord interface,Support batch fuzzy matching sensitive words.

+ 1 - 0
services/ehpc/add_nodes.go

@@ -87,6 +87,7 @@ type AddNodesRequest struct {
 	PeriodUnit            string           `position:"Query" name:"PeriodUnit"`
 	AutoRenew             string           `position:"Query" name:"AutoRenew"`
 	EcsChargeType         string           `position:"Query" name:"EcsChargeType"`
+	CreateMode            string           `position:"Query" name:"CreateMode"`
 	InstanceType          string           `position:"Query" name:"InstanceType"`
 	ComputeSpotPriceLimit string           `position:"Query" name:"ComputeSpotPriceLimit"`
 }

+ 34 - 26
services/ehpc/create_hybrid_cluster.go

@@ -76,32 +76,40 @@ func (client *Client) CreateHybridClusterWithCallback(request *CreateHybridClust
 // CreateHybridClusterRequest is the request struct for api CreateHybridCluster
 type CreateHybridClusterRequest struct {
 	*requests.RpcRequest
-	EhpcVersion                 string                            `position:"Query" name:"EhpcVersion"`
-	SecurityGroupId             string                            `position:"Query" name:"SecurityGroupId"`
-	Description                 string                            `position:"Query" name:"Description"`
-	KeyPairName                 string                            `position:"Query" name:"KeyPairName"`
-	SecurityGroupName           string                            `position:"Query" name:"SecurityGroupName"`
-	EcsOrderComputeInstanceType string                            `position:"Query" name:"EcsOrder.Compute.InstanceType"`
-	OnPremiseVolumeRemotePath   string                            `position:"Query" name:"OnPremiseVolumeRemotePath"`
-	VolumeType                  string                            `position:"Query" name:"VolumeType"`
-	Password                    string                            `position:"Query" name:"Password"`
-	OnPremiseVolumeMountPoint   string                            `position:"Query" name:"OnPremiseVolumeMountPoint"`
-	OnPremiseVolumeProtocol     string                            `position:"Query" name:"OnPremiseVolumeProtocol"`
-	VolumeProtocol              string                            `position:"Query" name:"VolumeProtocol"`
-	OnPremiseVolumeLocalPath    string                            `position:"Query" name:"OnPremiseVolumeLocalPath"`
-	ClientVersion               string                            `position:"Query" name:"ClientVersion"`
-	OsTag                       string                            `position:"Query" name:"OsTag"`
-	RemoteDirectory             string                            `position:"Query" name:"RemoteDirectory"`
-	VSwitchId                   string                            `position:"Query" name:"VSwitchId"`
-	Nodes                       string                            `position:"Query" name:"Nodes"`
-	Application                 *[]CreateHybridClusterApplication `position:"Query" name:"Application"  type:"Repeated"`
-	Domain                      string                            `position:"Query" name:"Domain"`
-	VpcId                       string                            `position:"Query" name:"VpcId"`
-	Name                        string                            `position:"Query" name:"Name"`
-	VolumeId                    string                            `position:"Query" name:"VolumeId"`
-	VolumeMountpoint            string                            `position:"Query" name:"VolumeMountpoint"`
-	ZoneId                      string                            `position:"Query" name:"ZoneId"`
-	Location                    string                            `position:"Query" name:"Location"`
+	EhpcVersion                 string                                  `position:"Query" name:"EhpcVersion"`
+	SecurityGroupId             string                                  `position:"Query" name:"SecurityGroupId"`
+	Description                 string                                  `position:"Query" name:"Description"`
+	KeyPairName                 string                                  `position:"Query" name:"KeyPairName"`
+	SecurityGroupName           string                                  `position:"Query" name:"SecurityGroupName"`
+	EcsOrderComputeInstanceType string                                  `position:"Query" name:"EcsOrder.Compute.InstanceType"`
+	OnPremiseVolumeRemotePath   string                                  `position:"Query" name:"OnPremiseVolumeRemotePath"`
+	JobQueue                    string                                  `position:"Query" name:"JobQueue"`
+	VolumeType                  string                                  `position:"Query" name:"VolumeType"`
+	Password                    string                                  `position:"Query" name:"Password"`
+	OnPremiseVolumeMountPoint   string                                  `position:"Query" name:"OnPremiseVolumeMountPoint"`
+	OnPremiseVolumeProtocol     string                                  `position:"Query" name:"OnPremiseVolumeProtocol"`
+	VolumeProtocol              string                                  `position:"Query" name:"VolumeProtocol"`
+	OnPremiseVolumeLocalPath    string                                  `position:"Query" name:"OnPremiseVolumeLocalPath"`
+	ClientVersion               string                                  `position:"Query" name:"ClientVersion"`
+	OsTag                       string                                  `position:"Query" name:"OsTag"`
+	RemoteDirectory             string                                  `position:"Query" name:"RemoteDirectory"`
+	PostInstallScript           *[]CreateHybridClusterPostInstallScript `position:"Query" name:"PostInstallScript"  type:"Repeated"`
+	VSwitchId                   string                                  `position:"Query" name:"VSwitchId"`
+	Nodes                       string                                  `position:"Query" name:"Nodes"`
+	Application                 *[]CreateHybridClusterApplication       `position:"Query" name:"Application"  type:"Repeated"`
+	Domain                      string                                  `position:"Query" name:"Domain"`
+	VpcId                       string                                  `position:"Query" name:"VpcId"`
+	Name                        string                                  `position:"Query" name:"Name"`
+	VolumeId                    string                                  `position:"Query" name:"VolumeId"`
+	VolumeMountpoint            string                                  `position:"Query" name:"VolumeMountpoint"`
+	ZoneId                      string                                  `position:"Query" name:"ZoneId"`
+	Location                    string                                  `position:"Query" name:"Location"`
+}
+
+// CreateHybridClusterPostInstallScript is a repeated param struct in CreateHybridClusterRequest
+type CreateHybridClusterPostInstallScript struct {
+	Args string `name:"Args"`
+	Url  string `name:"Url"`
 }
 
 // CreateHybridClusterApplication is a repeated param struct in CreateHybridClusterRequest

+ 107 - 0
services/ehpc/list_available_ecs_types.go

@@ -0,0 +1,107 @@
+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"
+)
+
+// ListAvailableEcsTypes invokes the ehpc.ListAvailableEcsTypes API synchronously
+// api document: https://help.aliyun.com/api/ehpc/listavailableecstypes.html
+func (client *Client) ListAvailableEcsTypes(request *ListAvailableEcsTypesRequest) (response *ListAvailableEcsTypesResponse, err error) {
+	response = CreateListAvailableEcsTypesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListAvailableEcsTypesWithChan invokes the ehpc.ListAvailableEcsTypes API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/listavailableecstypes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListAvailableEcsTypesWithChan(request *ListAvailableEcsTypesRequest) (<-chan *ListAvailableEcsTypesResponse, <-chan error) {
+	responseChan := make(chan *ListAvailableEcsTypesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListAvailableEcsTypes(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListAvailableEcsTypesWithCallback invokes the ehpc.ListAvailableEcsTypes API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/listavailableecstypes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListAvailableEcsTypesWithCallback(request *ListAvailableEcsTypesRequest, callback func(response *ListAvailableEcsTypesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListAvailableEcsTypesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListAvailableEcsTypes(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListAvailableEcsTypesRequest is the request struct for api ListAvailableEcsTypes
+type ListAvailableEcsTypesRequest struct {
+	*requests.RpcRequest
+	SpotStrategy       string `position:"Query" name:"SpotStrategy"`
+	ZoneId             string `position:"Query" name:"ZoneId"`
+	InstanceChargeType string `position:"Query" name:"InstanceChargeType"`
+}
+
+// ListAvailableEcsTypesResponse is the response struct for api ListAvailableEcsTypes
+type ListAvailableEcsTypesResponse struct {
+	*responses.BaseResponse
+	RequestId            string               `json:"RequestId" xml:"RequestId"`
+	SupportSpotInstance  bool                 `json:"SupportSpotInstance" xml:"SupportSpotInstance"`
+	InstanceTypeFamilies InstanceTypeFamilies `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"`
+}
+
+// CreateListAvailableEcsTypesRequest creates a request to invoke ListAvailableEcsTypes API
+func CreateListAvailableEcsTypesRequest() (request *ListAvailableEcsTypesRequest) {
+	request = &ListAvailableEcsTypesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("EHPC", "2018-04-12", "ListAvailableEcsTypes", "ehs", "openAPI")
+	return
+}
+
+// CreateListAvailableEcsTypesResponse creates a response to parse from ListAvailableEcsTypes response
+func CreateListAvailableEcsTypesResponse() (response *ListAvailableEcsTypesResponse) {
+	response = &ListAvailableEcsTypesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ehpc/list_file_system_with_mount_targets.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"
+)
+
+// ListFileSystemWithMountTargets invokes the ehpc.ListFileSystemWithMountTargets API synchronously
+// api document: https://help.aliyun.com/api/ehpc/listfilesystemwithmounttargets.html
+func (client *Client) ListFileSystemWithMountTargets(request *ListFileSystemWithMountTargetsRequest) (response *ListFileSystemWithMountTargetsResponse, err error) {
+	response = CreateListFileSystemWithMountTargetsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListFileSystemWithMountTargetsWithChan invokes the ehpc.ListFileSystemWithMountTargets API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/listfilesystemwithmounttargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListFileSystemWithMountTargetsWithChan(request *ListFileSystemWithMountTargetsRequest) (<-chan *ListFileSystemWithMountTargetsResponse, <-chan error) {
+	responseChan := make(chan *ListFileSystemWithMountTargetsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListFileSystemWithMountTargets(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListFileSystemWithMountTargetsWithCallback invokes the ehpc.ListFileSystemWithMountTargets API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/listfilesystemwithmounttargets.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListFileSystemWithMountTargetsWithCallback(request *ListFileSystemWithMountTargetsRequest, callback func(response *ListFileSystemWithMountTargetsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListFileSystemWithMountTargetsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListFileSystemWithMountTargets(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListFileSystemWithMountTargetsRequest is the request struct for api ListFileSystemWithMountTargets
+type ListFileSystemWithMountTargetsRequest struct {
+	*requests.RpcRequest
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+}
+
+// ListFileSystemWithMountTargetsResponse is the response struct for api ListFileSystemWithMountTargets
+type ListFileSystemWithMountTargetsResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	TotalCount     int            `json:"TotalCount" xml:"TotalCount"`
+	PageNumber     int            `json:"PageNumber" xml:"PageNumber"`
+	PageSize       int            `json:"PageSize" xml:"PageSize"`
+	FileSystemList FileSystemList `json:"FileSystemList" xml:"FileSystemList"`
+}
+
+// CreateListFileSystemWithMountTargetsRequest creates a request to invoke ListFileSystemWithMountTargets API
+func CreateListFileSystemWithMountTargetsRequest() (request *ListFileSystemWithMountTargetsRequest) {
+	request = &ListFileSystemWithMountTargetsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("EHPC", "2018-04-12", "ListFileSystemWithMountTargets", "ehs", "openAPI")
+	return
+}
+
+// CreateListFileSystemWithMountTargetsResponse creates a response to parse from ListFileSystemWithMountTargets response
+func CreateListFileSystemWithMountTargetsResponse() (response *ListFileSystemWithMountTargetsResponse) {
+	response = &ListFileSystemWithMountTargetsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 4
services/ehpc/set_auto_scale_config.go

@@ -94,10 +94,12 @@ type SetAutoScaleConfigRequest struct {
 
 // SetAutoScaleConfigQueues is a repeated param struct in SetAutoScaleConfigRequest
 type SetAutoScaleConfigQueues struct {
-	SpotStrategy   string `name:"SpotStrategy"`
-	QueueName      string `name:"QueueName"`
-	InstanceType   string `name:"InstanceType"`
-	SpotPriceLimit string `name:"SpotPriceLimit"`
+	SpotStrategy     string `name:"SpotStrategy"`
+	QueueName        string `name:"QueueName"`
+	InstanceType     string `name:"InstanceType"`
+	EnableAutoGrow   string `name:"EnableAutoGrow"`
+	SpotPriceLimit   string `name:"SpotPriceLimit"`
+	EnableAutoShrink string `name:"EnableAutoShrink"`
 }
 
 // SetAutoScaleConfigResponse is the response struct for api SetAutoScaleConfig

+ 21 - 0
services/ehpc/struct_file_system_list.go

@@ -0,0 +1,21 @@
+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.
+
+// FileSystemList is a nested struct in ehpc response
+type FileSystemList struct {
+	FileSystems []FileSystems `json:"FileSystems" xml:"FileSystems"`
+}

+ 29 - 0
services/ehpc/struct_file_systems.go

@@ -0,0 +1,29 @@
+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.
+
+// FileSystems is a nested struct in ehpc response
+type FileSystems struct {
+	RegionId        string          `json:"RegionId" xml:"RegionId"`
+	FileSystemId    string          `json:"FileSystemId" xml:"FileSystemId"`
+	ProtocolType    string          `json:"ProtocolType" xml:"ProtocolType"`
+	CreateTime      string          `json:"CreateTime" xml:"CreateTime"`
+	Destription     string          `json:"Destription" xml:"Destription"`
+	StorageType     string          `json:"StorageType" xml:"StorageType"`
+	MeteredSize     string          `json:"MeteredSize" xml:"MeteredSize"`
+	PackageList     PackageList     `json:"PackageList" xml:"PackageList"`
+	MountTargetList MountTargetList `json:"MountTargetList" xml:"MountTargetList"`
+}

+ 21 - 0
services/ehpc/struct_instance_type_families.go

@@ -0,0 +1,21 @@
+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.
+
+// InstanceTypeFamilies is a nested struct in ehpc response
+type InstanceTypeFamilies struct {
+	InstanceTypeFamilyInfo []InstanceTypeFamilyInfo `json:"InstanceTypeFamilyInfo" xml:"InstanceTypeFamilyInfo"`
+}

+ 23 - 0
services/ehpc/struct_instance_type_family_info.go

@@ -0,0 +1,23 @@
+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.
+
+// InstanceTypeFamilyInfo is a nested struct in ehpc response
+type InstanceTypeFamilyInfo struct {
+	InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"`
+	Generation           string `json:"Generation" xml:"Generation"`
+	Types                Types  `json:"Types" xml:"Types"`
+}

+ 21 - 0
services/ehpc/struct_mount_target_list.go

@@ -0,0 +1,21 @@
+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.
+
+// MountTargetList is a nested struct in ehpc response
+type MountTargetList struct {
+	MountTargets []MountTargets `json:"MountTargets" xml:"MountTargets"`
+}

+ 26 - 0
services/ehpc/struct_mount_targets.go

@@ -0,0 +1,26 @@
+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.
+
+// MountTargets is a nested struct in ehpc response
+type MountTargets struct {
+	MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"`
+	Status            string `json:"Status" xml:"Status"`
+	NetworkType       string `json:"NetworkType" xml:"NetworkType"`
+	VswId             string `json:"VswId" xml:"VswId"`
+	VpcId             string `json:"VpcId" xml:"VpcId"`
+	AccessGroup       string `json:"AccessGroup" xml:"AccessGroup"`
+}

+ 1 - 0
services/ehpc/struct_node_info.go

@@ -23,6 +23,7 @@ type NodeInfo struct {
 	ImageId         string                   `json:"ImageId" xml:"ImageId"`
 	Version         string                   `json:"Version" xml:"Version"`
 	ImageOwnerAlias string                   `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"`
+	CreateMode      string                   `json:"CreateMode" xml:"CreateMode"`
 	Location        string                   `json:"Location" xml:"Location"`
 	RegionId        string                   `json:"RegionId" xml:"RegionId"`
 	CreatedByEhpc   bool                     `json:"CreatedByEhpc" xml:"CreatedByEhpc"`

+ 21 - 0
services/ehpc/struct_package_list.go

@@ -0,0 +1,21 @@
+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.
+
+// PackageList is a nested struct in ehpc response
+type PackageList struct {
+	Packages []Packages `json:"Packages" xml:"Packages"`
+}

+ 21 - 0
services/ehpc/struct_packages.go

@@ -0,0 +1,21 @@
+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.
+
+// Packages is a nested struct in ehpc response
+type Packages struct {
+	PackageId string `json:"PackageId" xml:"PackageId"`
+}

+ 7 - 5
services/ehpc/struct_queue_info.go

@@ -17,9 +17,11 @@ package ehpc
 
 // QueueInfo is a nested struct in ehpc response
 type QueueInfo struct {
-	QueueName      string  `json:"QueueName" xml:"QueueName"`
-	SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
-	InstanceType   string  `json:"InstanceType" xml:"InstanceType"`
-	SpotStrategy   string  `json:"SpotStrategy" xml:"SpotStrategy"`
-	Type           string  `json:"Type" xml:"Type"`
+	QueueName        string  `json:"QueueName" xml:"QueueName"`
+	SpotPriceLimit   float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
+	EnableAutoGrow   bool    `json:"EnableAutoGrow" xml:"EnableAutoGrow"`
+	EnableAutoShrink bool    `json:"EnableAutoShrink" xml:"EnableAutoShrink"`
+	InstanceType     string  `json:"InstanceType" xml:"InstanceType"`
+	SpotStrategy     string  `json:"SpotStrategy" xml:"SpotStrategy"`
+	Type             string  `json:"Type" xml:"Type"`
 }

+ 21 - 0
services/ehpc/struct_types.go

@@ -0,0 +1,21 @@
+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.
+
+// Types is a nested struct in ehpc response
+type Types struct {
+	TypesInfo []TypesInfo `json:"TypesInfo" xml:"TypesInfo"`
+}

+ 30 - 0
services/ehpc/struct_types_info.go

@@ -0,0 +1,30 @@
+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.
+
+// TypesInfo is a nested struct in ehpc response
+type TypesInfo struct {
+	CpuCoreCount        int    `json:"CpuCoreCount" xml:"CpuCoreCount"`
+	MemorySize          int    `json:"MemorySize" xml:"MemorySize"`
+	GPUAmount           int    `json:"GPUAmount" xml:"GPUAmount"`
+	InstanceBandwidthRx int    `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"`
+	InstancePpsRx       int    `json:"InstancePpsRx" xml:"InstancePpsRx"`
+	InstancePpsTx       int    `json:"InstancePpsTx" xml:"InstancePpsTx"`
+	EniQuantity         int    `json:"EniQuantity" xml:"EniQuantity"`
+	InstanceBandwidthTx int    `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`
+	InstanceTypeId      string `json:"InstanceTypeId" xml:"InstanceTypeId"`
+	GPUSpec             string `json:"GPUSpec" xml:"GPUSpec"`
+}