Browse Source

Generated 2018-04-12 for EHPC.

sdk-team 5 years ago
parent
commit
2e1d7fd3eb

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2020-03-05 Version: v1.61.30
+- Generated 2018-04-12 for `EHPC`.
+- Add param InstanceType for ListImages and ListCustomImages.
+- Fix error codes for SubmitJobs and so on.
+
 2020-03-05 Version: v1.61.29
 - Generated 2018-01-20 for `Iot`.
 - Add CreateEdgeDriver, DeleteEdgeDriver, BatchGetEdgeDriver, QueryEdgeDriver, CreateEdgeDriverVersion, DeleteEdgeDriverVersion, UpdateEdgeDriverVersion, GetEdgeDriverVersion, QueryEdgeDriverVersion API.

+ 25 - 0
services/ehpc/client.go

@@ -16,6 +16,8 @@ package ehpc
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 import (
+	"reflect"
+
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
@@ -26,10 +28,25 @@ type Client struct {
 	sdk.Client
 }
 
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
 // NewClient creates a sdk client with environment variables
 func NewClient() (client *Client, err error) {
 	client = &Client{}
 	err = client.Init()
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 		pc = provider.NewProviderChain(providers)
 	}
 	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
 	return
 }

+ 107 - 0
services/ehpc/describe_gws_cluster_policy.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"
+)
+
+// DescribeGWSClusterPolicy invokes the ehpc.DescribeGWSClusterPolicy API synchronously
+// api document: https://help.aliyun.com/api/ehpc/describegwsclusterpolicy.html
+func (client *Client) DescribeGWSClusterPolicy(request *DescribeGWSClusterPolicyRequest) (response *DescribeGWSClusterPolicyResponse, err error) {
+	response = CreateDescribeGWSClusterPolicyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeGWSClusterPolicyWithChan invokes the ehpc.DescribeGWSClusterPolicy API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/describegwsclusterpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGWSClusterPolicyWithChan(request *DescribeGWSClusterPolicyRequest) (<-chan *DescribeGWSClusterPolicyResponse, <-chan error) {
+	responseChan := make(chan *DescribeGWSClusterPolicyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeGWSClusterPolicy(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeGWSClusterPolicyWithCallback invokes the ehpc.DescribeGWSClusterPolicy API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/describegwsclusterpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeGWSClusterPolicyWithCallback(request *DescribeGWSClusterPolicyRequest, callback func(response *DescribeGWSClusterPolicyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeGWSClusterPolicyResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeGWSClusterPolicy(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeGWSClusterPolicyRequest is the request struct for api DescribeGWSClusterPolicy
+type DescribeGWSClusterPolicyRequest struct {
+	*requests.RpcRequest
+	ClusterId string `position:"Query" name:"ClusterId"`
+}
+
+// DescribeGWSClusterPolicyResponse is the response struct for api DescribeGWSClusterPolicy
+type DescribeGWSClusterPolicyResponse struct {
+	*responses.BaseResponse
+	RequestId   string `json:"RequestId" xml:"RequestId"`
+	Clipboard   string `json:"Clipboard" xml:"Clipboard"`
+	UsbRedirect string `json:"UsbRedirect" xml:"UsbRedirect"`
+	Watermark   string `json:"Watermark" xml:"Watermark"`
+	LocalDrive  string `json:"LocalDrive" xml:"LocalDrive"`
+}
+
+// CreateDescribeGWSClusterPolicyRequest creates a request to invoke DescribeGWSClusterPolicy API
+func CreateDescribeGWSClusterPolicyRequest() (request *DescribeGWSClusterPolicyRequest) {
+	request = &DescribeGWSClusterPolicyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeGWSClusterPolicy", "ehs", "openAPI")
+	return
+}
+
+// CreateDescribeGWSClusterPolicyResponse creates a response to parse from DescribeGWSClusterPolicy response
+func CreateDescribeGWSClusterPolicyResponse() (response *DescribeGWSClusterPolicyResponse) {
+	response = &DescribeGWSClusterPolicyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 0
services/ehpc/endpoint.go

@@ -0,0 +1,20 @@
+package ehpc
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "regional"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 11 - 3
services/ehpc/get_accounting_report.go

@@ -79,16 +79,24 @@ type GetAccountingReportRequest struct {
 	ReportType  string           `position:"Query" name:"ReportType"`
 	EndTime     requests.Integer `position:"Query" name:"EndTime"`
 	FilterValue string           `position:"Query" name:"FilterValue"`
+	Dim         string           `position:"Query" name:"Dim"`
 	ClusterId   string           `position:"Query" name:"ClusterId"`
 	StartTime   requests.Integer `position:"Query" name:"StartTime"`
+	PageNumber  requests.Integer `position:"Query" name:"PageNumber"`
+	JobId       string           `position:"Query" name:"JobId"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
 }
 
 // GetAccountingReportResponse is the response struct for api GetAccountingReport
 type GetAccountingReportResponse struct {
 	*responses.BaseResponse
-	RequestId string                    `json:"RequestId" xml:"RequestId"`
-	Metrics   string                    `json:"Metrics" xml:"Metrics"`
-	Data      DataInGetAccountingReport `json:"Data" xml:"Data"`
+	RequestId     string                    `json:"RequestId" xml:"RequestId"`
+	Metrics       string                    `json:"Metrics" xml:"Metrics"`
+	TotalCoreTime int                       `json:"TotalCoreTime" xml:"TotalCoreTime"`
+	TotalCount    int                       `json:"TotalCount" xml:"TotalCount"`
+	PageSize      int                       `json:"PageSize" xml:"PageSize"`
+	PageNumber    int                       `json:"PageNumber" xml:"PageNumber"`
+	Data          DataInGetAccountingReport `json:"Data" xml:"Data"`
 }
 
 // CreateGetAccountingReportRequest creates a request to invoke GetAccountingReport API

+ 1 - 0
services/ehpc/get_auto_scale_config.go

@@ -98,6 +98,7 @@ type GetAutoScaleConfigResponse struct {
 	ExcludeNodes            string                     `json:"ExcludeNodes" xml:"ExcludeNodes"`
 	SpotStrategy            string                     `json:"SpotStrategy" xml:"SpotStrategy"`
 	SpotPriceLimit          float64                    `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
+	ImageId                 string                     `json:"ImageId" xml:"ImageId"`
 	Queues                  QueuesInGetAutoScaleConfig `json:"Queues" xml:"Queues"`
 }
 

+ 1 - 0
services/ehpc/list_custom_images.go

@@ -78,6 +78,7 @@ type ListCustomImagesRequest struct {
 	*requests.RpcRequest
 	ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"`
 	BaseOsTag       string `position:"Query" name:"BaseOsTag"`
+	InstanceType    string `position:"Query" name:"InstanceType"`
 }
 
 // ListCustomImagesResponse is the response struct for api ListCustomImages

+ 2 - 0
services/ehpc/list_images.go

@@ -76,6 +76,8 @@ func (client *Client) ListImagesWithCallback(request *ListImagesRequest, callbac
 // ListImagesRequest is the request struct for api ListImages
 type ListImagesRequest struct {
 	*requests.RpcRequest
+	BaseOsTag    string `position:"Query" name:"BaseOsTag"`
+	InstanceType string `position:"Query" name:"InstanceType"`
 }
 
 // ListImagesResponse is the response struct for api ListImages

+ 1 - 0
services/ehpc/list_softwares.go

@@ -76,6 +76,7 @@ func (client *Client) ListSoftwaresWithCallback(request *ListSoftwaresRequest, c
 // ListSoftwaresRequest is the request struct for api ListSoftwares
 type ListSoftwaresRequest struct {
 	*requests.RpcRequest
+	OsTag       string `position:"Query" name:"OsTag"`
 	EhpcVersion string `position:"Query" name:"EhpcVersion"`
 }
 

+ 2 - 0
services/ehpc/set_auto_scale_config.go

@@ -76,6 +76,7 @@ func (client *Client) SetAutoScaleConfigWithCallback(request *SetAutoScaleConfig
 // SetAutoScaleConfigRequest is the request struct for api SetAutoScaleConfig
 type SetAutoScaleConfigRequest struct {
 	*requests.RpcRequest
+	ImageId                 string                      `position:"Query" name:"ImageId"`
 	SpotPriceLimit          requests.Float              `position:"Query" name:"SpotPriceLimit"`
 	ExcludeNodes            string                      `position:"Query" name:"ExcludeNodes"`
 	ExtraNodesGrowRatio     requests.Integer            `position:"Query" name:"ExtraNodesGrowRatio"`
@@ -97,6 +98,7 @@ type SetAutoScaleConfigQueues struct {
 	SpotStrategy     string                             `name:"SpotStrategy"`
 	QueueName        string                             `name:"QueueName"`
 	InstanceTypes    *[]SetAutoScaleConfigInstanceTypes `name:"InstanceTypes" type:"Repeated"`
+	MaxNodesInQueue  string                             `name:"MaxNodesInQueue"`
 	InstanceType     string                             `name:"InstanceType"`
 	EnableAutoGrow   string                             `name:"EnableAutoGrow"`
 	SpotPriceLimit   string                             `name:"SpotPriceLimit"`

+ 107 - 0
services/ehpc/set_gws_cluster_policy.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"
+)
+
+// SetGWSClusterPolicy invokes the ehpc.SetGWSClusterPolicy API synchronously
+// api document: https://help.aliyun.com/api/ehpc/setgwsclusterpolicy.html
+func (client *Client) SetGWSClusterPolicy(request *SetGWSClusterPolicyRequest) (response *SetGWSClusterPolicyResponse, err error) {
+	response = CreateSetGWSClusterPolicyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetGWSClusterPolicyWithChan invokes the ehpc.SetGWSClusterPolicy API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/setgwsclusterpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetGWSClusterPolicyWithChan(request *SetGWSClusterPolicyRequest) (<-chan *SetGWSClusterPolicyResponse, <-chan error) {
+	responseChan := make(chan *SetGWSClusterPolicyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetGWSClusterPolicy(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetGWSClusterPolicyWithCallback invokes the ehpc.SetGWSClusterPolicy API asynchronously
+// api document: https://help.aliyun.com/api/ehpc/setgwsclusterpolicy.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetGWSClusterPolicyWithCallback(request *SetGWSClusterPolicyRequest, callback func(response *SetGWSClusterPolicyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetGWSClusterPolicyResponse
+		var err error
+		defer close(result)
+		response, err = client.SetGWSClusterPolicy(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetGWSClusterPolicyRequest is the request struct for api SetGWSClusterPolicy
+type SetGWSClusterPolicyRequest struct {
+	*requests.RpcRequest
+	Watermark   string `position:"Query" name:"Watermark"`
+	LocalDrive  string `position:"Query" name:"LocalDrive"`
+	ClusterId   string `position:"Query" name:"ClusterId"`
+	Clipboard   string `position:"Query" name:"Clipboard"`
+	UsbRedirect string `position:"Query" name:"UsbRedirect"`
+}
+
+// SetGWSClusterPolicyResponse is the response struct for api SetGWSClusterPolicy
+type SetGWSClusterPolicyResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateSetGWSClusterPolicyRequest creates a request to invoke SetGWSClusterPolicy API
+func CreateSetGWSClusterPolicyRequest() (request *SetGWSClusterPolicyRequest) {
+	request = &SetGWSClusterPolicyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("EHPC", "2018-04-12", "SetGWSClusterPolicy", "ehs", "openAPI")
+	return
+}
+
+// CreateSetGWSClusterPolicyResponse creates a response to parse from SetGWSClusterPolicy response
+func CreateSetGWSClusterPolicyResponse() (response *SetGWSClusterPolicyResponse) {
+	response = &SetGWSClusterPolicyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/ehpc/struct_cluster_info.go

@@ -28,6 +28,7 @@ type ClusterInfo struct {
 	RegionId           string                        `json:"RegionId" xml:"RegionId"`
 	VolumeMountpoint   string                        `json:"VolumeMountpoint" xml:"VolumeMountpoint"`
 	SchedulerType      string                        `json:"SchedulerType" xml:"SchedulerType"`
+	BaseOsTag          string                        `json:"BaseOsTag" xml:"BaseOsTag"`
 	Id                 string                        `json:"Id" xml:"Id"`
 	VpcId              string                        `json:"VpcId" xml:"VpcId"`
 	DeployMode         string                        `json:"DeployMode" xml:"DeployMode"`

+ 1 - 0
services/ehpc/struct_cluster_info_simple.go

@@ -29,6 +29,7 @@ type ClusterInfoSimple struct {
 	RegionId        string         `json:"RegionId" xml:"RegionId"`
 	SchedulerType   string         `json:"SchedulerType" xml:"SchedulerType"`
 	EhpcVersion     string         `json:"EhpcVersion" xml:"EhpcVersion"`
+	BaseOsTag       string         `json:"BaseOsTag" xml:"BaseOsTag"`
 	Id              string         `json:"Id" xml:"Id"`
 	VpcId           string         `json:"VpcId" xml:"VpcId"`
 	DeployMode      string         `json:"DeployMode" xml:"DeployMode"`

+ 1 - 0
services/ehpc/struct_image_info.go

@@ -37,5 +37,6 @@ type ImageInfo struct {
 	Description       string    `json:"Description" xml:"Description"`
 	Type              string    `json:"Type" xml:"Type"`
 	UpdateDateTime    string    `json:"UpdateDateTime" xml:"UpdateDateTime"`
+	OsTag             OsTag     `json:"OsTag" xml:"OsTag"`
 	BaseOsTag         BaseOsTag `json:"BaseOsTag" xml:"BaseOsTag"`
 }

+ 1 - 0
services/ehpc/struct_node_info.go

@@ -19,6 +19,7 @@ package ehpc
 type NodeInfo struct {
 	LockReason      string           `json:"LockReason" xml:"LockReason"`
 	Expired         bool             `json:"Expired" xml:"Expired"`
+	HtEnabled       bool             `json:"HtEnabled" xml:"HtEnabled"`
 	ExpiredTime     string           `json:"ExpiredTime" xml:"ExpiredTime"`
 	IpAddress       string           `json:"IpAddress" xml:"IpAddress"`
 	ImageId         string           `json:"ImageId" xml:"ImageId"`

+ 2 - 0
services/ehpc/struct_os_info.go

@@ -21,4 +21,6 @@ type OsInfo struct {
 	Platform     string `json:"Platform" xml:"Platform"`
 	Version      string `json:"Version" xml:"Version"`
 	Architecture string `json:"Architecture" xml:"Architecture"`
+	BaseOsTag    string `json:"BaseOsTag" xml:"BaseOsTag"`
+	ImageId      string `json:"ImageId" xml:"ImageId"`
 }

+ 25 - 0
services/ehpc/struct_os_tag.go

@@ -0,0 +1,25 @@
+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.
+
+// OsTag is a nested struct in ehpc response
+type OsTag struct {
+	OsTag        string `json:"OsTag" xml:"OsTag"`
+	BaseOsTag    string `json:"BaseOsTag" xml:"BaseOsTag"`
+	Platform     string `json:"Platform" xml:"Platform"`
+	Version      string `json:"Version" xml:"Version"`
+	Architecture string `json:"Architecture" xml:"Architecture"`
+}

+ 1 - 0
services/ehpc/struct_queue_info.go

@@ -25,6 +25,7 @@ type QueueInfo struct {
 	InstanceType        string        `json:"InstanceType" xml:"InstanceType"`
 	SpotStrategy        string        `json:"SpotStrategy" xml:"SpotStrategy"`
 	ComputeInstanceType string        `json:"ComputeInstanceType" xml:"ComputeInstanceType"`
+	MaxNodesInQueue     int           `json:"MaxNodesInQueue" xml:"MaxNodesInQueue"`
 	Type                string        `json:"Type" xml:"Type"`
 	InstanceTypes       InstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"`
 }