diff --git a/ChangeLog.txt b/ChangeLog.txt index 67f51b6efd..9205c5717a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2022-10-27 Version: v1.61.1829 +- Generated 2018-04-12 for `EHPC`. +- ListNodesByQueue and ListJobsWithFilters add Async. + 2022-10-27 Version: v1.61.1828 - Generated 2017-03-21 for `vod`. - Modify DescribeVodUserDomains api. diff --git a/services/ehpc/add_container_app.go b/services/ehpc/add_container_app.go new file mode 100644 index 0000000000..232fc72197 --- /dev/null +++ b/services/ehpc/add_container_app.go @@ -0,0 +1,104 @@ +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" +) + +// AddContainerApp invokes the ehpc.AddContainerApp API synchronously +func (client *Client) AddContainerApp(request *AddContainerAppRequest) (response *AddContainerAppResponse, err error) { + response = CreateAddContainerAppResponse() + err = client.DoAction(request, response) + return +} + +// AddContainerAppWithChan invokes the ehpc.AddContainerApp API asynchronously +func (client *Client) AddContainerAppWithChan(request *AddContainerAppRequest) (<-chan *AddContainerAppResponse, <-chan error) { + responseChan := make(chan *AddContainerAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddContainerApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddContainerAppWithCallback invokes the ehpc.AddContainerApp API asynchronously +func (client *Client) AddContainerAppWithCallback(request *AddContainerAppRequest, callback func(response *AddContainerAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddContainerAppResponse + var err error + defer close(result) + response, err = client.AddContainerApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddContainerAppRequest is the request struct for api AddContainerApp +type AddContainerAppRequest struct { + *requests.RpcRequest + Description string `position:"Query" name:"Description"` + Repository string `position:"Query" name:"Repository"` + ContainerType string `position:"Query" name:"ContainerType"` + Name string `position:"Query" name:"Name"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// AddContainerAppResponse is the response struct for api AddContainerApp +type AddContainerAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ContainerId ContainerId `json:"ContainerId" xml:"ContainerId"` +} + +// CreateAddContainerAppRequest creates a request to invoke AddContainerApp API +func CreateAddContainerAppRequest() (request *AddContainerAppRequest) { + request = &AddContainerAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddContainerApp", "", "") + request.Method = requests.GET + return +} + +// CreateAddContainerAppResponse creates a response to parse from AddContainerApp response +func CreateAddContainerAppResponse() (response *AddContainerAppResponse) { + response = &AddContainerAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/add_existed_nodes.go b/services/ehpc/add_existed_nodes.go new file mode 100644 index 0000000000..966a12e8ae --- /dev/null +++ b/services/ehpc/add_existed_nodes.go @@ -0,0 +1,109 @@ +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" +) + +// AddExistedNodes invokes the ehpc.AddExistedNodes API synchronously +func (client *Client) AddExistedNodes(request *AddExistedNodesRequest) (response *AddExistedNodesResponse, err error) { + response = CreateAddExistedNodesResponse() + err = client.DoAction(request, response) + return +} + +// AddExistedNodesWithChan invokes the ehpc.AddExistedNodes API asynchronously +func (client *Client) AddExistedNodesWithChan(request *AddExistedNodesRequest) (<-chan *AddExistedNodesResponse, <-chan error) { + responseChan := make(chan *AddExistedNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddExistedNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddExistedNodesWithCallback invokes the ehpc.AddExistedNodes API asynchronously +func (client *Client) AddExistedNodesWithCallback(request *AddExistedNodesRequest, callback func(response *AddExistedNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddExistedNodesResponse + var err error + defer close(result) + response, err = client.AddExistedNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddExistedNodesRequest is the request struct for api AddExistedNodes +type AddExistedNodesRequest struct { + *requests.RpcRequest + ImageId string `position:"Query" name:"ImageId"` + Instance *[]AddExistedNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` + JobQueue string `position:"Query" name:"JobQueue"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` +} + +// AddExistedNodesInstance is a repeated param struct in AddExistedNodesRequest +type AddExistedNodesInstance struct { + Id string `name:"Id"` +} + +// AddExistedNodesResponse is the response struct for api AddExistedNodes +type AddExistedNodesResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddExistedNodesRequest creates a request to invoke AddExistedNodes API +func CreateAddExistedNodesRequest() (request *AddExistedNodesRequest) { + request = &AddExistedNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddExistedNodes", "", "") + request.Method = requests.GET + return +} + +// CreateAddExistedNodesResponse creates a response to parse from AddExistedNodes response +func CreateAddExistedNodesResponse() (response *AddExistedNodesResponse) { + response = &AddExistedNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/add_local_nodes.go b/services/ehpc/add_local_nodes.go new file mode 100644 index 0000000000..46872a5584 --- /dev/null +++ b/services/ehpc/add_local_nodes.go @@ -0,0 +1,102 @@ +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" +) + +// AddLocalNodes invokes the ehpc.AddLocalNodes API synchronously +func (client *Client) AddLocalNodes(request *AddLocalNodesRequest) (response *AddLocalNodesResponse, err error) { + response = CreateAddLocalNodesResponse() + err = client.DoAction(request, response) + return +} + +// AddLocalNodesWithChan invokes the ehpc.AddLocalNodes API asynchronously +func (client *Client) AddLocalNodesWithChan(request *AddLocalNodesRequest) (<-chan *AddLocalNodesResponse, <-chan error) { + responseChan := make(chan *AddLocalNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLocalNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLocalNodesWithCallback invokes the ehpc.AddLocalNodes API asynchronously +func (client *Client) AddLocalNodesWithCallback(request *AddLocalNodesRequest, callback func(response *AddLocalNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLocalNodesResponse + var err error + defer close(result) + response, err = client.AddLocalNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLocalNodesRequest is the request struct for api AddLocalNodes +type AddLocalNodesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Nodes string `position:"Query" name:"Nodes"` + Queue string `position:"Query" name:"Queue"` +} + +// AddLocalNodesResponse is the response struct for api AddLocalNodes +type AddLocalNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIds InstanceIdsInAddLocalNodes `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateAddLocalNodesRequest creates a request to invoke AddLocalNodes API +func CreateAddLocalNodesRequest() (request *AddLocalNodesRequest) { + request = &AddLocalNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddLocalNodes", "", "") + request.Method = requests.GET + return +} + +// CreateAddLocalNodesResponse creates a response to parse from AddLocalNodes response +func CreateAddLocalNodesResponse() (response *AddLocalNodesResponse) { + response = &AddLocalNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/add_nodes.go b/services/ehpc/add_nodes.go index c867df9c50..220f27fc42 100644 --- a/services/ehpc/add_nodes.go +++ b/services/ehpc/add_nodes.go @@ -71,19 +71,54 @@ func (client *Client) AddNodesWithCallback(request *AddNodesRequest, callback fu // AddNodesRequest is the request struct for api AddNodes type AddNodesRequest struct { *requests.RpcRequest - ImageId string `position:"Query" name:"ImageId"` - Count requests.Integer `position:"Query" name:"Count"` - ClusterId string `position:"Query" name:"ClusterId"` - ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` + ImageId string `position:"Query" name:"ImageId"` + SystemDiskLevel string `position:"Query" name:"SystemDiskLevel"` + ClientToken string `position:"Query" name:"ClientToken"` + AllocatePublicAddress requests.Boolean `position:"Query" name:"AllocatePublicAddress"` + InternetMaxBandWidthOut requests.Integer `position:"Query" name:"InternetMaxBandWidthOut"` + JobQueue string `position:"Query" name:"JobQueue"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + SystemDiskType string `position:"Query" name:"SystemDiskType"` + DataDisks *[]AddNodesDataDisks `position:"Query" name:"DataDisks" type:"Repeated"` + MinCount requests.Integer `position:"Query" name:"MinCount"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` + InstanceType string `position:"Query" name:"InstanceType"` + HostNamePrefix string `position:"Query" name:"HostNamePrefix"` + ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + Count requests.Integer `position:"Query" name:"Count"` + ClusterId string `position:"Query" name:"ClusterId"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + HostNameSuffix string `position:"Query" name:"HostNameSuffix"` + Sync requests.Boolean `position:"Query" name:"Sync"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ComputeEnableHt requests.Boolean `position:"Query" name:"ComputeEnableHt"` + AutoRenew string `position:"Query" name:"AutoRenew"` + EcsChargeType string `position:"Query" name:"EcsChargeType"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + CreateMode string `position:"Query" name:"CreateMode"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandWidthIn requests.Integer `position:"Query" name:"InternetMaxBandWidthIn"` +} + +// AddNodesDataDisks is a repeated param struct in AddNodesRequest +type AddNodesDataDisks struct { + DataDiskDeleteWithInstance string `name:"DataDiskDeleteWithInstance"` + DataDiskEncrypted string `name:"DataDiskEncrypted"` + DataDiskKMSKeyId string `name:"DataDiskKMSKeyId"` + DataDiskSize string `name:"DataDiskSize"` + DataDiskCategory string `name:"DataDiskCategory"` + DataDiskPerformanceLevel string `name:"DataDiskPerformanceLevel"` } // AddNodesResponse is the response struct for api AddNodes type AddNodesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceIds InstanceIds `json:"InstanceIds" xml:"InstanceIds"` + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIds InstanceIdsInAddNodes `json:"InstanceIds" xml:"InstanceIds"` } // CreateAddNodesRequest creates a request to invoke AddNodes API @@ -91,7 +126,7 @@ func CreateAddNodesRequest() (request *AddNodesRequest) { request = &AddNodesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "AddNodes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "AddNodes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/add_queue.go b/services/ehpc/add_queue.go new file mode 100644 index 0000000000..5485b700f7 --- /dev/null +++ b/services/ehpc/add_queue.go @@ -0,0 +1,100 @@ +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" +) + +// AddQueue invokes the ehpc.AddQueue API synchronously +func (client *Client) AddQueue(request *AddQueueRequest) (response *AddQueueResponse, err error) { + response = CreateAddQueueResponse() + err = client.DoAction(request, response) + return +} + +// AddQueueWithChan invokes the ehpc.AddQueue API asynchronously +func (client *Client) AddQueueWithChan(request *AddQueueRequest) (<-chan *AddQueueResponse, <-chan error) { + responseChan := make(chan *AddQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddQueueWithCallback invokes the ehpc.AddQueue API asynchronously +func (client *Client) AddQueueWithCallback(request *AddQueueRequest, callback func(response *AddQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddQueueResponse + var err error + defer close(result) + response, err = client.AddQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddQueueRequest is the request struct for api AddQueue +type AddQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// AddQueueResponse is the response struct for api AddQueue +type AddQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddQueueRequest creates a request to invoke AddQueue API +func CreateAddQueueRequest() (request *AddQueueRequest) { + request = &AddQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddQueue", "", "") + request.Method = requests.GET + return +} + +// CreateAddQueueResponse creates a response to parse from AddQueue response +func CreateAddQueueResponse() (response *AddQueueResponse) { + response = &AddQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/add_security_group.go b/services/ehpc/add_security_group.go new file mode 100644 index 0000000000..8ab7382360 --- /dev/null +++ b/services/ehpc/add_security_group.go @@ -0,0 +1,101 @@ +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" +) + +// AddSecurityGroup invokes the ehpc.AddSecurityGroup API synchronously +func (client *Client) AddSecurityGroup(request *AddSecurityGroupRequest) (response *AddSecurityGroupResponse, err error) { + response = CreateAddSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// AddSecurityGroupWithChan invokes the ehpc.AddSecurityGroup API asynchronously +func (client *Client) AddSecurityGroupWithChan(request *AddSecurityGroupRequest) (<-chan *AddSecurityGroupResponse, <-chan error) { + responseChan := make(chan *AddSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddSecurityGroupWithCallback invokes the ehpc.AddSecurityGroup API asynchronously +func (client *Client) AddSecurityGroupWithCallback(request *AddSecurityGroupRequest, callback func(response *AddSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddSecurityGroupResponse + var err error + defer close(result) + response, err = client.AddSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddSecurityGroupRequest is the request struct for api AddSecurityGroup +type AddSecurityGroupRequest struct { + *requests.RpcRequest + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// AddSecurityGroupResponse is the response struct for api AddSecurityGroup +type AddSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddSecurityGroupRequest creates a request to invoke AddSecurityGroup API +func CreateAddSecurityGroupRequest() (request *AddSecurityGroupRequest) { + request = &AddSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "AddSecurityGroup", "", "") + request.Method = requests.GET + return +} + +// CreateAddSecurityGroupResponse creates a response to parse from AddSecurityGroup response +func CreateAddSecurityGroupResponse() (response *AddSecurityGroupResponse) { + response = &AddSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/add_users.go b/services/ehpc/add_users.go index 4099caab47..cd51c29cfe 100644 --- a/services/ehpc/add_users.go +++ b/services/ehpc/add_users.go @@ -71,9 +71,8 @@ func (client *Client) AddUsersWithCallback(request *AddUsersRequest, callback fu // AddUsersRequest is the request struct for api AddUsers type AddUsersRequest struct { *requests.RpcRequest - ClusterId string `position:"Query" name:"ClusterId"` - ReleaseInstance requests.Boolean `position:"Query" name:"ReleaseInstance"` - User *[]AddUsersUser `position:"Query" name:"User" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` + User *[]AddUsersUser `position:"Query" name:"User" type:"Repeated"` } // AddUsersUser is a repeated param struct in AddUsersRequest @@ -94,7 +93,7 @@ func CreateAddUsersRequest() (request *AddUsersRequest) { request = &AddUsersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "AddUsers", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "AddUsers", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/apply_nodes.go b/services/ehpc/apply_nodes.go new file mode 100644 index 0000000000..8c02bac98f --- /dev/null +++ b/services/ehpc/apply_nodes.go @@ -0,0 +1,148 @@ +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" +) + +// ApplyNodes invokes the ehpc.ApplyNodes API synchronously +func (client *Client) ApplyNodes(request *ApplyNodesRequest) (response *ApplyNodesResponse, err error) { + response = CreateApplyNodesResponse() + err = client.DoAction(request, response) + return +} + +// ApplyNodesWithChan invokes the ehpc.ApplyNodes API asynchronously +func (client *Client) ApplyNodesWithChan(request *ApplyNodesRequest) (<-chan *ApplyNodesResponse, <-chan error) { + responseChan := make(chan *ApplyNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ApplyNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ApplyNodesWithCallback invokes the ehpc.ApplyNodes API asynchronously +func (client *Client) ApplyNodesWithCallback(request *ApplyNodesRequest, callback func(response *ApplyNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ApplyNodesResponse + var err error + defer close(result) + response, err = client.ApplyNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ApplyNodesRequest is the request struct for api ApplyNodes +type ApplyNodesRequest struct { + *requests.RpcRequest + ImageId string `position:"Query" name:"ImageId"` + Memory requests.Integer `position:"Query" name:"Memory"` + SystemDiskLevel string `position:"Query" name:"SystemDiskLevel"` + AllocatePublicAddress requests.Boolean `position:"Query" name:"AllocatePublicAddress"` + InternetMaxBandWidthOut requests.Integer `position:"Query" name:"InternetMaxBandWidthOut"` + ResourceAmountType string `position:"Query" name:"ResourceAmountType"` + StrictResourceProvision requests.Boolean `position:"Query" name:"StrictResourceProvision"` + JobQueue string `position:"Query" name:"JobQueue"` + SystemDiskType string `position:"Query" name:"SystemDiskType"` + Cores requests.Integer `position:"Query" name:"Cores"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` + ZoneInfos *[]ApplyNodesZoneInfos `position:"Query" name:"ZoneInfos" type:"Repeated"` + HostNamePrefix string `position:"Query" name:"HostNamePrefix"` + Tag *[]ApplyNodesTag `position:"Query" name:"Tag" type:"Repeated"` + ComputeSpotPriceLimit requests.Float `position:"Query" name:"ComputeSpotPriceLimit"` + ClusterId string `position:"Query" name:"ClusterId"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + HostNameSuffix string `position:"Query" name:"HostNameSuffix"` + PriorityStrategy string `position:"Query" name:"PriorityStrategy"` + InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` + Round requests.Integer `position:"Query" name:"Round"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + Interval requests.Integer `position:"Query" name:"Interval"` + InstanceTypeModel *[]ApplyNodesInstanceTypeModel `position:"Query" name:"InstanceTypeModel" type:"Repeated"` + InternetMaxBandWidthIn requests.Integer `position:"Query" name:"InternetMaxBandWidthIn"` + TargetCapacity requests.Integer `position:"Query" name:"TargetCapacity"` + StrictSatisfiedTargetCapacity requests.Boolean `position:"Query" name:"StrictSatisfiedTargetCapacity"` +} + +// ApplyNodesZoneInfos is a repeated param struct in ApplyNodesRequest +type ApplyNodesZoneInfos struct { + VSwitchId string `name:"VSwitchId"` + ZoneId string `name:"ZoneId"` +} + +// ApplyNodesTag is a repeated param struct in ApplyNodesRequest +type ApplyNodesTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// ApplyNodesInstanceTypeModel is a repeated param struct in ApplyNodesRequest +type ApplyNodesInstanceTypeModel struct { + MaxPrice string `name:"MaxPrice"` + TargetImageId string `name:"TargetImageId"` + InstanceType string `name:"InstanceType"` +} + +// ApplyNodesResponse is the response struct for api ApplyNodes +type ApplyNodesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SatisfiedAmount int `json:"SatisfiedAmount" xml:"SatisfiedAmount"` + TaskId string `json:"TaskId" xml:"TaskId"` + Detail string `json:"Detail" xml:"Detail"` + InstanceIds InstanceIdsInApplyNodes `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateApplyNodesRequest creates a request to invoke ApplyNodes API +func CreateApplyNodesRequest() (request *ApplyNodesRequest) { + request = &ApplyNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ApplyNodes", "", "") + request.Method = requests.GET + return +} + +// CreateApplyNodesResponse creates a response to parse from ApplyNodes response +func CreateApplyNodesResponse() (response *ApplyNodesResponse) { + response = &ApplyNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/create_cluster.go b/services/ehpc/create_cluster.go index f9a9ad148a..52e4b9aca9 100644 --- a/services/ehpc/create_cluster.go +++ b/services/ehpc/create_cluster.go @@ -71,38 +71,91 @@ func (client *Client) CreateClusterWithCallback(request *CreateClusterRequest, c // CreateClusterRequest is the request struct for api CreateCluster type CreateClusterRequest struct { *requests.RpcRequest - SccClusterId string `position:"Query" name:"SccClusterId"` - ImageId string `position:"Query" name:"ImageId"` - EcsOrderManagerInstanceType string `position:"Query" name:"EcsOrder.Manager.InstanceType"` - EhpcVersion string `position:"Query" name:"EhpcVersion"` - AccountType string `position:"Query" name:"AccountType"` - 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"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - VolumeType string `position:"Query" name:"VolumeType"` - EcsOrderManagerCount requests.Integer `position:"Query" name:"EcsOrder.Manager.Count"` - Password string `position:"Query" name:"Password"` - EcsOrderLoginCount requests.Integer `position:"Query" name:"EcsOrder.Login.Count"` - ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` - VolumeProtocol string `position:"Query" name:"VolumeProtocol"` - OsTag string `position:"Query" name:"OsTag"` - RemoteDirectory string `position:"Query" name:"RemoteDirectory"` - EcsOrderComputeCount requests.Integer `position:"Query" name:"EcsOrder.Compute.Count"` - ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` - VSwitchId string `position:"Query" name:"VSwitchId"` - Application *[]CreateClusterApplication `position:"Query" name:"Application" type:"Repeated"` - EcsChargeType string `position:"Query" name:"EcsChargeType"` - VpcId string `position:"Query" name:"VpcId"` - HaEnable requests.Boolean `position:"Query" name:"HaEnable"` - Name string `position:"Query" name:"Name"` - SchedulerType string `position:"Query" name:"SchedulerType"` - VolumeId string `position:"Query" name:"VolumeId"` - VolumeMountpoint string `position:"Query" name:"VolumeMountpoint"` - EcsOrderLoginInstanceType string `position:"Query" name:"EcsOrder.Login.InstanceType"` - ZoneId string `position:"Query" name:"ZoneId"` + AdditionalVolumes *[]CreateClusterAdditionalVolumes `position:"Query" name:"AdditionalVolumes" type:"Repeated"` + EcsOrderManagerInstanceType string `position:"Query" name:"EcsOrder.Manager.InstanceType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + DeployMode string `position:"Query" name:"DeployMode"` + EcsOrderManagerCount requests.Integer `position:"Query" name:"EcsOrder.Manager.Count"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Password string `position:"Query" name:"Password"` + EcsOrderLoginCount requests.Integer `position:"Query" name:"EcsOrder.Login.Count"` + WithoutElasticIp requests.Boolean `position:"Query" name:"WithoutElasticIp"` + RemoteVisEnable string `position:"Query" name:"RemoteVisEnable"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` + Tag *[]CreateClusterTag `position:"Query" name:"Tag" type:"Repeated"` + ComputeSpotPriceLimit string `position:"Query" name:"ComputeSpotPriceLimit"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + RemoteDirectory string `position:"Query" name:"RemoteDirectory"` + EcsOrderComputeCount requests.Integer `position:"Query" name:"EcsOrder.Compute.Count"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + PostInstallScript *[]CreateClusterPostInstallScript `position:"Query" name:"PostInstallScript" type:"Repeated"` + RamNodeTypes *[]string `position:"Query" name:"RamNodeTypes" type:"Repeated"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ComputeEnableHt requests.Boolean `position:"Query" name:"ComputeEnableHt"` + AutoRenew string `position:"Query" name:"AutoRenew"` + Domain string `position:"Query" name:"Domain"` + Name string `position:"Query" name:"Name"` + VolumeId string `position:"Query" name:"VolumeId"` + ZoneId string `position:"Query" name:"ZoneId"` + SccClusterId string `position:"Query" name:"SccClusterId"` + VolumeMountOption string `position:"Query" name:"VolumeMountOption"` + ImageId string `position:"Query" name:"ImageId"` + SystemDiskLevel string `position:"Query" name:"SystemDiskLevel"` + ClientToken string `position:"Query" name:"ClientToken"` + EhpcVersion string `position:"Query" name:"EhpcVersion"` + AccountType string `position:"Query" name:"AccountType"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + EcsOrderComputeInstanceType string `position:"Query" name:"EcsOrder.Compute.InstanceType"` + JobQueue string `position:"Query" name:"JobQueue"` + VolumeType string `position:"Query" name:"VolumeType"` + SystemDiskType string `position:"Query" name:"SystemDiskType"` + VolumeProtocol string `position:"Query" name:"VolumeProtocol"` + ClientVersion string `position:"Query" name:"ClientVersion"` + OsTag string `position:"Query" name:"OsTag"` + ClusterVersion string `position:"Query" name:"ClusterVersion"` + IsComputeEss requests.Boolean `position:"Query" name:"IsComputeEss"` + RamRoleName string `position:"Query" name:"RamRoleName"` + Plugin string `position:"Query" name:"Plugin"` + Application *[]CreateClusterApplication `position:"Query" name:"Application" type:"Repeated"` + EcsChargeType string `position:"Query" name:"EcsChargeType"` + InputFileUrl string `position:"Query" name:"InputFileUrl"` + VpcId string `position:"Query" name:"VpcId"` + HaEnable requests.Boolean `position:"Query" name:"HaEnable"` + WithoutAgent requests.Boolean `position:"Query" name:"WithoutAgent"` + SchedulerType string `position:"Query" name:"SchedulerType"` + VolumeMountpoint string `position:"Query" name:"VolumeMountpoint"` + EcsOrderLoginInstanceType string `position:"Query" name:"EcsOrder.Login.InstanceType"` +} + +// CreateClusterAdditionalVolumes is a repeated param struct in CreateClusterRequest +type CreateClusterAdditionalVolumes struct { + VolumeType string `name:"VolumeType"` + VolumeMountOption string `name:"VolumeMountOption"` + VolumeProtocol string `name:"VolumeProtocol"` + LocalDirectory string `name:"LocalDirectory"` + RemoteDirectory string `name:"RemoteDirectory"` + Roles *[]CreateClusterAdditionalVolumesRoles `name:"Roles" type:"Repeated"` + VolumeId string `name:"VolumeId"` + VolumeMountpoint string `name:"VolumeMountpoint"` + Location string `name:"Location"` + JobQueue string `name:"JobQueue"` +} + +// CreateClusterTag is a repeated param struct in CreateClusterRequest +type CreateClusterTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateClusterPostInstallScript is a repeated param struct in CreateClusterRequest +type CreateClusterPostInstallScript struct { + Args string `name:"Args"` + Url string `name:"Url"` } // CreateClusterApplication is a repeated param struct in CreateClusterRequest @@ -110,11 +163,17 @@ type CreateClusterApplication struct { Tag string `name:"Tag"` } +// CreateClusterAdditionalVolumesRoles is a repeated param struct in CreateClusterRequest +type CreateClusterAdditionalVolumesRoles struct { + Name string `name:"Name"` +} + // CreateClusterResponse is the response struct for api CreateCluster type CreateClusterResponse struct { *responses.BaseResponse - ClusterId string `json:"ClusterId" xml:"ClusterId"` RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` } // CreateCreateClusterRequest creates a request to invoke CreateCluster API @@ -122,7 +181,7 @@ func CreateCreateClusterRequest() (request *CreateClusterRequest) { request = &CreateClusterRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "CreateCluster", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateCluster", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/create_gws_cluster.go b/services/ehpc/create_gws_cluster.go new file mode 100644 index 0000000000..04cbc4a002 --- /dev/null +++ b/services/ehpc/create_gws_cluster.go @@ -0,0 +1,103 @@ +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" +) + +// CreateGWSCluster invokes the ehpc.CreateGWSCluster API synchronously +func (client *Client) CreateGWSCluster(request *CreateGWSClusterRequest) (response *CreateGWSClusterResponse, err error) { + response = CreateCreateGWSClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateGWSClusterWithChan invokes the ehpc.CreateGWSCluster API asynchronously +func (client *Client) CreateGWSClusterWithChan(request *CreateGWSClusterRequest) (<-chan *CreateGWSClusterResponse, <-chan error) { + responseChan := make(chan *CreateGWSClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGWSCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGWSClusterWithCallback invokes the ehpc.CreateGWSCluster API asynchronously +func (client *Client) CreateGWSClusterWithCallback(request *CreateGWSClusterRequest, callback func(response *CreateGWSClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGWSClusterResponse + var err error + defer close(result) + response, err = client.CreateGWSCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGWSClusterRequest is the request struct for api CreateGWSCluster +type CreateGWSClusterRequest struct { + *requests.RpcRequest + ClusterType string `position:"Query" name:"ClusterType"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VpcId string `position:"Query" name:"VpcId"` + Name string `position:"Query" name:"Name"` +} + +// CreateGWSClusterResponse is the response struct for api CreateGWSCluster +type CreateGWSClusterResponse struct { + *responses.BaseResponse + ClusterId string `json:"ClusterId" xml:"ClusterId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateGWSClusterRequest creates a request to invoke CreateGWSCluster API +func CreateCreateGWSClusterRequest() (request *CreateGWSClusterRequest) { + request = &CreateGWSClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateGWSCluster", "", "") + request.Method = requests.GET + return +} + +// CreateCreateGWSClusterResponse creates a response to parse from CreateGWSCluster response +func CreateCreateGWSClusterResponse() (response *CreateGWSClusterResponse) { + response = &CreateGWSClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/create_gws_image.go b/services/ehpc/create_gws_image.go new file mode 100644 index 0000000000..32bc11ff9b --- /dev/null +++ b/services/ehpc/create_gws_image.go @@ -0,0 +1,101 @@ +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" +) + +// CreateGWSImage invokes the ehpc.CreateGWSImage API synchronously +func (client *Client) CreateGWSImage(request *CreateGWSImageRequest) (response *CreateGWSImageResponse, err error) { + response = CreateCreateGWSImageResponse() + err = client.DoAction(request, response) + return +} + +// CreateGWSImageWithChan invokes the ehpc.CreateGWSImage API asynchronously +func (client *Client) CreateGWSImageWithChan(request *CreateGWSImageRequest) (<-chan *CreateGWSImageResponse, <-chan error) { + responseChan := make(chan *CreateGWSImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGWSImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGWSImageWithCallback invokes the ehpc.CreateGWSImage API asynchronously +func (client *Client) CreateGWSImageWithCallback(request *CreateGWSImageRequest, callback func(response *CreateGWSImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGWSImageResponse + var err error + defer close(result) + response, err = client.CreateGWSImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGWSImageRequest is the request struct for api CreateGWSImage +type CreateGWSImageRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` +} + +// CreateGWSImageResponse is the response struct for api CreateGWSImage +type CreateGWSImageResponse struct { + *responses.BaseResponse + ImageId string `json:"ImageId" xml:"ImageId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateGWSImageRequest creates a request to invoke CreateGWSImage API +func CreateCreateGWSImageRequest() (request *CreateGWSImageRequest) { + request = &CreateGWSImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateGWSImage", "", "") + request.Method = requests.GET + return +} + +// CreateCreateGWSImageResponse creates a response to parse from CreateGWSImage response +func CreateCreateGWSImageResponse() (response *CreateGWSImageResponse) { + response = &CreateGWSImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/create_gws_instance.go b/services/ehpc/create_gws_instance.go new file mode 100644 index 0000000000..87b80b451f --- /dev/null +++ b/services/ehpc/create_gws_instance.go @@ -0,0 +1,116 @@ +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" +) + +// CreateGWSInstance invokes the ehpc.CreateGWSInstance API synchronously +func (client *Client) CreateGWSInstance(request *CreateGWSInstanceRequest) (response *CreateGWSInstanceResponse, err error) { + response = CreateCreateGWSInstanceResponse() + err = client.DoAction(request, response) + return +} + +// CreateGWSInstanceWithChan invokes the ehpc.CreateGWSInstance API asynchronously +func (client *Client) CreateGWSInstanceWithChan(request *CreateGWSInstanceRequest) (<-chan *CreateGWSInstanceResponse, <-chan error) { + responseChan := make(chan *CreateGWSInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGWSInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGWSInstanceWithCallback invokes the ehpc.CreateGWSInstance API asynchronously +func (client *Client) CreateGWSInstanceWithCallback(request *CreateGWSInstanceRequest, callback func(response *CreateGWSInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGWSInstanceResponse + var err error + defer close(result) + response, err = client.CreateGWSInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGWSInstanceRequest is the request struct for api CreateGWSInstance +type CreateGWSInstanceRequest struct { + *requests.RpcRequest + ImageId string `position:"Query" name:"ImageId"` + AllocatePublicAddress requests.Boolean `position:"Query" name:"AllocatePublicAddress"` + AppList string `position:"Query" name:"AppList"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SystemDiskCategory string `position:"Query" name:"SystemDiskCategory"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Period string `position:"Query" name:"Period"` + ClusterId string `position:"Query" name:"ClusterId"` + WorkMode string `position:"Query" name:"WorkMode"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + Name string `position:"Query" name:"Name"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` +} + +// CreateGWSInstanceResponse is the response struct for api CreateGWSInstance +type CreateGWSInstanceResponse struct { + *responses.BaseResponse + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateGWSInstanceRequest creates a request to invoke CreateGWSInstance API +func CreateCreateGWSInstanceRequest() (request *CreateGWSInstanceRequest) { + request = &CreateGWSInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateGWSInstance", "", "") + request.Method = requests.GET + return +} + +// CreateCreateGWSInstanceResponse creates a response to parse from CreateGWSInstance response +func CreateCreateGWSInstanceResponse() (response *CreateGWSInstanceResponse) { + response = &CreateGWSInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/create_hybrid_cluster.go b/services/ehpc/create_hybrid_cluster.go new file mode 100644 index 0000000000..a82f15c49c --- /dev/null +++ b/services/ehpc/create_hybrid_cluster.go @@ -0,0 +1,158 @@ +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" +) + +// CreateHybridCluster invokes the ehpc.CreateHybridCluster API synchronously +func (client *Client) CreateHybridCluster(request *CreateHybridClusterRequest) (response *CreateHybridClusterResponse, err error) { + response = CreateCreateHybridClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateHybridClusterWithChan invokes the ehpc.CreateHybridCluster API asynchronously +func (client *Client) CreateHybridClusterWithChan(request *CreateHybridClusterRequest) (<-chan *CreateHybridClusterResponse, <-chan error) { + responseChan := make(chan *CreateHybridClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateHybridCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateHybridClusterWithCallback invokes the ehpc.CreateHybridCluster API asynchronously +func (client *Client) CreateHybridClusterWithCallback(request *CreateHybridClusterRequest, callback func(response *CreateHybridClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateHybridClusterResponse + var err error + defer close(result) + response, err = client.CreateHybridCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateHybridClusterRequest is the request struct for api CreateHybridCluster +type CreateHybridClusterRequest struct { + *requests.RpcRequest + EcsOrderManagerInstanceType string `position:"Query" name:"EcsOrder.Manager.InstanceType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + MultiOs requests.Boolean `position:"Query" name:"MultiOs"` + SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + OnPremiseVolumeRemotePath string `position:"Query" name:"OnPremiseVolumeRemotePath"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Password string `position:"Query" name:"Password"` + ComputeSpotPriceLimit requests.Float `position:"Query" name:"ComputeSpotPriceLimit"` + OnPremiseVolumeLocalPath string `position:"Query" name:"OnPremiseVolumeLocalPath"` + RemoteDirectory string `position:"Query" name:"RemoteDirectory"` + ComputeSpotStrategy string `position:"Query" name:"ComputeSpotStrategy"` + PostInstallScript *[]CreateHybridClusterPostInstallScript `position:"Query" name:"PostInstallScript" type:"Repeated"` + VSwitchId string `position:"Query" name:"VSwitchId"` + Domain string `position:"Query" name:"Domain"` + Name string `position:"Query" name:"Name"` + VolumeId string `position:"Query" name:"VolumeId"` + ZoneId string `position:"Query" name:"ZoneId"` + ImageId string `position:"Query" name:"ImageId"` + ClientToken string `position:"Query" name:"ClientToken"` + EhpcVersion string `position:"Query" name:"EhpcVersion"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + EcsOrderComputeInstanceType string `position:"Query" name:"EcsOrder.Compute.InstanceType"` + JobQueue string `position:"Query" name:"JobQueue"` + VolumeType string `position:"Query" name:"VolumeType"` + OnPremiseVolumeMountPoint string `position:"Query" name:"OnPremiseVolumeMountPoint"` + OnPremiseVolumeProtocol string `position:"Query" name:"OnPremiseVolumeProtocol"` + VolumeProtocol string `position:"Query" name:"VolumeProtocol"` + ClientVersion string `position:"Query" name:"ClientVersion"` + OsTag string `position:"Query" name:"OsTag"` + Nodes *[]CreateHybridClusterNodes `position:"Query" name:"Nodes" type:"Repeated"` + Application *[]CreateHybridClusterApplication `position:"Query" name:"Application" type:"Repeated"` + VpcId string `position:"Query" name:"VpcId"` + VolumeMountpoint string `position:"Query" name:"VolumeMountpoint"` + SchedulerPreInstall requests.Boolean `position:"Query" name:"SchedulerPreInstall"` + 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"` +} + +// CreateHybridClusterNodes is a repeated param struct in CreateHybridClusterRequest +type CreateHybridClusterNodes struct { + IpAddress string `name:"IpAddress"` + HostName string `name:"HostName"` + Role string `name:"Role"` + SchedulerType string `name:"SchedulerType"` + AccountType string `name:"AccountType"` + Dir string `name:"Dir"` +} + +// CreateHybridClusterApplication is a repeated param struct in CreateHybridClusterRequest +type CreateHybridClusterApplication struct { + Tag string `name:"Tag"` +} + +// CreateHybridClusterResponse is the response struct for api CreateHybridCluster +type CreateHybridClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} + +// CreateCreateHybridClusterRequest creates a request to invoke CreateHybridCluster API +func CreateCreateHybridClusterRequest() (request *CreateHybridClusterRequest) { + request = &CreateHybridClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateHybridCluster", "", "") + request.Method = requests.GET + return +} + +// CreateCreateHybridClusterResponse creates a response to parse from CreateHybridCluster response +func CreateCreateHybridClusterResponse() (response *CreateHybridClusterResponse) { + response = &CreateHybridClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_job_user.go b/services/ehpc/create_job_file.go similarity index 53% rename from services/ehpc/set_job_user.go rename to services/ehpc/create_job_file.go index 2dc0df0273..1f37e263b6 100644 --- a/services/ehpc/set_job_user.go +++ b/services/ehpc/create_job_file.go @@ -20,21 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// SetJobUser invokes the ehpc.SetJobUser API synchronously -func (client *Client) SetJobUser(request *SetJobUserRequest) (response *SetJobUserResponse, err error) { - response = CreateSetJobUserResponse() +// CreateJobFile invokes the ehpc.CreateJobFile API synchronously +func (client *Client) CreateJobFile(request *CreateJobFileRequest) (response *CreateJobFileResponse, err error) { + response = CreateCreateJobFileResponse() err = client.DoAction(request, response) return } -// SetJobUserWithChan invokes the ehpc.SetJobUser API asynchronously -func (client *Client) SetJobUserWithChan(request *SetJobUserRequest) (<-chan *SetJobUserResponse, <-chan error) { - responseChan := make(chan *SetJobUserResponse, 1) +// CreateJobFileWithChan invokes the ehpc.CreateJobFile API asynchronously +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.SetJobUser(request) + response, err := client.CreateJobFile(request) if err != nil { errChan <- err } else { @@ -49,14 +49,14 @@ func (client *Client) SetJobUserWithChan(request *SetJobUserRequest) (<-chan *Se return responseChan, errChan } -// SetJobUserWithCallback invokes the ehpc.SetJobUser API asynchronously -func (client *Client) SetJobUserWithCallback(request *SetJobUserRequest, callback func(response *SetJobUserResponse, err error)) <-chan int { +// CreateJobFileWithCallback invokes the ehpc.CreateJobFile API asynchronously +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 *SetJobUserResponse + var response *CreateJobFileResponse var err error defer close(result) - response, err = client.SetJobUser(request) + response, err = client.CreateJobFile(request) callback(response, err) result <- 1 }) @@ -68,33 +68,35 @@ func (client *Client) SetJobUserWithCallback(request *SetJobUserRequest, callbac return result } -// SetJobUserRequest is the request struct for api SetJobUser -type SetJobUserRequest struct { +// 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"` } -// SetJobUserResponse is the response struct for api SetJobUser -type SetJobUserResponse struct { +// CreateJobFileResponse is the response struct for api CreateJobFile +type CreateJobFileResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateSetJobUserRequest creates a request to invoke SetJobUser API -func CreateSetJobUserRequest() (request *SetJobUserRequest) { - request = &SetJobUserRequest{ +// CreateCreateJobFileRequest creates a request to invoke CreateJobFile API +func CreateCreateJobFileRequest() (request *CreateJobFileRequest) { + request = &CreateJobFileRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "SetJobUser", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateJobFile", "", "") request.Method = requests.GET return } -// CreateSetJobUserResponse creates a response to parse from SetJobUser response -func CreateSetJobUserResponse() (response *SetJobUserResponse) { - response = &SetJobUserResponse{ +// CreateCreateJobFileResponse creates a response to parse from CreateJobFile response +func CreateCreateJobFileResponse() (response *CreateJobFileResponse) { + response = &CreateJobFileResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/services/ehpc/create_job_template.go b/services/ehpc/create_job_template.go index 2fb03736be..ce1edd8bed 100644 --- a/services/ehpc/create_job_template.go +++ b/services/ehpc/create_job_template.go @@ -72,15 +72,25 @@ func (client *Client) CreateJobTemplateWithCallback(request *CreateJobTemplateRe type CreateJobTemplateRequest struct { *requests.RpcRequest StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` + ClockTime string `position:"Query" name:"ClockTime"` CommandLine string `position:"Query" name:"CommandLine"` ArrayRequest string `position:"Query" name:"ArrayRequest"` + UnzipCmd string `position:"Query" name:"UnzipCmd"` PackagePath string `position:"Query" name:"PackagePath"` + Mem string `position:"Query" name:"Mem"` StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` Variables string `position:"Query" name:"Variables"` RunasUser string `position:"Query" name:"RunasUser"` ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + Thread requests.Integer `position:"Query" name:"Thread"` Priority requests.Integer `position:"Query" name:"Priority"` + Gpu requests.Integer `position:"Query" name:"Gpu"` + WithUnzipCmd requests.Boolean `position:"Query" name:"WithUnzipCmd"` + Node requests.Integer `position:"Query" name:"Node"` + Task requests.Integer `position:"Query" name:"Task"` + InputFileUrl string `position:"Query" name:"InputFileUrl"` Name string `position:"Query" name:"Name"` + Queue string `position:"Query" name:"Queue"` } // CreateJobTemplateResponse is the response struct for api CreateJobTemplate @@ -95,7 +105,7 @@ func CreateCreateJobTemplateRequest() (request *CreateJobTemplateRequest) { request = &CreateJobTemplateRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "CreateJobTemplate", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "CreateJobTemplate", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/delete_cluster.go b/services/ehpc/delete_cluster.go index 0a1654ce00..7f4681c47b 100644 --- a/services/ehpc/delete_cluster.go +++ b/services/ehpc/delete_cluster.go @@ -78,6 +78,7 @@ type DeleteClusterRequest struct { // DeleteClusterResponse is the response struct for api DeleteCluster type DeleteClusterResponse struct { *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` RequestId string `json:"RequestId" xml:"RequestId"` } @@ -86,7 +87,7 @@ func CreateDeleteClusterRequest() (request *DeleteClusterRequest) { request = &DeleteClusterRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DeleteCluster", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteCluster", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/delete_container_apps.go b/services/ehpc/delete_container_apps.go new file mode 100644 index 0000000000..d40f6e4dd4 --- /dev/null +++ b/services/ehpc/delete_container_apps.go @@ -0,0 +1,104 @@ +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" +) + +// DeleteContainerApps invokes the ehpc.DeleteContainerApps API synchronously +func (client *Client) DeleteContainerApps(request *DeleteContainerAppsRequest) (response *DeleteContainerAppsResponse, err error) { + response = CreateDeleteContainerAppsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteContainerAppsWithChan invokes the ehpc.DeleteContainerApps API asynchronously +func (client *Client) DeleteContainerAppsWithChan(request *DeleteContainerAppsRequest) (<-chan *DeleteContainerAppsResponse, <-chan error) { + responseChan := make(chan *DeleteContainerAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteContainerApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteContainerAppsWithCallback invokes the ehpc.DeleteContainerApps API asynchronously +func (client *Client) DeleteContainerAppsWithCallback(request *DeleteContainerAppsRequest, callback func(response *DeleteContainerAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteContainerAppsResponse + var err error + defer close(result) + response, err = client.DeleteContainerApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteContainerAppsRequest is the request struct for api DeleteContainerApps +type DeleteContainerAppsRequest struct { + *requests.RpcRequest + ContainerApp *[]DeleteContainerAppsContainerApp `position:"Query" name:"ContainerApp" type:"Repeated"` +} + +// DeleteContainerAppsContainerApp is a repeated param struct in DeleteContainerAppsRequest +type DeleteContainerAppsContainerApp struct { + Id string `name:"Id"` +} + +// DeleteContainerAppsResponse is the response struct for api DeleteContainerApps +type DeleteContainerAppsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteContainerAppsRequest creates a request to invoke DeleteContainerApps API +func CreateDeleteContainerAppsRequest() (request *DeleteContainerAppsRequest) { + request = &DeleteContainerAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteContainerApps", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteContainerAppsResponse creates a response to parse from DeleteContainerApps response +func CreateDeleteContainerAppsResponse() (response *DeleteContainerAppsResponse) { + response = &DeleteContainerAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_gws_cluster.go b/services/ehpc/delete_gws_cluster.go new file mode 100644 index 0000000000..b359315160 --- /dev/null +++ b/services/ehpc/delete_gws_cluster.go @@ -0,0 +1,99 @@ +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" +) + +// DeleteGWSCluster invokes the ehpc.DeleteGWSCluster API synchronously +func (client *Client) DeleteGWSCluster(request *DeleteGWSClusterRequest) (response *DeleteGWSClusterResponse, err error) { + response = CreateDeleteGWSClusterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGWSClusterWithChan invokes the ehpc.DeleteGWSCluster API asynchronously +func (client *Client) DeleteGWSClusterWithChan(request *DeleteGWSClusterRequest) (<-chan *DeleteGWSClusterResponse, <-chan error) { + responseChan := make(chan *DeleteGWSClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGWSCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGWSClusterWithCallback invokes the ehpc.DeleteGWSCluster API asynchronously +func (client *Client) DeleteGWSClusterWithCallback(request *DeleteGWSClusterRequest, callback func(response *DeleteGWSClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGWSClusterResponse + var err error + defer close(result) + response, err = client.DeleteGWSCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGWSClusterRequest is the request struct for api DeleteGWSCluster +type DeleteGWSClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteGWSClusterResponse is the response struct for api DeleteGWSCluster +type DeleteGWSClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteGWSClusterRequest creates a request to invoke DeleteGWSCluster API +func CreateDeleteGWSClusterRequest() (request *DeleteGWSClusterRequest) { + request = &DeleteGWSClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteGWSCluster", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteGWSClusterResponse creates a response to parse from DeleteGWSCluster response +func CreateDeleteGWSClusterResponse() (response *DeleteGWSClusterResponse) { + response = &DeleteGWSClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_gws_instance.go b/services/ehpc/delete_gws_instance.go new file mode 100644 index 0000000000..e5a3e202ef --- /dev/null +++ b/services/ehpc/delete_gws_instance.go @@ -0,0 +1,99 @@ +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" +) + +// DeleteGWSInstance invokes the ehpc.DeleteGWSInstance API synchronously +func (client *Client) DeleteGWSInstance(request *DeleteGWSInstanceRequest) (response *DeleteGWSInstanceResponse, err error) { + response = CreateDeleteGWSInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGWSInstanceWithChan invokes the ehpc.DeleteGWSInstance API asynchronously +func (client *Client) DeleteGWSInstanceWithChan(request *DeleteGWSInstanceRequest) (<-chan *DeleteGWSInstanceResponse, <-chan error) { + responseChan := make(chan *DeleteGWSInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGWSInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGWSInstanceWithCallback invokes the ehpc.DeleteGWSInstance API asynchronously +func (client *Client) DeleteGWSInstanceWithCallback(request *DeleteGWSInstanceRequest, callback func(response *DeleteGWSInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGWSInstanceResponse + var err error + defer close(result) + response, err = client.DeleteGWSInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGWSInstanceRequest is the request struct for api DeleteGWSInstance +type DeleteGWSInstanceRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DeleteGWSInstanceResponse is the response struct for api DeleteGWSInstance +type DeleteGWSInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteGWSInstanceRequest creates a request to invoke DeleteGWSInstance API +func CreateDeleteGWSInstanceRequest() (request *DeleteGWSInstanceRequest) { + request = &DeleteGWSInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteGWSInstance", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteGWSInstanceResponse creates a response to parse from DeleteGWSInstance response +func CreateDeleteGWSInstanceResponse() (response *DeleteGWSInstanceResponse) { + response = &DeleteGWSInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_image.go b/services/ehpc/delete_image.go new file mode 100644 index 0000000000..232f8b35de --- /dev/null +++ b/services/ehpc/delete_image.go @@ -0,0 +1,102 @@ +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" +) + +// DeleteImage invokes the ehpc.DeleteImage API synchronously +func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error) { + response = CreateDeleteImageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteImageWithChan invokes the ehpc.DeleteImage API asynchronously +func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error) { + responseChan := make(chan *DeleteImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteImageWithCallback invokes the ehpc.DeleteImage API asynchronously +func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, callback func(response *DeleteImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteImageResponse + var err error + defer close(result) + response, err = client.DeleteImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteImageRequest is the request struct for api DeleteImage +type DeleteImageRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Repository string `position:"Query" name:"Repository"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// DeleteImageResponse is the response struct for api DeleteImage +type DeleteImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteImageRequest creates a request to invoke DeleteImage API +func CreateDeleteImageRequest() (request *DeleteImageRequest) { + request = &DeleteImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteImage", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteImageResponse creates a response to parse from DeleteImage response +func CreateDeleteImageResponse() (response *DeleteImageResponse) { + response = &DeleteImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_job_templates.go b/services/ehpc/delete_job_templates.go index 9ec5b2207e..d51ef50ccc 100644 --- a/services/ehpc/delete_job_templates.go +++ b/services/ehpc/delete_job_templates.go @@ -85,7 +85,7 @@ func CreateDeleteJobTemplatesRequest() (request *DeleteJobTemplatesRequest) { request = &DeleteJobTemplatesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DeleteJobTemplates", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteJobTemplates", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/delete_jobs.go b/services/ehpc/delete_jobs.go index 06b6f2b857..436dc1b0ba 100644 --- a/services/ehpc/delete_jobs.go +++ b/services/ehpc/delete_jobs.go @@ -86,7 +86,7 @@ func CreateDeleteJobsRequest() (request *DeleteJobsRequest) { request = &DeleteJobsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DeleteJobs", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteJobs", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/delete_local_image.go b/services/ehpc/delete_local_image.go new file mode 100644 index 0000000000..b32f1fdbfe --- /dev/null +++ b/services/ehpc/delete_local_image.go @@ -0,0 +1,101 @@ +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" +) + +// DeleteLocalImage invokes the ehpc.DeleteLocalImage API synchronously +func (client *Client) DeleteLocalImage(request *DeleteLocalImageRequest) (response *DeleteLocalImageResponse, err error) { + response = CreateDeleteLocalImageResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLocalImageWithChan invokes the ehpc.DeleteLocalImage API asynchronously +func (client *Client) DeleteLocalImageWithChan(request *DeleteLocalImageRequest) (<-chan *DeleteLocalImageResponse, <-chan error) { + responseChan := make(chan *DeleteLocalImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLocalImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLocalImageWithCallback invokes the ehpc.DeleteLocalImage API asynchronously +func (client *Client) DeleteLocalImageWithCallback(request *DeleteLocalImageRequest, callback func(response *DeleteLocalImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLocalImageResponse + var err error + defer close(result) + response, err = client.DeleteLocalImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLocalImageRequest is the request struct for api DeleteLocalImage +type DeleteLocalImageRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageName string `position:"Query" name:"ImageName"` +} + +// DeleteLocalImageResponse is the response struct for api DeleteLocalImage +type DeleteLocalImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLocalImageRequest creates a request to invoke DeleteLocalImage API +func CreateDeleteLocalImageRequest() (request *DeleteLocalImageRequest) { + request = &DeleteLocalImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteLocalImage", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteLocalImageResponse creates a response to parse from DeleteLocalImage response +func CreateDeleteLocalImageResponse() (response *DeleteLocalImageResponse) { + response = &DeleteLocalImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_nodes.go b/services/ehpc/delete_nodes.go index bd976a5bd6..33beb64a20 100644 --- a/services/ehpc/delete_nodes.go +++ b/services/ehpc/delete_nodes.go @@ -73,6 +73,7 @@ type DeleteNodesRequest struct { *requests.RpcRequest Instance *[]DeleteNodesInstance `position:"Query" name:"Instance" type:"Repeated"` ClusterId string `position:"Query" name:"ClusterId"` + Sync requests.Boolean `position:"Query" name:"Sync"` ReleaseInstance requests.Boolean `position:"Query" name:"ReleaseInstance"` } @@ -84,6 +85,7 @@ type DeleteNodesInstance struct { // DeleteNodesResponse is the response struct for api DeleteNodes type DeleteNodesResponse struct { *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` RequestId string `json:"RequestId" xml:"RequestId"` } @@ -92,7 +94,7 @@ func CreateDeleteNodesRequest() (request *DeleteNodesRequest) { request = &DeleteNodesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DeleteNodes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteNodes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/delete_queue.go b/services/ehpc/delete_queue.go new file mode 100644 index 0000000000..5d59148e9b --- /dev/null +++ b/services/ehpc/delete_queue.go @@ -0,0 +1,100 @@ +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" +) + +// DeleteQueue invokes the ehpc.DeleteQueue API synchronously +func (client *Client) DeleteQueue(request *DeleteQueueRequest) (response *DeleteQueueResponse, err error) { + response = CreateDeleteQueueResponse() + err = client.DoAction(request, response) + return +} + +// DeleteQueueWithChan invokes the ehpc.DeleteQueue API asynchronously +func (client *Client) DeleteQueueWithChan(request *DeleteQueueRequest) (<-chan *DeleteQueueResponse, <-chan error) { + responseChan := make(chan *DeleteQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteQueueWithCallback invokes the ehpc.DeleteQueue API asynchronously +func (client *Client) DeleteQueueWithCallback(request *DeleteQueueRequest, callback func(response *DeleteQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteQueueResponse + var err error + defer close(result) + response, err = client.DeleteQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteQueueRequest is the request struct for api DeleteQueue +type DeleteQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteQueueResponse is the response struct for api DeleteQueue +type DeleteQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteQueueRequest creates a request to invoke DeleteQueue API +func CreateDeleteQueueRequest() (request *DeleteQueueRequest) { + request = &DeleteQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteQueue", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteQueueResponse creates a response to parse from DeleteQueue response +func CreateDeleteQueueResponse() (response *DeleteQueueResponse) { + response = &DeleteQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_security_group.go b/services/ehpc/delete_security_group.go new file mode 100644 index 0000000000..d6707eed46 --- /dev/null +++ b/services/ehpc/delete_security_group.go @@ -0,0 +1,100 @@ +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" +) + +// DeleteSecurityGroup invokes the ehpc.DeleteSecurityGroup API synchronously +func (client *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) (response *DeleteSecurityGroupResponse, err error) { + response = CreateDeleteSecurityGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSecurityGroupWithChan invokes the ehpc.DeleteSecurityGroup API asynchronously +func (client *Client) DeleteSecurityGroupWithChan(request *DeleteSecurityGroupRequest) (<-chan *DeleteSecurityGroupResponse, <-chan error) { + responseChan := make(chan *DeleteSecurityGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSecurityGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSecurityGroupWithCallback invokes the ehpc.DeleteSecurityGroup API asynchronously +func (client *Client) DeleteSecurityGroupWithCallback(request *DeleteSecurityGroupRequest, callback func(response *DeleteSecurityGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSecurityGroupResponse + var err error + defer close(result) + response, err = client.DeleteSecurityGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSecurityGroupRequest is the request struct for api DeleteSecurityGroup +type DeleteSecurityGroupRequest struct { + *requests.RpcRequest + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DeleteSecurityGroupResponse is the response struct for api DeleteSecurityGroup +type DeleteSecurityGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteSecurityGroupRequest creates a request to invoke DeleteSecurityGroup API +func CreateDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { + request = &DeleteSecurityGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteSecurityGroup", "", "") + request.Method = requests.GET + return +} + +// CreateDeleteSecurityGroupResponse creates a response to parse from DeleteSecurityGroup response +func CreateDeleteSecurityGroupResponse() (response *DeleteSecurityGroupResponse) { + response = &DeleteSecurityGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/delete_users.go b/services/ehpc/delete_users.go index 3df427936a..1aff0fe203 100644 --- a/services/ehpc/delete_users.go +++ b/services/ehpc/delete_users.go @@ -91,7 +91,7 @@ func CreateDeleteUsersRequest() (request *DeleteUsersRequest) { request = &DeleteUsersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DeleteUsers", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DeleteUsers", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/describe_auto_scale_config.go b/services/ehpc/describe_auto_scale_config.go new file mode 100644 index 0000000000..3b7b51d889 --- /dev/null +++ b/services/ehpc/describe_auto_scale_config.go @@ -0,0 +1,114 @@ +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" +) + +// DescribeAutoScaleConfig invokes the ehpc.DescribeAutoScaleConfig API synchronously +func (client *Client) DescribeAutoScaleConfig(request *DescribeAutoScaleConfigRequest) (response *DescribeAutoScaleConfigResponse, err error) { + response = CreateDescribeAutoScaleConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAutoScaleConfigWithChan invokes the ehpc.DescribeAutoScaleConfig API asynchronously +func (client *Client) DescribeAutoScaleConfigWithChan(request *DescribeAutoScaleConfigRequest) (<-chan *DescribeAutoScaleConfigResponse, <-chan error) { + responseChan := make(chan *DescribeAutoScaleConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAutoScaleConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAutoScaleConfigWithCallback invokes the ehpc.DescribeAutoScaleConfig API asynchronously +func (client *Client) DescribeAutoScaleConfigWithCallback(request *DescribeAutoScaleConfigRequest, callback func(response *DescribeAutoScaleConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAutoScaleConfigResponse + var err error + defer close(result) + response, err = client.DescribeAutoScaleConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAutoScaleConfigRequest is the request struct for api DescribeAutoScaleConfig +type DescribeAutoScaleConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DescribeAutoScaleConfigResponse is the response struct for api DescribeAutoScaleConfig +type DescribeAutoScaleConfigResponse struct { + *responses.BaseResponse + MaxNodesInCluster int `json:"MaxNodesInCluster" xml:"MaxNodesInCluster"` + GrowTimeoutInMinutes int `json:"GrowTimeoutInMinutes" xml:"GrowTimeoutInMinutes"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + RequestId string `json:"RequestId" xml:"RequestId"` + EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` + ExcludeNodes string `json:"ExcludeNodes" xml:"ExcludeNodes"` + GrowIntervalInMinutes int `json:"GrowIntervalInMinutes" xml:"GrowIntervalInMinutes"` + ShrinkIntervalInMinutes int `json:"ShrinkIntervalInMinutes" xml:"ShrinkIntervalInMinutes"` + SpotPriceLimit string `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + ShrinkIdleTimes int `json:"ShrinkIdleTimes" xml:"ShrinkIdleTimes"` + ExtraNodesGrowRatio int `json:"ExtraNodesGrowRatio" xml:"ExtraNodesGrowRatio"` + GrowRatio int `json:"GrowRatio" xml:"GrowRatio"` + Uid string `json:"Uid" xml:"Uid"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} + +// CreateDescribeAutoScaleConfigRequest creates a request to invoke DescribeAutoScaleConfig API +func CreateDescribeAutoScaleConfigRequest() (request *DescribeAutoScaleConfigRequest) { + request = &DescribeAutoScaleConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeAutoScaleConfig", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeAutoScaleConfigResponse creates a response to parse from DescribeAutoScaleConfig response +func CreateDescribeAutoScaleConfigResponse() (response *DescribeAutoScaleConfigResponse) { + response = &DescribeAutoScaleConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_cluster.go b/services/ehpc/describe_cluster.go index 44b6a7eced..58cbe739c7 100644 --- a/services/ehpc/describe_cluster.go +++ b/services/ehpc/describe_cluster.go @@ -86,7 +86,7 @@ func CreateDescribeClusterRequest() (request *DescribeClusterRequest) { request = &DescribeClusterRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "DescribeCluster", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeCluster", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/describe_container_app.go b/services/ehpc/describe_container_app.go new file mode 100644 index 0000000000..8bd2571438 --- /dev/null +++ b/services/ehpc/describe_container_app.go @@ -0,0 +1,100 @@ +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" +) + +// DescribeContainerApp invokes the ehpc.DescribeContainerApp API synchronously +func (client *Client) DescribeContainerApp(request *DescribeContainerAppRequest) (response *DescribeContainerAppResponse, err error) { + response = CreateDescribeContainerAppResponse() + err = client.DoAction(request, response) + return +} + +// DescribeContainerAppWithChan invokes the ehpc.DescribeContainerApp API asynchronously +func (client *Client) DescribeContainerAppWithChan(request *DescribeContainerAppRequest) (<-chan *DescribeContainerAppResponse, <-chan error) { + responseChan := make(chan *DescribeContainerAppResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeContainerApp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeContainerAppWithCallback invokes the ehpc.DescribeContainerApp API asynchronously +func (client *Client) DescribeContainerAppWithCallback(request *DescribeContainerAppRequest, callback func(response *DescribeContainerAppResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeContainerAppResponse + var err error + defer close(result) + response, err = client.DescribeContainerApp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeContainerAppRequest is the request struct for api DescribeContainerApp +type DescribeContainerAppRequest struct { + *requests.RpcRequest + ContainerId string `position:"Query" name:"ContainerId"` +} + +// DescribeContainerAppResponse is the response struct for api DescribeContainerApp +type DescribeContainerAppResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ContainerAppInfo ContainerAppInfo `json:"ContainerAppInfo" xml:"ContainerAppInfo"` +} + +// CreateDescribeContainerAppRequest creates a request to invoke DescribeContainerApp API +func CreateDescribeContainerAppRequest() (request *DescribeContainerAppRequest) { + request = &DescribeContainerAppRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeContainerApp", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeContainerAppResponse creates a response to parse from DescribeContainerApp response +func CreateDescribeContainerAppResponse() (response *DescribeContainerAppResponse) { + response = &DescribeContainerAppResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_estack_image.go b/services/ehpc/describe_estack_image.go new file mode 100644 index 0000000000..ad6eae567c --- /dev/null +++ b/services/ehpc/describe_estack_image.go @@ -0,0 +1,104 @@ +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" +) + +// DescribeEstackImage invokes the ehpc.DescribeEstackImage API synchronously +func (client *Client) DescribeEstackImage(request *DescribeEstackImageRequest) (response *DescribeEstackImageResponse, err error) { + response = CreateDescribeEstackImageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeEstackImageWithChan invokes the ehpc.DescribeEstackImage API asynchronously +func (client *Client) DescribeEstackImageWithChan(request *DescribeEstackImageRequest) (<-chan *DescribeEstackImageResponse, <-chan error) { + responseChan := make(chan *DescribeEstackImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeEstackImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeEstackImageWithCallback invokes the ehpc.DescribeEstackImage API asynchronously +func (client *Client) DescribeEstackImageWithCallback(request *DescribeEstackImageRequest, callback func(response *DescribeEstackImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeEstackImageResponse + var err error + defer close(result) + response, err = client.DescribeEstackImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeEstackImageRequest is the request struct for api DescribeEstackImage +type DescribeEstackImageRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeEstackImageResponse is the response struct for api DescribeEstackImage +type DescribeEstackImageResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + ImageList ImageList `json:"ImageList" xml:"ImageList"` +} + +// CreateDescribeEstackImageRequest creates a request to invoke DescribeEstackImage API +func CreateDescribeEstackImageRequest() (request *DescribeEstackImageRequest) { + request = &DescribeEstackImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeEstackImage", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeEstackImageResponse creates a response to parse from DescribeEstackImage response +func CreateDescribeEstackImageResponse() (response *DescribeEstackImageResponse) { + response = &DescribeEstackImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_gws_cluster_policy.go b/services/ehpc/describe_gws_cluster_policy.go new file mode 100644 index 0000000000..f6c3a88689 --- /dev/null +++ b/services/ehpc/describe_gws_cluster_policy.go @@ -0,0 +1,105 @@ +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 +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 +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 +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"` + AsyncMode requests.Boolean `position:"Query" name:"AsyncMode"` + TaskId string `position:"Query" name:"TaskId"` +} + +// DescribeGWSClusterPolicyResponse is the response struct for api DescribeGWSClusterPolicy +type DescribeGWSClusterPolicyResponse struct { + *responses.BaseResponse + Watermark string `json:"Watermark" xml:"Watermark"` + Clipboard string `json:"Clipboard" xml:"Clipboard"` + RequestId string `json:"RequestId" xml:"RequestId"` + UsbRedirect string `json:"UsbRedirect" xml:"UsbRedirect"` + 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", "", "") + request.Method = requests.POST + return +} + +// CreateDescribeGWSClusterPolicyResponse creates a response to parse from DescribeGWSClusterPolicy response +func CreateDescribeGWSClusterPolicyResponse() (response *DescribeGWSClusterPolicyResponse) { + response = &DescribeGWSClusterPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_gws_clusters.go b/services/ehpc/describe_gws_clusters.go new file mode 100644 index 0000000000..319cb43cc6 --- /dev/null +++ b/services/ehpc/describe_gws_clusters.go @@ -0,0 +1,106 @@ +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" +) + +// DescribeGWSClusters invokes the ehpc.DescribeGWSClusters API synchronously +func (client *Client) DescribeGWSClusters(request *DescribeGWSClustersRequest) (response *DescribeGWSClustersResponse, err error) { + response = CreateDescribeGWSClustersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGWSClustersWithChan invokes the ehpc.DescribeGWSClusters API asynchronously +func (client *Client) DescribeGWSClustersWithChan(request *DescribeGWSClustersRequest) (<-chan *DescribeGWSClustersResponse, <-chan error) { + responseChan := make(chan *DescribeGWSClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGWSClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGWSClustersWithCallback invokes the ehpc.DescribeGWSClusters API asynchronously +func (client *Client) DescribeGWSClustersWithCallback(request *DescribeGWSClustersRequest, callback func(response *DescribeGWSClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGWSClustersResponse + var err error + defer close(result) + response, err = client.DescribeGWSClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGWSClustersRequest is the request struct for api DescribeGWSClusters +type DescribeGWSClustersRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeGWSClustersResponse is the response struct for api DescribeGWSClusters +type DescribeGWSClustersResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + RequestId string `json:"RequestId" xml:"RequestId"` + CallerType string `json:"CallerType" xml:"CallerType"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Clusters ClustersInDescribeGWSClusters `json:"Clusters" xml:"Clusters"` +} + +// CreateDescribeGWSClustersRequest creates a request to invoke DescribeGWSClusters API +func CreateDescribeGWSClustersRequest() (request *DescribeGWSClustersRequest) { + request = &DescribeGWSClustersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeGWSClusters", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeGWSClustersResponse creates a response to parse from DescribeGWSClusters response +func CreateDescribeGWSClustersResponse() (response *DescribeGWSClustersResponse) { + response = &DescribeGWSClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_gws_images.go b/services/ehpc/describe_gws_images.go new file mode 100644 index 0000000000..ebaf80d67a --- /dev/null +++ b/services/ehpc/describe_gws_images.go @@ -0,0 +1,104 @@ +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" +) + +// DescribeGWSImages invokes the ehpc.DescribeGWSImages API synchronously +func (client *Client) DescribeGWSImages(request *DescribeGWSImagesRequest) (response *DescribeGWSImagesResponse, err error) { + response = CreateDescribeGWSImagesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGWSImagesWithChan invokes the ehpc.DescribeGWSImages API asynchronously +func (client *Client) DescribeGWSImagesWithChan(request *DescribeGWSImagesRequest) (<-chan *DescribeGWSImagesResponse, <-chan error) { + responseChan := make(chan *DescribeGWSImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGWSImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGWSImagesWithCallback invokes the ehpc.DescribeGWSImages API asynchronously +func (client *Client) DescribeGWSImagesWithCallback(request *DescribeGWSImagesRequest, callback func(response *DescribeGWSImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGWSImagesResponse + var err error + defer close(result) + response, err = client.DescribeGWSImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGWSImagesRequest is the request struct for api DescribeGWSImages +type DescribeGWSImagesRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// DescribeGWSImagesResponse is the response struct for api DescribeGWSImages +type DescribeGWSImagesResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Images ImagesInDescribeGWSImages `json:"Images" xml:"Images"` +} + +// CreateDescribeGWSImagesRequest creates a request to invoke DescribeGWSImages API +func CreateDescribeGWSImagesRequest() (request *DescribeGWSImagesRequest) { + request = &DescribeGWSImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeGWSImages", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeGWSImagesResponse creates a response to parse from DescribeGWSImages response +func CreateDescribeGWSImagesResponse() (response *DescribeGWSImagesResponse) { + response = &DescribeGWSImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_gws_instances.go b/services/ehpc/describe_gws_instances.go new file mode 100644 index 0000000000..345ce146ab --- /dev/null +++ b/services/ehpc/describe_gws_instances.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" +) + +// DescribeGWSInstances invokes the ehpc.DescribeGWSInstances API synchronously +func (client *Client) DescribeGWSInstances(request *DescribeGWSInstancesRequest) (response *DescribeGWSInstancesResponse, err error) { + response = CreateDescribeGWSInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeGWSInstancesWithChan invokes the ehpc.DescribeGWSInstances API asynchronously +func (client *Client) DescribeGWSInstancesWithChan(request *DescribeGWSInstancesRequest) (<-chan *DescribeGWSInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeGWSInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeGWSInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeGWSInstancesWithCallback invokes the ehpc.DescribeGWSInstances API asynchronously +func (client *Client) DescribeGWSInstancesWithCallback(request *DescribeGWSInstancesRequest, callback func(response *DescribeGWSInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeGWSInstancesResponse + var err error + defer close(result) + response, err = client.DescribeGWSInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeGWSInstancesRequest is the request struct for api DescribeGWSInstances +type DescribeGWSInstancesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceId string `position:"Query" name:"InstanceId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + UserUid requests.Integer `position:"Query" name:"UserUid"` + UserName string `position:"Query" name:"UserName"` +} + +// DescribeGWSInstancesResponse is the response struct for api DescribeGWSInstances +type DescribeGWSInstancesResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Instances Instances `json:"Instances" xml:"Instances"` +} + +// CreateDescribeGWSInstancesRequest creates a request to invoke DescribeGWSInstances API +func CreateDescribeGWSInstancesRequest() (request *DescribeGWSInstancesRequest) { + request = &DescribeGWSInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeGWSInstances", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeGWSInstancesResponse creates a response to parse from DescribeGWSInstances response +func CreateDescribeGWSInstancesResponse() (response *DescribeGWSInstancesResponse) { + response = &DescribeGWSInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_image.go b/services/ehpc/describe_image.go new file mode 100644 index 0000000000..8bb706abdf --- /dev/null +++ b/services/ehpc/describe_image.go @@ -0,0 +1,103 @@ +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" +) + +// DescribeImage invokes the ehpc.DescribeImage API synchronously +func (client *Client) DescribeImage(request *DescribeImageRequest) (response *DescribeImageResponse, err error) { + response = CreateDescribeImageResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageWithChan invokes the ehpc.DescribeImage API asynchronously +func (client *Client) DescribeImageWithChan(request *DescribeImageRequest) (<-chan *DescribeImageResponse, <-chan error) { + responseChan := make(chan *DescribeImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageWithCallback invokes the ehpc.DescribeImage API asynchronously +func (client *Client) DescribeImageWithCallback(request *DescribeImageRequest, callback func(response *DescribeImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageResponse + var err error + defer close(result) + response, err = client.DescribeImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageRequest is the request struct for api DescribeImage +type DescribeImageRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Repository string `position:"Query" name:"Repository"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// DescribeImageResponse is the response struct for api DescribeImage +type DescribeImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImageInfo ImageInfo `json:"ImageInfo" xml:"ImageInfo"` +} + +// CreateDescribeImageRequest creates a request to invoke DescribeImage API +func CreateDescribeImageRequest() (request *DescribeImageRequest) { + request = &DescribeImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeImage", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeImageResponse creates a response to parse from DescribeImage response +func CreateDescribeImageResponse() (response *DescribeImageResponse) { + response = &DescribeImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_image_gateway_config.go b/services/ehpc/describe_image_gateway_config.go new file mode 100644 index 0000000000..b781352c24 --- /dev/null +++ b/services/ehpc/describe_image_gateway_config.go @@ -0,0 +1,100 @@ +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" +) + +// DescribeImageGatewayConfig invokes the ehpc.DescribeImageGatewayConfig API synchronously +func (client *Client) DescribeImageGatewayConfig(request *DescribeImageGatewayConfigRequest) (response *DescribeImageGatewayConfigResponse, err error) { + response = CreateDescribeImageGatewayConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageGatewayConfigWithChan invokes the ehpc.DescribeImageGatewayConfig API asynchronously +func (client *Client) DescribeImageGatewayConfigWithChan(request *DescribeImageGatewayConfigRequest) (<-chan *DescribeImageGatewayConfigResponse, <-chan error) { + responseChan := make(chan *DescribeImageGatewayConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImageGatewayConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageGatewayConfigWithCallback invokes the ehpc.DescribeImageGatewayConfig API asynchronously +func (client *Client) DescribeImageGatewayConfigWithCallback(request *DescribeImageGatewayConfigRequest, callback func(response *DescribeImageGatewayConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageGatewayConfigResponse + var err error + defer close(result) + response, err = client.DescribeImageGatewayConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageGatewayConfigRequest is the request struct for api DescribeImageGatewayConfig +type DescribeImageGatewayConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// DescribeImageGatewayConfigResponse is the response struct for api DescribeImageGatewayConfig +type DescribeImageGatewayConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Imagegw Imagegw `json:"Imagegw" xml:"Imagegw"` +} + +// CreateDescribeImageGatewayConfigRequest creates a request to invoke DescribeImageGatewayConfig API +func CreateDescribeImageGatewayConfigRequest() (request *DescribeImageGatewayConfigRequest) { + request = &DescribeImageGatewayConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeImageGatewayConfig", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeImageGatewayConfigResponse creates a response to parse from DescribeImageGatewayConfig response +func CreateDescribeImageGatewayConfigResponse() (response *DescribeImageGatewayConfigResponse) { + response = &DescribeImageGatewayConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_image_price.go b/services/ehpc/describe_image_price.go new file mode 100644 index 0000000000..f5c7026c27 --- /dev/null +++ b/services/ehpc/describe_image_price.go @@ -0,0 +1,109 @@ +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" +) + +// DescribeImagePrice invokes the ehpc.DescribeImagePrice API synchronously +func (client *Client) DescribeImagePrice(request *DescribeImagePriceRequest) (response *DescribeImagePriceResponse, err error) { + response = CreateDescribeImagePriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImagePriceWithChan invokes the ehpc.DescribeImagePrice API asynchronously +func (client *Client) DescribeImagePriceWithChan(request *DescribeImagePriceRequest) (<-chan *DescribeImagePriceResponse, <-chan error) { + responseChan := make(chan *DescribeImagePriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImagePrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImagePriceWithCallback invokes the ehpc.DescribeImagePrice API asynchronously +func (client *Client) DescribeImagePriceWithCallback(request *DescribeImagePriceRequest, callback func(response *DescribeImagePriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImagePriceResponse + var err error + defer close(result) + response, err = client.DescribeImagePrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImagePriceRequest is the request struct for api DescribeImagePrice +type DescribeImagePriceRequest struct { + *requests.RpcRequest + Period requests.Integer `position:"Query" name:"Period"` + Amount requests.Integer `position:"Query" name:"Amount"` + ImageId string `position:"Query" name:"ImageId"` + SkuCode string `position:"Query" name:"SkuCode"` + PriceUnit string `position:"Query" name:"PriceUnit"` + OrderType string `position:"Query" name:"OrderType"` +} + +// DescribeImagePriceResponse is the response struct for api DescribeImagePrice +type DescribeImagePriceResponse struct { + *responses.BaseResponse + Amount int `json:"Amount" xml:"Amount"` + RequestId string `json:"RequestId" xml:"RequestId"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + ImageId string `json:"ImageId" xml:"ImageId"` +} + +// CreateDescribeImagePriceRequest creates a request to invoke DescribeImagePrice API +func CreateDescribeImagePriceRequest() (request *DescribeImagePriceRequest) { + request = &DescribeImagePriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeImagePrice", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeImagePriceResponse creates a response to parse from DescribeImagePrice response +func CreateDescribeImagePriceResponse() (response *DescribeImagePriceResponse) { + response = &DescribeImagePriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_job.go b/services/ehpc/describe_job.go new file mode 100644 index 0000000000..b804f26383 --- /dev/null +++ b/services/ehpc/describe_job.go @@ -0,0 +1,101 @@ +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" +) + +// DescribeJob invokes the ehpc.DescribeJob API synchronously +func (client *Client) DescribeJob(request *DescribeJobRequest) (response *DescribeJobResponse, err error) { + response = CreateDescribeJobResponse() + err = client.DoAction(request, response) + return +} + +// DescribeJobWithChan invokes the ehpc.DescribeJob API asynchronously +func (client *Client) DescribeJobWithChan(request *DescribeJobRequest) (<-chan *DescribeJobResponse, <-chan error) { + responseChan := make(chan *DescribeJobResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeJob(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeJobWithCallback invokes the ehpc.DescribeJob API asynchronously +func (client *Client) DescribeJobWithCallback(request *DescribeJobRequest, callback func(response *DescribeJobResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeJobResponse + var err error + defer close(result) + response, err = client.DescribeJob(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeJobRequest is the request struct for api DescribeJob +type DescribeJobRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + JobId string `position:"Query" name:"JobId"` +} + +// DescribeJobResponse is the response struct for api DescribeJob +type DescribeJobResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Message Message `json:"Message" xml:"Message"` +} + +// CreateDescribeJobRequest creates a request to invoke DescribeJob API +func CreateDescribeJobRequest() (request *DescribeJobRequest) { + request = &DescribeJobRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeJob", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeJobResponse creates a response to parse from DescribeJob response +func CreateDescribeJobResponse() (response *DescribeJobResponse) { + response = &DescribeJobResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_nfs_client_status.go b/services/ehpc/describe_nfs_client_status.go new file mode 100644 index 0000000000..39fbb66577 --- /dev/null +++ b/services/ehpc/describe_nfs_client_status.go @@ -0,0 +1,101 @@ +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" +) + +// DescribeNFSClientStatus invokes the ehpc.DescribeNFSClientStatus API synchronously +func (client *Client) DescribeNFSClientStatus(request *DescribeNFSClientStatusRequest) (response *DescribeNFSClientStatusResponse, err error) { + response = CreateDescribeNFSClientStatusResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNFSClientStatusWithChan invokes the ehpc.DescribeNFSClientStatus API asynchronously +func (client *Client) DescribeNFSClientStatusWithChan(request *DescribeNFSClientStatusRequest) (<-chan *DescribeNFSClientStatusResponse, <-chan error) { + responseChan := make(chan *DescribeNFSClientStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNFSClientStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNFSClientStatusWithCallback invokes the ehpc.DescribeNFSClientStatus API asynchronously +func (client *Client) DescribeNFSClientStatusWithCallback(request *DescribeNFSClientStatusRequest, callback func(response *DescribeNFSClientStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNFSClientStatusResponse + var err error + defer close(result) + response, err = client.DescribeNFSClientStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNFSClientStatusRequest is the request struct for api DescribeNFSClientStatus +type DescribeNFSClientStatusRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeNFSClientStatusResponse is the response struct for api DescribeNFSClientStatus +type DescribeNFSClientStatusResponse struct { + *responses.BaseResponse + Status string `json:"Status" xml:"Status"` + RequestId string `json:"RequestId" xml:"RequestId"` + Result Result `json:"Result" xml:"Result"` +} + +// CreateDescribeNFSClientStatusRequest creates a request to invoke DescribeNFSClientStatus API +func CreateDescribeNFSClientStatusRequest() (request *DescribeNFSClientStatusRequest) { + request = &DescribeNFSClientStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribeNFSClientStatus", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeNFSClientStatusResponse creates a response to parse from DescribeNFSClientStatus response +func CreateDescribeNFSClientStatusResponse() (response *DescribeNFSClientStatusResponse) { + response = &DescribeNFSClientStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/describe_price.go b/services/ehpc/describe_price.go new file mode 100644 index 0000000000..035f14a977 --- /dev/null +++ b/services/ehpc/describe_price.go @@ -0,0 +1,128 @@ +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" +) + +// DescribePrice invokes the ehpc.DescribePrice API synchronously +func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) { + response = CreateDescribePriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribePriceWithChan invokes the ehpc.DescribePrice API asynchronously +func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) { + responseChan := make(chan *DescribePriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePriceWithCallback invokes the ehpc.DescribePrice API asynchronously +func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePriceResponse + var err error + defer close(result) + response, err = client.DescribePrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePriceRequest is the request struct for api DescribePrice +type DescribePriceRequest struct { + *requests.RpcRequest + Commodities *[]DescribePriceCommodities `position:"Query" name:"Commodities" type:"Repeated"` + PriceUnit string `position:"Query" name:"PriceUnit"` + ChargeType string `position:"Query" name:"ChargeType"` + OrderType string `position:"Query" name:"OrderType"` +} + +// DescribePriceCommodities is a repeated param struct in DescribePriceRequest +type DescribePriceCommodities struct { + Amount string `name:"Amount"` + Period string `name:"Period"` + NodeType string `name:"NodeType"` + DataDisks *[]DescribePriceCommoditiesDataDisks `name:"DataDisks" type:"Repeated"` + SystemDiskCategory string `name:"SystemDiskCategory"` + InternetChargeType string `name:"InternetChargeType"` + SystemDiskPerformanceLevel string `name:"SystemDiskPerformanceLevel"` + SystemDiskSize string `name:"SystemDiskSize"` + InternetMaxBandWidthOut string `name:"InternetMaxBandWidthOut"` + InstanceType string `name:"InstanceType"` + NetworkType string `name:"NetworkType"` +} + +// DescribePriceCommoditiesDataDisks is a repeated param struct in DescribePriceRequest +type DescribePriceCommoditiesDataDisks struct { + Size string `name:"size"` + Encrypted string `name:"encrypted"` + PerformanceLevel string `name:"performanceLevel"` + Category string `name:"category"` + DeleteWithInstance string `name:"deleteWithInstance"` +} + +// DescribePriceResponse is the response struct for api DescribePrice +type DescribePriceResponse struct { + *responses.BaseResponse + TotalTradePrice float64 `json:"TotalTradePrice" xml:"TotalTradePrice"` + RequestId string `json:"RequestId" xml:"RequestId"` + Prices Prices `json:"Prices" xml:"Prices"` +} + +// CreateDescribePriceRequest creates a request to invoke DescribePrice API +func CreateDescribePriceRequest() (request *DescribePriceRequest) { + request = &DescribePriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "DescribePrice", "", "") + request.Method = requests.GET + return +} + +// CreateDescribePriceResponse creates a response to parse from DescribePrice response +func CreateDescribePriceResponse() (response *DescribePriceResponse) { + response = &DescribePriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/edit_job_template.go b/services/ehpc/edit_job_template.go index 518bf2e868..f565f22c6f 100644 --- a/services/ehpc/edit_job_template.go +++ b/services/ehpc/edit_job_template.go @@ -72,16 +72,26 @@ func (client *Client) EditJobTemplateWithCallback(request *EditJobTemplateReques type EditJobTemplateRequest struct { *requests.RpcRequest StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` + ClockTime string `position:"Query" name:"ClockTime"` CommandLine string `position:"Query" name:"CommandLine"` ArrayRequest string `position:"Query" name:"ArrayRequest"` + UnzipCmd string `position:"Query" name:"UnzipCmd"` PackagePath string `position:"Query" name:"PackagePath"` + Mem string `position:"Query" name:"Mem"` StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` Variables string `position:"Query" name:"Variables"` RunasUser string `position:"Query" name:"RunasUser"` ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + Thread requests.Integer `position:"Query" name:"Thread"` TemplateId string `position:"Query" name:"TemplateId"` Priority requests.Integer `position:"Query" name:"Priority"` + Gpu requests.Integer `position:"Query" name:"Gpu"` + WithUnzipCmd requests.Boolean `position:"Query" name:"WithUnzipCmd"` + Node requests.Integer `position:"Query" name:"Node"` + Task requests.Integer `position:"Query" name:"Task"` + InputFileUrl string `position:"Query" name:"InputFileUrl"` Name string `position:"Query" name:"Name"` + Queue string `position:"Query" name:"Queue"` } // EditJobTemplateResponse is the response struct for api EditJobTemplate @@ -96,7 +106,7 @@ func CreateEditJobTemplateRequest() (request *EditJobTemplateRequest) { request = &EditJobTemplateRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "EditJobTemplate", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "EditJobTemplate", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/get_accounting_report.go b/services/ehpc/get_accounting_report.go new file mode 100644 index 0000000000..9cb94011b0 --- /dev/null +++ b/services/ehpc/get_accounting_report.go @@ -0,0 +1,113 @@ +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" +) + +// GetAccountingReport invokes the ehpc.GetAccountingReport API synchronously +func (client *Client) GetAccountingReport(request *GetAccountingReportRequest) (response *GetAccountingReportResponse, err error) { + response = CreateGetAccountingReportResponse() + err = client.DoAction(request, response) + return +} + +// GetAccountingReportWithChan invokes the ehpc.GetAccountingReport API asynchronously +func (client *Client) GetAccountingReportWithChan(request *GetAccountingReportRequest) (<-chan *GetAccountingReportResponse, <-chan error) { + responseChan := make(chan *GetAccountingReportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAccountingReport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAccountingReportWithCallback invokes the ehpc.GetAccountingReport API asynchronously +func (client *Client) GetAccountingReportWithCallback(request *GetAccountingReportRequest, callback func(response *GetAccountingReportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAccountingReportResponse + var err error + defer close(result) + response, err = client.GetAccountingReport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAccountingReportRequest is the request struct for api GetAccountingReport +type GetAccountingReportRequest struct { + *requests.RpcRequest + 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 + TotalCoreTime int `json:"TotalCoreTime" xml:"TotalCoreTime"` + Metrics string `json:"Metrics" xml:"Metrics"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetAccountingReportRequest creates a request to invoke GetAccountingReport API +func CreateGetAccountingReportRequest() (request *GetAccountingReportRequest) { + request = &GetAccountingReportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetAccountingReport", "", "") + request.Method = requests.GET + return +} + +// CreateGetAccountingReportResponse creates a response to parse from GetAccountingReport response +func CreateGetAccountingReportResponse() (response *GetAccountingReportResponse) { + response = &GetAccountingReportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_auto_scale_config.go b/services/ehpc/get_auto_scale_config.go index c1de1f68aa..2623ae7c6a 100644 --- a/services/ehpc/get_auto_scale_config.go +++ b/services/ehpc/get_auto_scale_config.go @@ -77,20 +77,24 @@ type GetAutoScaleConfigRequest struct { // GetAutoScaleConfigResponse is the response struct for api GetAutoScaleConfig type GetAutoScaleConfigResponse struct { *responses.BaseResponse - MaxNodesInCluster int `json:"MaxNodesInCluster" xml:"MaxNodesInCluster"` - GrowTimeoutInMinutes int `json:"GrowTimeoutInMinutes" xml:"GrowTimeoutInMinutes"` - RequestId string `json:"RequestId" xml:"RequestId"` - EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` - ClusterType string `json:"ClusterType" xml:"ClusterType"` - EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` - ExcludeNodes string `json:"ExcludeNodes" xml:"ExcludeNodes"` - GrowIntervalInMinutes int `json:"GrowIntervalInMinutes" xml:"GrowIntervalInMinutes"` - ShrinkIntervalInMinutes int `json:"ShrinkIntervalInMinutes" xml:"ShrinkIntervalInMinutes"` - ShrinkIdleTimes int `json:"ShrinkIdleTimes" xml:"ShrinkIdleTimes"` - ExtraNodesGrowRatio int `json:"ExtraNodesGrowRatio" xml:"ExtraNodesGrowRatio"` - GrowRatio int `json:"GrowRatio" xml:"GrowRatio"` - Uid string `json:"Uid" xml:"Uid"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` + MaxNodesInCluster int `json:"MaxNodesInCluster" xml:"MaxNodesInCluster"` + GrowTimeoutInMinutes int `json:"GrowTimeoutInMinutes" xml:"GrowTimeoutInMinutes"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` + RequestId string `json:"RequestId" xml:"RequestId"` + EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + ExcludeNodes string `json:"ExcludeNodes" xml:"ExcludeNodes"` + ShrinkIntervalInMinutes int `json:"ShrinkIntervalInMinutes" xml:"ShrinkIntervalInMinutes"` + GrowIntervalInMinutes int `json:"GrowIntervalInMinutes" xml:"GrowIntervalInMinutes"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + ExtraNodesGrowRatio int `json:"ExtraNodesGrowRatio" xml:"ExtraNodesGrowRatio"` + ShrinkIdleTimes int `json:"ShrinkIdleTimes" xml:"ShrinkIdleTimes"` + ImageId string `json:"ImageId" xml:"ImageId"` + GrowRatio int `json:"GrowRatio" xml:"GrowRatio"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + Uid string `json:"Uid" xml:"Uid"` + Queues QueuesInGetAutoScaleConfig `json:"Queues" xml:"Queues"` } // CreateGetAutoScaleConfigRequest creates a request to invoke GetAutoScaleConfig API @@ -98,7 +102,7 @@ func CreateGetAutoScaleConfigRequest() (request *GetAutoScaleConfigRequest) { request = &GetAutoScaleConfigRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "GetAutoScaleConfig", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "GetAutoScaleConfig", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/get_cloud_metric_logs.go b/services/ehpc/get_cloud_metric_logs.go new file mode 100644 index 0000000000..b4389b74a4 --- /dev/null +++ b/services/ehpc/get_cloud_metric_logs.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" +) + +// GetCloudMetricLogs invokes the ehpc.GetCloudMetricLogs API synchronously +func (client *Client) GetCloudMetricLogs(request *GetCloudMetricLogsRequest) (response *GetCloudMetricLogsResponse, err error) { + response = CreateGetCloudMetricLogsResponse() + err = client.DoAction(request, response) + return +} + +// GetCloudMetricLogsWithChan invokes the ehpc.GetCloudMetricLogs API asynchronously +func (client *Client) GetCloudMetricLogsWithChan(request *GetCloudMetricLogsRequest) (<-chan *GetCloudMetricLogsResponse, <-chan error) { + responseChan := make(chan *GetCloudMetricLogsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetCloudMetricLogs(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetCloudMetricLogsWithCallback invokes the ehpc.GetCloudMetricLogs API asynchronously +func (client *Client) GetCloudMetricLogsWithCallback(request *GetCloudMetricLogsRequest, callback func(response *GetCloudMetricLogsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetCloudMetricLogsResponse + var err error + defer close(result) + response, err = client.GetCloudMetricLogs(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetCloudMetricLogsRequest is the request struct for api GetCloudMetricLogs +type GetCloudMetricLogsRequest struct { + *requests.RpcRequest + MetricScope string `position:"Query" name:"MetricScope"` + ClusterId string `position:"Query" name:"ClusterId"` + AggregationInterval requests.Integer `position:"Query" name:"AggregationInterval"` + Reverse requests.Boolean `position:"Query" name:"Reverse"` + AggregationType string `position:"Query" name:"AggregationType"` + Filter string `position:"Query" name:"Filter"` + MetricCategories string `position:"Query" name:"MetricCategories"` + From requests.Integer `position:"Query" name:"From"` + To requests.Integer `position:"Query" name:"To"` +} + +// GetCloudMetricLogsResponse is the response struct for api GetCloudMetricLogs +type GetCloudMetricLogsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MetricLogs MetricLogs `json:"MetricLogs" xml:"MetricLogs"` +} + +// CreateGetCloudMetricLogsRequest creates a request to invoke GetCloudMetricLogs API +func CreateGetCloudMetricLogsRequest() (request *GetCloudMetricLogsRequest) { + request = &GetCloudMetricLogsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetCloudMetricLogs", "", "") + request.Method = requests.GET + return +} + +// CreateGetCloudMetricLogsResponse creates a response to parse from GetCloudMetricLogs response +func CreateGetCloudMetricLogsResponse() (response *GetCloudMetricLogsResponse) { + response = &GetCloudMetricLogsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_cloud_metric_profiling.go b/services/ehpc/get_cloud_metric_profiling.go new file mode 100644 index 0000000000..ac3e7af7bf --- /dev/null +++ b/services/ehpc/get_cloud_metric_profiling.go @@ -0,0 +1,101 @@ +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" +) + +// GetCloudMetricProfiling invokes the ehpc.GetCloudMetricProfiling API synchronously +func (client *Client) GetCloudMetricProfiling(request *GetCloudMetricProfilingRequest) (response *GetCloudMetricProfilingResponse, err error) { + response = CreateGetCloudMetricProfilingResponse() + err = client.DoAction(request, response) + return +} + +// GetCloudMetricProfilingWithChan invokes the ehpc.GetCloudMetricProfiling API asynchronously +func (client *Client) GetCloudMetricProfilingWithChan(request *GetCloudMetricProfilingRequest) (<-chan *GetCloudMetricProfilingResponse, <-chan error) { + responseChan := make(chan *GetCloudMetricProfilingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetCloudMetricProfiling(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetCloudMetricProfilingWithCallback invokes the ehpc.GetCloudMetricProfiling API asynchronously +func (client *Client) GetCloudMetricProfilingWithCallback(request *GetCloudMetricProfilingRequest, callback func(response *GetCloudMetricProfilingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetCloudMetricProfilingResponse + var err error + defer close(result) + response, err = client.GetCloudMetricProfiling(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetCloudMetricProfilingRequest is the request struct for api GetCloudMetricProfiling +type GetCloudMetricProfilingRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + ProfilingId string `position:"Query" name:"ProfilingId"` +} + +// GetCloudMetricProfilingResponse is the response struct for api GetCloudMetricProfiling +type GetCloudMetricProfilingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SvgUrls SvgUrls `json:"SvgUrls" xml:"SvgUrls"` +} + +// CreateGetCloudMetricProfilingRequest creates a request to invoke GetCloudMetricProfiling API +func CreateGetCloudMetricProfilingRequest() (request *GetCloudMetricProfilingRequest) { + request = &GetCloudMetricProfilingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetCloudMetricProfiling", "", "") + request.Method = requests.GET + return +} + +// CreateGetCloudMetricProfilingResponse creates a response to parse from GetCloudMetricProfiling response +func CreateGetCloudMetricProfilingResponse() (response *GetCloudMetricProfilingResponse) { + response = &GetCloudMetricProfilingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_cluster_volumes.go b/services/ehpc/get_cluster_volumes.go new file mode 100644 index 0000000000..66925296b2 --- /dev/null +++ b/services/ehpc/get_cluster_volumes.go @@ -0,0 +1,101 @@ +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" +) + +// GetClusterVolumes invokes the ehpc.GetClusterVolumes API synchronously +func (client *Client) GetClusterVolumes(request *GetClusterVolumesRequest) (response *GetClusterVolumesResponse, err error) { + response = CreateGetClusterVolumesResponse() + err = client.DoAction(request, response) + return +} + +// GetClusterVolumesWithChan invokes the ehpc.GetClusterVolumes API asynchronously +func (client *Client) GetClusterVolumesWithChan(request *GetClusterVolumesRequest) (<-chan *GetClusterVolumesResponse, <-chan error) { + responseChan := make(chan *GetClusterVolumesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetClusterVolumes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetClusterVolumesWithCallback invokes the ehpc.GetClusterVolumes API asynchronously +func (client *Client) GetClusterVolumesWithCallback(request *GetClusterVolumesRequest, callback func(response *GetClusterVolumesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetClusterVolumesResponse + var err error + defer close(result) + response, err = client.GetClusterVolumes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetClusterVolumesRequest is the request struct for api GetClusterVolumes +type GetClusterVolumesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// GetClusterVolumesResponse is the response struct for api GetClusterVolumes +type GetClusterVolumesResponse struct { + *responses.BaseResponse + RegionId string `json:"RegionId" xml:"RegionId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Volumes VolumesInGetClusterVolumes `json:"Volumes" xml:"Volumes"` +} + +// CreateGetClusterVolumesRequest creates a request to invoke GetClusterVolumes API +func CreateGetClusterVolumesRequest() (request *GetClusterVolumesRequest) { + request = &GetClusterVolumesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetClusterVolumes", "", "") + request.Method = requests.GET + return +} + +// CreateGetClusterVolumesResponse creates a response to parse from GetClusterVolumes response +func CreateGetClusterVolumesResponse() (response *GetClusterVolumesResponse) { + response = &GetClusterVolumesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_common_image.go b/services/ehpc/get_common_image.go new file mode 100644 index 0000000000..744cbc9ef7 --- /dev/null +++ b/services/ehpc/get_common_image.go @@ -0,0 +1,101 @@ +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" +) + +// GetCommonImage invokes the ehpc.GetCommonImage API synchronously +func (client *Client) GetCommonImage(request *GetCommonImageRequest) (response *GetCommonImageResponse, err error) { + response = CreateGetCommonImageResponse() + err = client.DoAction(request, response) + return +} + +// GetCommonImageWithChan invokes the ehpc.GetCommonImage API asynchronously +func (client *Client) GetCommonImageWithChan(request *GetCommonImageRequest) (<-chan *GetCommonImageResponse, <-chan error) { + responseChan := make(chan *GetCommonImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetCommonImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetCommonImageWithCallback invokes the ehpc.GetCommonImage API asynchronously +func (client *Client) GetCommonImageWithCallback(request *GetCommonImageRequest, callback func(response *GetCommonImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetCommonImageResponse + var err error + defer close(result) + response, err = client.GetCommonImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetCommonImageRequest is the request struct for api GetCommonImage +type GetCommonImageRequest struct { + *requests.RpcRequest + ContainType string `position:"Query" name:"ContainType"` + ClusterId string `position:"Query" name:"ClusterId"` + ImageName string `position:"Query" name:"ImageName"` +} + +// GetCommonImageResponse is the response struct for api GetCommonImage +type GetCommonImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetCommonImageRequest creates a request to invoke GetCommonImage API +func CreateGetCommonImageRequest() (request *GetCommonImageRequest) { + request = &GetCommonImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetCommonImage", "", "") + request.Method = requests.GET + return +} + +// CreateGetCommonImageResponse creates a response to parse from GetCommonImage response +func CreateGetCommonImageResponse() (response *GetCommonImageResponse) { + response = &GetCommonImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_gws_connect_ticket.go b/services/ehpc/get_gws_connect_ticket.go new file mode 100644 index 0000000000..c390729b02 --- /dev/null +++ b/services/ehpc/get_gws_connect_ticket.go @@ -0,0 +1,101 @@ +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" +) + +// GetGWSConnectTicket invokes the ehpc.GetGWSConnectTicket API synchronously +func (client *Client) GetGWSConnectTicket(request *GetGWSConnectTicketRequest) (response *GetGWSConnectTicketResponse, err error) { + response = CreateGetGWSConnectTicketResponse() + err = client.DoAction(request, response) + return +} + +// GetGWSConnectTicketWithChan invokes the ehpc.GetGWSConnectTicket API asynchronously +func (client *Client) GetGWSConnectTicketWithChan(request *GetGWSConnectTicketRequest) (<-chan *GetGWSConnectTicketResponse, <-chan error) { + responseChan := make(chan *GetGWSConnectTicketResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetGWSConnectTicket(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetGWSConnectTicketWithCallback invokes the ehpc.GetGWSConnectTicket API asynchronously +func (client *Client) GetGWSConnectTicketWithCallback(request *GetGWSConnectTicketRequest, callback func(response *GetGWSConnectTicketResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetGWSConnectTicketResponse + var err error + defer close(result) + response, err = client.GetGWSConnectTicket(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetGWSConnectTicketRequest is the request struct for api GetGWSConnectTicket +type GetGWSConnectTicketRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + AppName string `position:"Query" name:"AppName"` +} + +// GetGWSConnectTicketResponse is the response struct for api GetGWSConnectTicket +type GetGWSConnectTicketResponse struct { + *responses.BaseResponse + Ticket string `json:"Ticket" xml:"Ticket"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetGWSConnectTicketRequest creates a request to invoke GetGWSConnectTicket API +func CreateGetGWSConnectTicketRequest() (request *GetGWSConnectTicketRequest) { + request = &GetGWSConnectTicketRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetGWSConnectTicket", "", "") + request.Method = requests.GET + return +} + +// CreateGetGWSConnectTicketResponse creates a response to parse from GetGWSConnectTicket response +func CreateGetGWSConnectTicketResponse() (response *GetGWSConnectTicketResponse) { + response = &GetGWSConnectTicketResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_hybrid_cluster_config.go b/services/ehpc/get_hybrid_cluster_config.go new file mode 100644 index 0000000000..15f3486410 --- /dev/null +++ b/services/ehpc/get_hybrid_cluster_config.go @@ -0,0 +1,101 @@ +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" +) + +// GetHybridClusterConfig invokes the ehpc.GetHybridClusterConfig API synchronously +func (client *Client) GetHybridClusterConfig(request *GetHybridClusterConfigRequest) (response *GetHybridClusterConfigResponse, err error) { + response = CreateGetHybridClusterConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetHybridClusterConfigWithChan invokes the ehpc.GetHybridClusterConfig API asynchronously +func (client *Client) GetHybridClusterConfigWithChan(request *GetHybridClusterConfigRequest) (<-chan *GetHybridClusterConfigResponse, <-chan error) { + responseChan := make(chan *GetHybridClusterConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetHybridClusterConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetHybridClusterConfigWithCallback invokes the ehpc.GetHybridClusterConfig API asynchronously +func (client *Client) GetHybridClusterConfigWithCallback(request *GetHybridClusterConfigRequest, callback func(response *GetHybridClusterConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetHybridClusterConfigResponse + var err error + defer close(result) + response, err = client.GetHybridClusterConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetHybridClusterConfigRequest is the request struct for api GetHybridClusterConfig +type GetHybridClusterConfigRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Node string `position:"Query" name:"Node"` +} + +// GetHybridClusterConfigResponse is the response struct for api GetHybridClusterConfig +type GetHybridClusterConfigResponse struct { + *responses.BaseResponse + ClusterConfig string `json:"ClusterConfig" xml:"ClusterConfig"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetHybridClusterConfigRequest creates a request to invoke GetHybridClusterConfig API +func CreateGetHybridClusterConfigRequest() (request *GetHybridClusterConfigRequest) { + request = &GetHybridClusterConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetHybridClusterConfig", "", "") + request.Method = requests.GET + return +} + +// CreateGetHybridClusterConfigResponse creates a response to parse from GetHybridClusterConfig response +func CreateGetHybridClusterConfigResponse() (response *GetHybridClusterConfigResponse) { + response = &GetHybridClusterConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_if_ecs_type_support_ht_config.go b/services/ehpc/get_if_ecs_type_support_ht_config.go new file mode 100644 index 0000000000..89cb51514c --- /dev/null +++ b/services/ehpc/get_if_ecs_type_support_ht_config.go @@ -0,0 +1,102 @@ +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" +) + +// GetIfEcsTypeSupportHtConfig invokes the ehpc.GetIfEcsTypeSupportHtConfig API synchronously +func (client *Client) GetIfEcsTypeSupportHtConfig(request *GetIfEcsTypeSupportHtConfigRequest) (response *GetIfEcsTypeSupportHtConfigResponse, err error) { + response = CreateGetIfEcsTypeSupportHtConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetIfEcsTypeSupportHtConfigWithChan invokes the ehpc.GetIfEcsTypeSupportHtConfig API asynchronously +func (client *Client) GetIfEcsTypeSupportHtConfigWithChan(request *GetIfEcsTypeSupportHtConfigRequest) (<-chan *GetIfEcsTypeSupportHtConfigResponse, <-chan error) { + responseChan := make(chan *GetIfEcsTypeSupportHtConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetIfEcsTypeSupportHtConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetIfEcsTypeSupportHtConfigWithCallback invokes the ehpc.GetIfEcsTypeSupportHtConfig API asynchronously +func (client *Client) GetIfEcsTypeSupportHtConfigWithCallback(request *GetIfEcsTypeSupportHtConfigRequest, callback func(response *GetIfEcsTypeSupportHtConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetIfEcsTypeSupportHtConfigResponse + var err error + defer close(result) + response, err = client.GetIfEcsTypeSupportHtConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetIfEcsTypeSupportHtConfigRequest is the request struct for api GetIfEcsTypeSupportHtConfig +type GetIfEcsTypeSupportHtConfigRequest struct { + *requests.RpcRequest + InstanceType string `position:"Query" name:"InstanceType"` +} + +// GetIfEcsTypeSupportHtConfigResponse is the response struct for api GetIfEcsTypeSupportHtConfig +type GetIfEcsTypeSupportHtConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DefaultHtEnabled bool `json:"DefaultHtEnabled" xml:"DefaultHtEnabled"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + SupportHtConfig bool `json:"SupportHtConfig" xml:"SupportHtConfig"` +} + +// CreateGetIfEcsTypeSupportHtConfigRequest creates a request to invoke GetIfEcsTypeSupportHtConfig API +func CreateGetIfEcsTypeSupportHtConfigRequest() (request *GetIfEcsTypeSupportHtConfigRequest) { + request = &GetIfEcsTypeSupportHtConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetIfEcsTypeSupportHtConfig", "", "") + request.Method = requests.GET + return +} + +// CreateGetIfEcsTypeSupportHtConfigResponse creates a response to parse from GetIfEcsTypeSupportHtConfig response +func CreateGetIfEcsTypeSupportHtConfigResponse() (response *GetIfEcsTypeSupportHtConfigResponse) { + response = &GetIfEcsTypeSupportHtConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_post_scripts.go b/services/ehpc/get_post_scripts.go new file mode 100644 index 0000000000..c1b8f92854 --- /dev/null +++ b/services/ehpc/get_post_scripts.go @@ -0,0 +1,100 @@ +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" +) + +// GetPostScripts invokes the ehpc.GetPostScripts API synchronously +func (client *Client) GetPostScripts(request *GetPostScriptsRequest) (response *GetPostScriptsResponse, err error) { + response = CreateGetPostScriptsResponse() + err = client.DoAction(request, response) + return +} + +// GetPostScriptsWithChan invokes the ehpc.GetPostScripts API asynchronously +func (client *Client) GetPostScriptsWithChan(request *GetPostScriptsRequest) (<-chan *GetPostScriptsResponse, <-chan error) { + responseChan := make(chan *GetPostScriptsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPostScripts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPostScriptsWithCallback invokes the ehpc.GetPostScripts API asynchronously +func (client *Client) GetPostScriptsWithCallback(request *GetPostScriptsRequest, callback func(response *GetPostScriptsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPostScriptsResponse + var err error + defer close(result) + response, err = client.GetPostScripts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPostScriptsRequest is the request struct for api GetPostScripts +type GetPostScriptsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// GetPostScriptsResponse is the response struct for api GetPostScripts +type GetPostScriptsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PostInstallScripts []PostInstallScriptsItem `json:"PostInstallScripts" xml:"PostInstallScripts"` +} + +// CreateGetPostScriptsRequest creates a request to invoke GetPostScripts API +func CreateGetPostScriptsRequest() (request *GetPostScriptsRequest) { + request = &GetPostScriptsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetPostScripts", "", "") + request.Method = requests.GET + return +} + +// CreateGetPostScriptsResponse creates a response to parse from GetPostScripts response +func CreateGetPostScriptsResponse() (response *GetPostScriptsResponse) { + response = &GetPostScriptsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_scheduler_info.go b/services/ehpc/get_scheduler_info.go new file mode 100644 index 0000000000..cd4acb8677 --- /dev/null +++ b/services/ehpc/get_scheduler_info.go @@ -0,0 +1,106 @@ +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" +) + +// GetSchedulerInfo invokes the ehpc.GetSchedulerInfo API synchronously +func (client *Client) GetSchedulerInfo(request *GetSchedulerInfoRequest) (response *GetSchedulerInfoResponse, err error) { + response = CreateGetSchedulerInfoResponse() + err = client.DoAction(request, response) + return +} + +// GetSchedulerInfoWithChan invokes the ehpc.GetSchedulerInfo API asynchronously +func (client *Client) GetSchedulerInfoWithChan(request *GetSchedulerInfoRequest) (<-chan *GetSchedulerInfoResponse, <-chan error) { + responseChan := make(chan *GetSchedulerInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetSchedulerInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetSchedulerInfoWithCallback invokes the ehpc.GetSchedulerInfo API asynchronously +func (client *Client) GetSchedulerInfoWithCallback(request *GetSchedulerInfoRequest, callback func(response *GetSchedulerInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetSchedulerInfoResponse + var err error + defer close(result) + response, err = client.GetSchedulerInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetSchedulerInfoRequest is the request struct for api GetSchedulerInfo +type GetSchedulerInfoRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Scheduler *[]GetSchedulerInfoScheduler `position:"Query" name:"Scheduler" type:"Repeated"` +} + +// GetSchedulerInfoScheduler is a repeated param struct in GetSchedulerInfoRequest +type GetSchedulerInfoScheduler struct { + SchedName string `name:"SchedName"` +} + +// GetSchedulerInfoResponse is the response struct for api GetSchedulerInfo +type GetSchedulerInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SchedInfo []SchedInfoItem `json:"SchedInfo" xml:"SchedInfo"` +} + +// CreateGetSchedulerInfoRequest creates a request to invoke GetSchedulerInfo API +func CreateGetSchedulerInfoRequest() (request *GetSchedulerInfoRequest) { + request = &GetSchedulerInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetSchedulerInfo", "", "") + request.Method = requests.GET + return +} + +// CreateGetSchedulerInfoResponse creates a response to parse from GetSchedulerInfo response +func CreateGetSchedulerInfoResponse() (response *GetSchedulerInfoResponse) { + response = &GetSchedulerInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_user_image.go b/services/ehpc/get_user_image.go new file mode 100644 index 0000000000..ecc7100543 --- /dev/null +++ b/services/ehpc/get_user_image.go @@ -0,0 +1,104 @@ +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" +) + +// GetUserImage invokes the ehpc.GetUserImage API synchronously +func (client *Client) GetUserImage(request *GetUserImageRequest) (response *GetUserImageResponse, err error) { + response = CreateGetUserImageResponse() + err = client.DoAction(request, response) + return +} + +// GetUserImageWithChan invokes the ehpc.GetUserImage API asynchronously +func (client *Client) GetUserImageWithChan(request *GetUserImageRequest) (<-chan *GetUserImageResponse, <-chan error) { + responseChan := make(chan *GetUserImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetUserImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetUserImageWithCallback invokes the ehpc.GetUserImage API asynchronously +func (client *Client) GetUserImageWithCallback(request *GetUserImageRequest, callback func(response *GetUserImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetUserImageResponse + var err error + defer close(result) + response, err = client.GetUserImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetUserImageRequest is the request struct for api GetUserImage +type GetUserImageRequest struct { + *requests.RpcRequest + OSSBucket string `position:"Query" name:"OSSBucket"` + OSSEndPoint string `position:"Query" name:"OSSEndPoint"` + ClusterId string `position:"Query" name:"ClusterId"` + ContainerType string `position:"Query" name:"ContainerType"` + ImagePath string `position:"Query" name:"ImagePath"` + ImageName string `position:"Query" name:"ImageName"` +} + +// GetUserImageResponse is the response struct for api GetUserImage +type GetUserImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetUserImageRequest creates a request to invoke GetUserImage API +func CreateGetUserImageRequest() (request *GetUserImageRequest) { + request = &GetUserImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetUserImage", "", "") + request.Method = requests.GET + return +} + +// CreateGetUserImageResponse creates a response to parse from GetUserImage response +func CreateGetUserImageResponse() (response *GetUserImageResponse) { + response = &GetUserImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/get_visual_service_status.go b/services/ehpc/get_visual_service_status.go new file mode 100644 index 0000000000..01fef84d0c --- /dev/null +++ b/services/ehpc/get_visual_service_status.go @@ -0,0 +1,100 @@ +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" +) + +// GetVisualServiceStatus invokes the ehpc.GetVisualServiceStatus API synchronously +func (client *Client) GetVisualServiceStatus(request *GetVisualServiceStatusRequest) (response *GetVisualServiceStatusResponse, err error) { + response = CreateGetVisualServiceStatusResponse() + err = client.DoAction(request, response) + return +} + +// GetVisualServiceStatusWithChan invokes the ehpc.GetVisualServiceStatus API asynchronously +func (client *Client) GetVisualServiceStatusWithChan(request *GetVisualServiceStatusRequest) (<-chan *GetVisualServiceStatusResponse, <-chan error) { + responseChan := make(chan *GetVisualServiceStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetVisualServiceStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetVisualServiceStatusWithCallback invokes the ehpc.GetVisualServiceStatus API asynchronously +func (client *Client) GetVisualServiceStatusWithCallback(request *GetVisualServiceStatusRequest, callback func(response *GetVisualServiceStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetVisualServiceStatusResponse + var err error + defer close(result) + response, err = client.GetVisualServiceStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetVisualServiceStatusRequest is the request struct for api GetVisualServiceStatus +type GetVisualServiceStatusRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// GetVisualServiceStatusResponse is the response struct for api GetVisualServiceStatus +type GetVisualServiceStatusResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateGetVisualServiceStatusRequest creates a request to invoke GetVisualServiceStatus API +func CreateGetVisualServiceStatusRequest() (request *GetVisualServiceStatusRequest) { + request = &GetVisualServiceStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "GetVisualServiceStatus", "", "") + request.Method = requests.GET + return +} + +// CreateGetVisualServiceStatusResponse creates a response to parse from GetVisualServiceStatus response +func CreateGetVisualServiceStatusResponse() (response *GetVisualServiceStatusResponse) { + response = &GetVisualServiceStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/initialize_ehpc.go b/services/ehpc/initialize_ehpc.go new file mode 100644 index 0000000000..04081d60b2 --- /dev/null +++ b/services/ehpc/initialize_ehpc.go @@ -0,0 +1,98 @@ +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" +) + +// InitializeEHPC invokes the ehpc.InitializeEHPC API synchronously +func (client *Client) InitializeEHPC(request *InitializeEHPCRequest) (response *InitializeEHPCResponse, err error) { + response = CreateInitializeEHPCResponse() + err = client.DoAction(request, response) + return +} + +// InitializeEHPCWithChan invokes the ehpc.InitializeEHPC API asynchronously +func (client *Client) InitializeEHPCWithChan(request *InitializeEHPCRequest) (<-chan *InitializeEHPCResponse, <-chan error) { + responseChan := make(chan *InitializeEHPCResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InitializeEHPC(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InitializeEHPCWithCallback invokes the ehpc.InitializeEHPC API asynchronously +func (client *Client) InitializeEHPCWithCallback(request *InitializeEHPCRequest, callback func(response *InitializeEHPCResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InitializeEHPCResponse + var err error + defer close(result) + response, err = client.InitializeEHPC(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InitializeEHPCRequest is the request struct for api InitializeEHPC +type InitializeEHPCRequest struct { + *requests.RpcRequest +} + +// InitializeEHPCResponse is the response struct for api InitializeEHPC +type InitializeEHPCResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateInitializeEHPCRequest creates a request to invoke InitializeEHPC API +func CreateInitializeEHPCRequest() (request *InitializeEHPCRequest) { + request = &InitializeEHPCRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "InitializeEHPC", "", "") + request.Method = requests.GET + return +} + +// CreateInitializeEHPCResponse creates a response to parse from InitializeEHPC response +func CreateInitializeEHPCResponse() (response *InitializeEHPCResponse) { + response = &InitializeEHPCResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/inspect_image.go b/services/ehpc/inspect_image.go new file mode 100644 index 0000000000..069f5bd731 --- /dev/null +++ b/services/ehpc/inspect_image.go @@ -0,0 +1,102 @@ +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" +) + +// InspectImage invokes the ehpc.InspectImage API synchronously +func (client *Client) InspectImage(request *InspectImageRequest) (response *InspectImageResponse, err error) { + response = CreateInspectImageResponse() + err = client.DoAction(request, response) + return +} + +// InspectImageWithChan invokes the ehpc.InspectImage API asynchronously +func (client *Client) InspectImageWithChan(request *InspectImageRequest) (<-chan *InspectImageResponse, <-chan error) { + responseChan := make(chan *InspectImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InspectImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InspectImageWithCallback invokes the ehpc.InspectImage API asynchronously +func (client *Client) InspectImageWithCallback(request *InspectImageRequest, callback func(response *InspectImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InspectImageResponse + var err error + defer close(result) + response, err = client.InspectImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InspectImageRequest is the request struct for api InspectImage +type InspectImageRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageName string `position:"Query" name:"ImageName"` +} + +// InspectImageResponse is the response struct for api InspectImage +type InspectImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImageStatus ImageStatus `json:"ImageStatus" xml:"ImageStatus"` +} + +// CreateInspectImageRequest creates a request to invoke InspectImage API +func CreateInspectImageRequest() (request *InspectImageRequest) { + request = &InspectImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "InspectImage", "", "") + request.Method = requests.GET + return +} + +// CreateInspectImageResponse creates a response to parse from InspectImage response +func CreateInspectImageResponse() (response *InspectImageResponse) { + response = &InspectImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/install_software.go b/services/ehpc/install_software.go new file mode 100644 index 0000000000..caa72be7ae --- /dev/null +++ b/services/ehpc/install_software.go @@ -0,0 +1,100 @@ +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" +) + +// InstallSoftware invokes the ehpc.InstallSoftware API synchronously +func (client *Client) InstallSoftware(request *InstallSoftwareRequest) (response *InstallSoftwareResponse, err error) { + response = CreateInstallSoftwareResponse() + err = client.DoAction(request, response) + return +} + +// InstallSoftwareWithChan invokes the ehpc.InstallSoftware API asynchronously +func (client *Client) InstallSoftwareWithChan(request *InstallSoftwareRequest) (<-chan *InstallSoftwareResponse, <-chan error) { + responseChan := make(chan *InstallSoftwareResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InstallSoftware(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InstallSoftwareWithCallback invokes the ehpc.InstallSoftware API asynchronously +func (client *Client) InstallSoftwareWithCallback(request *InstallSoftwareRequest, callback func(response *InstallSoftwareResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InstallSoftwareResponse + var err error + defer close(result) + response, err = client.InstallSoftware(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InstallSoftwareRequest is the request struct for api InstallSoftware +type InstallSoftwareRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Application string `position:"Query" name:"Application"` +} + +// InstallSoftwareResponse is the response struct for api InstallSoftware +type InstallSoftwareResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateInstallSoftwareRequest creates a request to invoke InstallSoftware API +func CreateInstallSoftwareRequest() (request *InstallSoftwareRequest) { + request = &InstallSoftwareRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "InstallSoftware", "", "") + request.Method = requests.GET + return +} + +// CreateInstallSoftwareResponse creates a response to parse from InstallSoftware response +func CreateInstallSoftwareResponse() (response *InstallSoftwareResponse) { + response = &InstallSoftwareResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/invoke_shell_command.go b/services/ehpc/invoke_shell_command.go new file mode 100644 index 0000000000..eacd225b8a --- /dev/null +++ b/services/ehpc/invoke_shell_command.go @@ -0,0 +1,110 @@ +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" +) + +// InvokeShellCommand invokes the ehpc.InvokeShellCommand API synchronously +func (client *Client) InvokeShellCommand(request *InvokeShellCommandRequest) (response *InvokeShellCommandResponse, err error) { + response = CreateInvokeShellCommandResponse() + err = client.DoAction(request, response) + return +} + +// InvokeShellCommandWithChan invokes the ehpc.InvokeShellCommand API asynchronously +func (client *Client) InvokeShellCommandWithChan(request *InvokeShellCommandRequest) (<-chan *InvokeShellCommandResponse, <-chan error) { + responseChan := make(chan *InvokeShellCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InvokeShellCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InvokeShellCommandWithCallback invokes the ehpc.InvokeShellCommand API asynchronously +func (client *Client) InvokeShellCommandWithCallback(request *InvokeShellCommandRequest, callback func(response *InvokeShellCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InvokeShellCommandResponse + var err error + defer close(result) + response, err = client.InvokeShellCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InvokeShellCommandRequest is the request struct for api InvokeShellCommand +type InvokeShellCommandRequest struct { + *requests.RpcRequest + Instance *[]InvokeShellCommandInstance `position:"Query" name:"Instance" type:"Repeated"` + WorkingDir string `position:"Query" name:"WorkingDir"` + ClusterId string `position:"Query" name:"ClusterId"` + Command string `position:"Query" name:"Command"` + Timeout requests.Integer `position:"Query" name:"Timeout"` +} + +// InvokeShellCommandInstance is a repeated param struct in InvokeShellCommandRequest +type InvokeShellCommandInstance struct { + Id string `name:"Id"` +} + +// InvokeShellCommandResponse is the response struct for api InvokeShellCommand +type InvokeShellCommandResponse struct { + *responses.BaseResponse + CommandId string `json:"CommandId" xml:"CommandId"` + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceIds InstanceIdsInInvokeShellCommand `json:"InstanceIds" xml:"InstanceIds"` +} + +// CreateInvokeShellCommandRequest creates a request to invoke InvokeShellCommand API +func CreateInvokeShellCommandRequest() (request *InvokeShellCommandRequest) { + request = &InvokeShellCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "InvokeShellCommand", "", "") + request.Method = requests.GET + return +} + +// CreateInvokeShellCommandResponse creates a response to parse from InvokeShellCommand response +func CreateInvokeShellCommandResponse() (response *InvokeShellCommandResponse) { + response = &InvokeShellCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_available_ecs_types.go b/services/ehpc/list_available_ecs_types.go new file mode 100644 index 0000000000..fc72b6b991 --- /dev/null +++ b/services/ehpc/list_available_ecs_types.go @@ -0,0 +1,104 @@ +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 +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 +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 +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"` + ShowSoldOut requests.Boolean `position:"Query" name:"ShowSoldOut"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` +} + +// ListAvailableEcsTypesResponse is the response struct for api ListAvailableEcsTypes +type ListAvailableEcsTypesResponse struct { + *responses.BaseResponse + SupportSpotInstance bool `json:"SupportSpotInstance" xml:"SupportSpotInstance"` + RequestId string `json:"RequestId" xml:"RequestId"` + 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", "", "") + request.Method = requests.GET + return +} + +// CreateListAvailableEcsTypesResponse creates a response to parse from ListAvailableEcsTypes response +func CreateListAvailableEcsTypesResponse() (response *ListAvailableEcsTypesResponse) { + response = &ListAvailableEcsTypesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_cloud_metric_profilings.go b/services/ehpc/list_cloud_metric_profilings.go new file mode 100644 index 0000000000..a904c45891 --- /dev/null +++ b/services/ehpc/list_cloud_metric_profilings.go @@ -0,0 +1,105 @@ +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" +) + +// ListCloudMetricProfilings invokes the ehpc.ListCloudMetricProfilings API synchronously +func (client *Client) ListCloudMetricProfilings(request *ListCloudMetricProfilingsRequest) (response *ListCloudMetricProfilingsResponse, err error) { + response = CreateListCloudMetricProfilingsResponse() + err = client.DoAction(request, response) + return +} + +// ListCloudMetricProfilingsWithChan invokes the ehpc.ListCloudMetricProfilings API asynchronously +func (client *Client) ListCloudMetricProfilingsWithChan(request *ListCloudMetricProfilingsRequest) (<-chan *ListCloudMetricProfilingsResponse, <-chan error) { + responseChan := make(chan *ListCloudMetricProfilingsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCloudMetricProfilings(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCloudMetricProfilingsWithCallback invokes the ehpc.ListCloudMetricProfilings API asynchronously +func (client *Client) ListCloudMetricProfilingsWithCallback(request *ListCloudMetricProfilingsRequest, callback func(response *ListCloudMetricProfilingsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCloudMetricProfilingsResponse + var err error + defer close(result) + response, err = client.ListCloudMetricProfilings(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCloudMetricProfilingsRequest is the request struct for api ListCloudMetricProfilings +type ListCloudMetricProfilingsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListCloudMetricProfilingsResponse is the response struct for api ListCloudMetricProfilings +type ListCloudMetricProfilingsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Profilings Profilings `json:"Profilings" xml:"Profilings"` +} + +// CreateListCloudMetricProfilingsRequest creates a request to invoke ListCloudMetricProfilings API +func CreateListCloudMetricProfilingsRequest() (request *ListCloudMetricProfilingsRequest) { + request = &ListCloudMetricProfilingsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCloudMetricProfilings", "", "") + request.Method = requests.GET + return +} + +// CreateListCloudMetricProfilingsResponse creates a response to parse from ListCloudMetricProfilings response +func CreateListCloudMetricProfilingsResponse() (response *ListCloudMetricProfilingsResponse) { + response = &ListCloudMetricProfilingsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_cluster_logs.go b/services/ehpc/list_cluster_logs.go index 48d77626e1..1e5923c42f 100644 --- a/services/ehpc/list_cluster_logs.go +++ b/services/ehpc/list_cluster_logs.go @@ -92,7 +92,7 @@ func CreateListClusterLogsRequest() (request *ListClusterLogsRequest) { request = &ListClusterLogsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListClusterLogs", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListClusterLogs", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_clusters.go b/services/ehpc/list_clusters.go index 570bd4c6af..a5b57c9c42 100644 --- a/services/ehpc/list_clusters.go +++ b/services/ehpc/list_clusters.go @@ -78,11 +78,11 @@ type ListClustersRequest struct { // ListClustersResponse is the response struct for api ListClusters type ListClustersResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Clusters Clusters `json:"Clusters" xml:"Clusters"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Clusters ClustersInListClusters `json:"Clusters" xml:"Clusters"` } // CreateListClustersRequest creates a request to invoke ListClusters API @@ -90,7 +90,7 @@ func CreateListClustersRequest() (request *ListClustersRequest) { request = &ListClustersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListClusters", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListClusters", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_clusters_meta.go b/services/ehpc/list_clusters_meta.go new file mode 100644 index 0000000000..b129d0f313 --- /dev/null +++ b/services/ehpc/list_clusters_meta.go @@ -0,0 +1,104 @@ +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" +) + +// ListClustersMeta invokes the ehpc.ListClustersMeta API synchronously +func (client *Client) ListClustersMeta(request *ListClustersMetaRequest) (response *ListClustersMetaResponse, err error) { + response = CreateListClustersMetaResponse() + err = client.DoAction(request, response) + return +} + +// ListClustersMetaWithChan invokes the ehpc.ListClustersMeta API asynchronously +func (client *Client) ListClustersMetaWithChan(request *ListClustersMetaRequest) (<-chan *ListClustersMetaResponse, <-chan error) { + responseChan := make(chan *ListClustersMetaResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListClustersMeta(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListClustersMetaWithCallback invokes the ehpc.ListClustersMeta API asynchronously +func (client *Client) ListClustersMetaWithCallback(request *ListClustersMetaRequest, callback func(response *ListClustersMetaResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListClustersMetaResponse + var err error + defer close(result) + response, err = client.ListClustersMeta(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListClustersMetaRequest is the request struct for api ListClustersMeta +type ListClustersMetaRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListClustersMetaResponse is the response struct for api ListClustersMeta +type ListClustersMetaResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Clusters ClustersInListClustersMeta `json:"Clusters" xml:"Clusters"` +} + +// CreateListClustersMetaRequest creates a request to invoke ListClustersMeta API +func CreateListClustersMetaRequest() (request *ListClustersMetaRequest) { + request = &ListClustersMetaRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListClustersMeta", "", "") + request.Method = requests.GET + return +} + +// CreateListClustersMetaResponse creates a response to parse from ListClustersMeta response +func CreateListClustersMetaResponse() (response *ListClustersMetaResponse) { + response = &ListClustersMetaResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_commands.go b/services/ehpc/list_commands.go new file mode 100644 index 0000000000..9587a709c6 --- /dev/null +++ b/services/ehpc/list_commands.go @@ -0,0 +1,106 @@ +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" +) + +// ListCommands invokes the ehpc.ListCommands API synchronously +func (client *Client) ListCommands(request *ListCommandsRequest) (response *ListCommandsResponse, err error) { + response = CreateListCommandsResponse() + err = client.DoAction(request, response) + return +} + +// ListCommandsWithChan invokes the ehpc.ListCommands API asynchronously +func (client *Client) ListCommandsWithChan(request *ListCommandsRequest) (<-chan *ListCommandsResponse, <-chan error) { + responseChan := make(chan *ListCommandsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCommands(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCommandsWithCallback invokes the ehpc.ListCommands API asynchronously +func (client *Client) ListCommandsWithCallback(request *ListCommandsRequest, callback func(response *ListCommandsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCommandsResponse + var err error + defer close(result) + response, err = client.ListCommands(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCommandsRequest is the request struct for api ListCommands +type ListCommandsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListCommandsResponse is the response struct for api ListCommands +type ListCommandsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Commands Commands `json:"Commands" xml:"Commands"` +} + +// CreateListCommandsRequest creates a request to invoke ListCommands API +func CreateListCommandsRequest() (request *ListCommandsRequest) { + request = &ListCommandsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCommands", "", "") + request.Method = requests.GET + return +} + +// CreateListCommandsResponse creates a response to parse from ListCommands response +func CreateListCommandsResponse() (response *ListCommandsResponse) { + response = &ListCommandsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_community_images.go b/services/ehpc/list_community_images.go new file mode 100644 index 0000000000..e43e0cfc67 --- /dev/null +++ b/services/ehpc/list_community_images.go @@ -0,0 +1,102 @@ +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" +) + +// ListCommunityImages invokes the ehpc.ListCommunityImages API synchronously +func (client *Client) ListCommunityImages(request *ListCommunityImagesRequest) (response *ListCommunityImagesResponse, err error) { + response = CreateListCommunityImagesResponse() + err = client.DoAction(request, response) + return +} + +// ListCommunityImagesWithChan invokes the ehpc.ListCommunityImages API asynchronously +func (client *Client) ListCommunityImagesWithChan(request *ListCommunityImagesRequest) (<-chan *ListCommunityImagesResponse, <-chan error) { + responseChan := make(chan *ListCommunityImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCommunityImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCommunityImagesWithCallback invokes the ehpc.ListCommunityImages API asynchronously +func (client *Client) ListCommunityImagesWithCallback(request *ListCommunityImagesRequest, callback func(response *ListCommunityImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCommunityImagesResponse + var err error + defer close(result) + response, err = client.ListCommunityImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCommunityImagesRequest is the request struct for api ListCommunityImages +type ListCommunityImagesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + BaseOsTag string `position:"Query" name:"BaseOsTag"` + InstanceType string `position:"Query" name:"InstanceType"` +} + +// ListCommunityImagesResponse is the response struct for api ListCommunityImages +type ListCommunityImagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Images ImagesInListCommunityImages `json:"Images" xml:"Images"` +} + +// CreateListCommunityImagesRequest creates a request to invoke ListCommunityImages API +func CreateListCommunityImagesRequest() (request *ListCommunityImagesRequest) { + request = &ListCommunityImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCommunityImages", "", "") + request.Method = requests.GET + return +} + +// CreateListCommunityImagesResponse creates a response to parse from ListCommunityImages response +func CreateListCommunityImagesResponse() (response *ListCommunityImagesResponse) { + response = &ListCommunityImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_container_apps.go b/services/ehpc/list_container_apps.go new file mode 100644 index 0000000000..182d2b0247 --- /dev/null +++ b/services/ehpc/list_container_apps.go @@ -0,0 +1,104 @@ +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" +) + +// ListContainerApps invokes the ehpc.ListContainerApps API synchronously +func (client *Client) ListContainerApps(request *ListContainerAppsRequest) (response *ListContainerAppsResponse, err error) { + response = CreateListContainerAppsResponse() + err = client.DoAction(request, response) + return +} + +// ListContainerAppsWithChan invokes the ehpc.ListContainerApps API asynchronously +func (client *Client) ListContainerAppsWithChan(request *ListContainerAppsRequest) (<-chan *ListContainerAppsResponse, <-chan error) { + responseChan := make(chan *ListContainerAppsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContainerApps(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContainerAppsWithCallback invokes the ehpc.ListContainerApps API asynchronously +func (client *Client) ListContainerAppsWithCallback(request *ListContainerAppsRequest, callback func(response *ListContainerAppsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContainerAppsResponse + var err error + defer close(result) + response, err = client.ListContainerApps(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContainerAppsRequest is the request struct for api ListContainerApps +type ListContainerAppsRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListContainerAppsResponse is the response struct for api ListContainerApps +type ListContainerAppsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + ContainerApps ContainerApps `json:"ContainerApps" xml:"ContainerApps"` +} + +// CreateListContainerAppsRequest creates a request to invoke ListContainerApps API +func CreateListContainerAppsRequest() (request *ListContainerAppsRequest) { + request = &ListContainerAppsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListContainerApps", "", "") + request.Method = requests.GET + return +} + +// CreateListContainerAppsResponse creates a response to parse from ListContainerApps response +func CreateListContainerAppsResponse() (response *ListContainerAppsResponse) { + response = &ListContainerAppsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_container_images.go b/services/ehpc/list_container_images.go new file mode 100644 index 0000000000..500b103010 --- /dev/null +++ b/services/ehpc/list_container_images.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" +) + +// ListContainerImages invokes the ehpc.ListContainerImages API synchronously +func (client *Client) ListContainerImages(request *ListContainerImagesRequest) (response *ListContainerImagesResponse, err error) { + response = CreateListContainerImagesResponse() + err = client.DoAction(request, response) + return +} + +// ListContainerImagesWithChan invokes the ehpc.ListContainerImages API asynchronously +func (client *Client) ListContainerImagesWithChan(request *ListContainerImagesRequest) (<-chan *ListContainerImagesResponse, <-chan error) { + responseChan := make(chan *ListContainerImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListContainerImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListContainerImagesWithCallback invokes the ehpc.ListContainerImages API asynchronously +func (client *Client) ListContainerImagesWithCallback(request *ListContainerImagesRequest, callback func(response *ListContainerImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListContainerImagesResponse + var err error + defer close(result) + response, err = client.ListContainerImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListContainerImagesRequest is the request struct for api ListContainerImages +type ListContainerImagesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ContainerType string `position:"Query" name:"ContainerType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListContainerImagesResponse is the response struct for api ListContainerImages +type ListContainerImagesResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + DBInfo string `json:"DBInfo" xml:"DBInfo"` + Images ImagesInListContainerImages `json:"Images" xml:"Images"` +} + +// CreateListContainerImagesRequest creates a request to invoke ListContainerImages API +func CreateListContainerImagesRequest() (request *ListContainerImagesRequest) { + request = &ListContainerImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListContainerImages", "", "") + request.Method = requests.GET + return +} + +// CreateListContainerImagesResponse creates a response to parse from ListContainerImages response +func CreateListContainerImagesResponse() (response *ListContainerImagesResponse) { + response = &ListContainerImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_cpfs_file_systems.go b/services/ehpc/list_cpfs_file_systems.go new file mode 100644 index 0000000000..792475b0cc --- /dev/null +++ b/services/ehpc/list_cpfs_file_systems.go @@ -0,0 +1,105 @@ +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" +) + +// ListCpfsFileSystems invokes the ehpc.ListCpfsFileSystems API synchronously +func (client *Client) ListCpfsFileSystems(request *ListCpfsFileSystemsRequest) (response *ListCpfsFileSystemsResponse, err error) { + response = CreateListCpfsFileSystemsResponse() + err = client.DoAction(request, response) + return +} + +// ListCpfsFileSystemsWithChan invokes the ehpc.ListCpfsFileSystems API asynchronously +func (client *Client) ListCpfsFileSystemsWithChan(request *ListCpfsFileSystemsRequest) (<-chan *ListCpfsFileSystemsResponse, <-chan error) { + responseChan := make(chan *ListCpfsFileSystemsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListCpfsFileSystems(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListCpfsFileSystemsWithCallback invokes the ehpc.ListCpfsFileSystems API asynchronously +func (client *Client) ListCpfsFileSystemsWithCallback(request *ListCpfsFileSystemsRequest, callback func(response *ListCpfsFileSystemsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListCpfsFileSystemsResponse + var err error + defer close(result) + response, err = client.ListCpfsFileSystems(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListCpfsFileSystemsRequest is the request struct for api ListCpfsFileSystems +type ListCpfsFileSystemsRequest struct { + *requests.RpcRequest + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + FileSystemId string `position:"Query" name:"FileSystemId"` +} + +// ListCpfsFileSystemsResponse is the response struct for api ListCpfsFileSystems +type ListCpfsFileSystemsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + FileSystemList FileSystemListInListCpfsFileSystems `json:"FileSystemList" xml:"FileSystemList"` +} + +// CreateListCpfsFileSystemsRequest creates a request to invoke ListCpfsFileSystems API +func CreateListCpfsFileSystemsRequest() (request *ListCpfsFileSystemsRequest) { + request = &ListCpfsFileSystemsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCpfsFileSystems", "", "") + request.Method = requests.GET + return +} + +// CreateListCpfsFileSystemsResponse creates a response to parse from ListCpfsFileSystems response +func CreateListCpfsFileSystemsResponse() (response *ListCpfsFileSystemsResponse) { + response = &ListCpfsFileSystemsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_current_client_version.go b/services/ehpc/list_current_client_version.go index 07f6ea0085..dde4b62dfb 100644 --- a/services/ehpc/list_current_client_version.go +++ b/services/ehpc/list_current_client_version.go @@ -85,7 +85,7 @@ func CreateListCurrentClientVersionRequest() (request *ListCurrentClientVersionR request = &ListCurrentClientVersionRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListCurrentClientVersion", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCurrentClientVersion", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_custom_images.go b/services/ehpc/list_custom_images.go index 0a828896cf..d95290940e 100644 --- a/services/ehpc/list_custom_images.go +++ b/services/ehpc/list_custom_images.go @@ -71,15 +71,17 @@ func (client *Client) ListCustomImagesWithCallback(request *ListCustomImagesRequ // ListCustomImagesRequest is the request struct for api ListCustomImages type ListCustomImagesRequest struct { *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` 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 type ListCustomImagesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Images Images `json:"Images" xml:"Images"` + RequestId string `json:"RequestId" xml:"RequestId"` + Images ImagesInListCustomImages `json:"Images" xml:"Images"` } // CreateListCustomImagesRequest creates a request to invoke ListCustomImages API @@ -87,7 +89,7 @@ func CreateListCustomImagesRequest() (request *ListCustomImagesRequest) { request = &ListCustomImagesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListCustomImages", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListCustomImages", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_file_system_with_mount_targets.go b/services/ehpc/list_file_system_with_mount_targets.go new file mode 100644 index 0000000000..548f569f4e --- /dev/null +++ b/services/ehpc/list_file_system_with_mount_targets.go @@ -0,0 +1,104 @@ +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 +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 +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 +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 + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListFileSystemWithMountTargetsResponse is the response struct for api ListFileSystemWithMountTargets +type ListFileSystemWithMountTargetsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + FileSystemList FileSystemListInListFileSystemWithMountTargets `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", "", "") + request.Method = requests.GET + return +} + +// CreateListFileSystemWithMountTargetsResponse creates a response to parse from ListFileSystemWithMountTargets response +func CreateListFileSystemWithMountTargetsResponse() (response *ListFileSystemWithMountTargetsResponse) { + response = &ListFileSystemWithMountTargetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_images.go b/services/ehpc/list_images.go index cc68a0a4c6..39b3483475 100644 --- a/services/ehpc/list_images.go +++ b/services/ehpc/list_images.go @@ -71,6 +71,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 @@ -85,7 +87,7 @@ func CreateListImagesRequest() (request *ListImagesRequest) { request = &ListImagesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListImages", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListImages", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_installed_software.go b/services/ehpc/list_installed_software.go new file mode 100644 index 0000000000..ae547fd0df --- /dev/null +++ b/services/ehpc/list_installed_software.go @@ -0,0 +1,100 @@ +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" +) + +// ListInstalledSoftware invokes the ehpc.ListInstalledSoftware API synchronously +func (client *Client) ListInstalledSoftware(request *ListInstalledSoftwareRequest) (response *ListInstalledSoftwareResponse, err error) { + response = CreateListInstalledSoftwareResponse() + err = client.DoAction(request, response) + return +} + +// ListInstalledSoftwareWithChan invokes the ehpc.ListInstalledSoftware API asynchronously +func (client *Client) ListInstalledSoftwareWithChan(request *ListInstalledSoftwareRequest) (<-chan *ListInstalledSoftwareResponse, <-chan error) { + responseChan := make(chan *ListInstalledSoftwareResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInstalledSoftware(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInstalledSoftwareWithCallback invokes the ehpc.ListInstalledSoftware API asynchronously +func (client *Client) ListInstalledSoftwareWithCallback(request *ListInstalledSoftwareRequest, callback func(response *ListInstalledSoftwareResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInstalledSoftwareResponse + var err error + defer close(result) + response, err = client.ListInstalledSoftware(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInstalledSoftwareRequest is the request struct for api ListInstalledSoftware +type ListInstalledSoftwareRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// ListInstalledSoftwareResponse is the response struct for api ListInstalledSoftware +type ListInstalledSoftwareResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SoftwareList SoftwareList `json:"SoftwareList" xml:"SoftwareList"` +} + +// CreateListInstalledSoftwareRequest creates a request to invoke ListInstalledSoftware API +func CreateListInstalledSoftwareRequest() (request *ListInstalledSoftwareRequest) { + request = &ListInstalledSoftwareRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListInstalledSoftware", "", "") + request.Method = requests.GET + return +} + +// CreateListInstalledSoftwareResponse creates a response to parse from ListInstalledSoftware response +func CreateListInstalledSoftwareResponse() (response *ListInstalledSoftwareResponse) { + response = &ListInstalledSoftwareResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_invocation_results.go b/services/ehpc/list_invocation_results.go new file mode 100644 index 0000000000..bfe9e6ce6a --- /dev/null +++ b/services/ehpc/list_invocation_results.go @@ -0,0 +1,113 @@ +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" +) + +// ListInvocationResults invokes the ehpc.ListInvocationResults API synchronously +func (client *Client) ListInvocationResults(request *ListInvocationResultsRequest) (response *ListInvocationResultsResponse, err error) { + response = CreateListInvocationResultsResponse() + err = client.DoAction(request, response) + return +} + +// ListInvocationResultsWithChan invokes the ehpc.ListInvocationResults API asynchronously +func (client *Client) ListInvocationResultsWithChan(request *ListInvocationResultsRequest) (<-chan *ListInvocationResultsResponse, <-chan error) { + responseChan := make(chan *ListInvocationResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInvocationResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInvocationResultsWithCallback invokes the ehpc.ListInvocationResults API asynchronously +func (client *Client) ListInvocationResultsWithCallback(request *ListInvocationResultsRequest, callback func(response *ListInvocationResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInvocationResultsResponse + var err error + defer close(result) + response, err = client.ListInvocationResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInvocationResultsRequest is the request struct for api ListInvocationResults +type ListInvocationResultsRequest struct { + *requests.RpcRequest + Instance *[]ListInvocationResultsInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListInvocationResultsInstance is a repeated param struct in ListInvocationResultsRequest +type ListInvocationResultsInstance struct { + Id string `name:"Id"` +} + +// ListInvocationResultsResponse is the response struct for api ListInvocationResults +type ListInvocationResultsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` +} + +// CreateListInvocationResultsRequest creates a request to invoke ListInvocationResults API +func CreateListInvocationResultsRequest() (request *ListInvocationResultsRequest) { + request = &ListInvocationResultsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListInvocationResults", "", "") + request.Method = requests.GET + return +} + +// CreateListInvocationResultsResponse creates a response to parse from ListInvocationResults response +func CreateListInvocationResultsResponse() (response *ListInvocationResultsResponse) { + response = &ListInvocationResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_invocation_status.go b/services/ehpc/list_invocation_status.go new file mode 100644 index 0000000000..f46ab4398d --- /dev/null +++ b/services/ehpc/list_invocation_status.go @@ -0,0 +1,103 @@ +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" +) + +// ListInvocationStatus invokes the ehpc.ListInvocationStatus API synchronously +func (client *Client) ListInvocationStatus(request *ListInvocationStatusRequest) (response *ListInvocationStatusResponse, err error) { + response = CreateListInvocationStatusResponse() + err = client.DoAction(request, response) + return +} + +// ListInvocationStatusWithChan invokes the ehpc.ListInvocationStatus API asynchronously +func (client *Client) ListInvocationStatusWithChan(request *ListInvocationStatusRequest) (<-chan *ListInvocationStatusResponse, <-chan error) { + responseChan := make(chan *ListInvocationStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListInvocationStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListInvocationStatusWithCallback invokes the ehpc.ListInvocationStatus API asynchronously +func (client *Client) ListInvocationStatusWithCallback(request *ListInvocationStatusRequest, callback func(response *ListInvocationStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListInvocationStatusResponse + var err error + defer close(result) + response, err = client.ListInvocationStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListInvocationStatusRequest is the request struct for api ListInvocationStatus +type ListInvocationStatusRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + CommandId string `position:"Query" name:"CommandId"` +} + +// ListInvocationStatusResponse is the response struct for api ListInvocationStatus +type ListInvocationStatusResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommandId string `json:"CommandId" xml:"CommandId"` + InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` + InvokeInstances InvokeInstances `json:"InvokeInstances" xml:"InvokeInstances"` +} + +// CreateListInvocationStatusRequest creates a request to invoke ListInvocationStatus API +func CreateListInvocationStatusRequest() (request *ListInvocationStatusRequest) { + request = &ListInvocationStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListInvocationStatus", "", "") + request.Method = requests.GET + return +} + +// CreateListInvocationStatusResponse creates a response to parse from ListInvocationStatus response +func CreateListInvocationStatusResponse() (response *ListInvocationStatusResponse) { + response = &ListInvocationStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_job_templates.go b/services/ehpc/list_job_templates.go index 76ad05005b..78e91f70ee 100644 --- a/services/ehpc/list_job_templates.go +++ b/services/ehpc/list_job_templates.go @@ -91,7 +91,7 @@ func CreateListJobTemplatesRequest() (request *ListJobTemplatesRequest) { request = &ListJobTemplatesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListJobTemplates", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListJobTemplates", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_jobs.go b/services/ehpc/list_jobs.go index 8198ab2062..87a6295d2f 100644 --- a/services/ehpc/list_jobs.go +++ b/services/ehpc/list_jobs.go @@ -82,11 +82,11 @@ type ListJobsRequest struct { // ListJobsResponse is the response struct for api ListJobs type ListJobsResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Jobs Jobs `json:"Jobs" xml:"Jobs"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Jobs JobsInListJobs `json:"Jobs" xml:"Jobs"` } // CreateListJobsRequest creates a request to invoke ListJobs API @@ -94,7 +94,7 @@ func CreateListJobsRequest() (request *ListJobsRequest) { request = &ListJobsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListJobs", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListJobs", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_jobs_with_filters.go b/services/ehpc/list_jobs_with_filters.go new file mode 100644 index 0000000000..c3bb26fef6 --- /dev/null +++ b/services/ehpc/list_jobs_with_filters.go @@ -0,0 +1,117 @@ +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" +) + +// ListJobsWithFilters invokes the ehpc.ListJobsWithFilters API synchronously +func (client *Client) ListJobsWithFilters(request *ListJobsWithFiltersRequest) (response *ListJobsWithFiltersResponse, err error) { + response = CreateListJobsWithFiltersResponse() + err = client.DoAction(request, response) + return +} + +// ListJobsWithFiltersWithChan invokes the ehpc.ListJobsWithFilters API asynchronously +func (client *Client) ListJobsWithFiltersWithChan(request *ListJobsWithFiltersRequest) (<-chan *ListJobsWithFiltersResponse, <-chan error) { + responseChan := make(chan *ListJobsWithFiltersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListJobsWithFilters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListJobsWithFiltersWithCallback invokes the ehpc.ListJobsWithFilters API asynchronously +func (client *Client) ListJobsWithFiltersWithCallback(request *ListJobsWithFiltersRequest, callback func(response *ListJobsWithFiltersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListJobsWithFiltersResponse + var err error + defer close(result) + response, err = client.ListJobsWithFilters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListJobsWithFiltersRequest is the request struct for api ListJobsWithFilters +type ListJobsWithFiltersRequest struct { + *requests.RpcRequest + JobStatus string `position:"Query" name:"JobStatus"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ExecuteOrder string `position:"Query" name:"ExecuteOrder"` + JobName string `position:"Query" name:"JobName"` + SubmitOrder string `position:"Query" name:"SubmitOrder"` + PendOrder string `position:"Query" name:"PendOrder"` + ClusterId string `position:"Query" name:"ClusterId"` + Users *[]string `position:"Query" name:"Users" type:"Repeated"` + CreateTimeEnd string `position:"Query" name:"CreateTimeEnd"` + Async requests.Boolean `position:"Query" name:"Async"` + Nodes *[]string `position:"Query" name:"Nodes" type:"Repeated"` + Queues *[]string `position:"Query" name:"Queues" type:"Repeated"` + CreateTimeStart string `position:"Query" name:"CreateTimeStart"` +} + +// ListJobsWithFiltersResponse is the response struct for api ListJobsWithFilters +type ListJobsWithFiltersResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageSize int64 `json:"PageSize" xml:"PageSize"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + Success bool `json:"Success" xml:"Success"` + Jobs []JobInfo `json:"Jobs" xml:"Jobs"` +} + +// CreateListJobsWithFiltersRequest creates a request to invoke ListJobsWithFilters API +func CreateListJobsWithFiltersRequest() (request *ListJobsWithFiltersRequest) { + request = &ListJobsWithFiltersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListJobsWithFilters", "", "") + request.Method = requests.GET + return +} + +// CreateListJobsWithFiltersResponse creates a response to parse from ListJobsWithFilters response +func CreateListJobsWithFiltersResponse() (response *ListJobsWithFiltersResponse) { + response = &ListJobsWithFiltersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_nodes.go b/services/ehpc/list_nodes.go index f37e1994bb..3f48c6f13d 100644 --- a/services/ehpc/list_nodes.go +++ b/services/ehpc/list_nodes.go @@ -71,11 +71,17 @@ func (client *Client) ListNodesWithCallback(request *ListNodesRequest, callback // ListNodesRequest is the request struct for api ListNodes type ListNodesRequest struct { *requests.RpcRequest - Role string `position:"Query" name:"Role"` - ClusterId string `position:"Query" name:"ClusterId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - HostName string `position:"Query" name:"HostName"` - PageSize requests.Integer `position:"Query" name:"PageSize"` + Role string `position:"Query" name:"Role"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + HostName string `position:"Query" name:"HostName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + HostNamePrefix string `position:"Query" name:"HostNamePrefix"` + ClusterId string `position:"Query" name:"ClusterId"` + HostNameSuffix string `position:"Query" name:"HostNameSuffix"` + Filter string `position:"Query" name:"Filter"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + Sequence string `position:"Query" name:"Sequence"` + SortBy string `position:"Query" name:"SortBy"` } // ListNodesResponse is the response struct for api ListNodes @@ -93,7 +99,7 @@ func CreateListNodesRequest() (request *ListNodesRequest) { request = &ListNodesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListNodes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListNodes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_nodes_by_queue.go b/services/ehpc/list_nodes_by_queue.go new file mode 100644 index 0000000000..13c3ecd6f2 --- /dev/null +++ b/services/ehpc/list_nodes_by_queue.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" +) + +// ListNodesByQueue invokes the ehpc.ListNodesByQueue API synchronously +func (client *Client) ListNodesByQueue(request *ListNodesByQueueRequest) (response *ListNodesByQueueResponse, err error) { + response = CreateListNodesByQueueResponse() + err = client.DoAction(request, response) + return +} + +// ListNodesByQueueWithChan invokes the ehpc.ListNodesByQueue API asynchronously +func (client *Client) ListNodesByQueueWithChan(request *ListNodesByQueueRequest) (<-chan *ListNodesByQueueResponse, <-chan error) { + responseChan := make(chan *ListNodesByQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListNodesByQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListNodesByQueueWithCallback invokes the ehpc.ListNodesByQueue API asynchronously +func (client *Client) ListNodesByQueueWithCallback(request *ListNodesByQueueRequest, callback func(response *ListNodesByQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListNodesByQueueResponse + var err error + defer close(result) + response, err = client.ListNodesByQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListNodesByQueueRequest is the request struct for api ListNodesByQueue +type ListNodesByQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Async requests.Boolean `position:"Query" name:"Async"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListNodesByQueueResponse is the response struct for api ListNodesByQueue +type ListNodesByQueueResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Nodes NodesInListNodesByQueue `json:"Nodes" xml:"Nodes"` +} + +// CreateListNodesByQueueRequest creates a request to invoke ListNodesByQueue API +func CreateListNodesByQueueRequest() (request *ListNodesByQueueRequest) { + request = &ListNodesByQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListNodesByQueue", "", "") + request.Method = requests.GET + return +} + +// CreateListNodesByQueueResponse creates a response to parse from ListNodesByQueue response +func CreateListNodesByQueueResponse() (response *ListNodesByQueueResponse) { + response = &ListNodesByQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_nodes_no_paging.go b/services/ehpc/list_nodes_no_paging.go index 21621b9bdc..6e67a2ef66 100644 --- a/services/ehpc/list_nodes_no_paging.go +++ b/services/ehpc/list_nodes_no_paging.go @@ -73,6 +73,7 @@ type ListNodesNoPagingRequest struct { *requests.RpcRequest Role string `position:"Query" name:"Role"` ClusterId string `position:"Query" name:"ClusterId"` + Sequence string `position:"Query" name:"Sequence"` HostName string `position:"Query" name:"HostName"` OnlyDetached requests.Boolean `position:"Query" name:"OnlyDetached"` } @@ -80,11 +81,8 @@ type ListNodesNoPagingRequest struct { // ListNodesNoPagingResponse is the response struct for api ListNodesNoPaging type ListNodesNoPagingResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Nodes NodesInListNodesNoPaging `json:"Nodes" xml:"Nodes"` + RequestId string `json:"RequestId" xml:"RequestId"` + Nodes NodesInListNodesNoPaging `json:"Nodes" xml:"Nodes"` } // CreateListNodesNoPagingRequest creates a request to invoke ListNodesNoPaging API @@ -92,7 +90,7 @@ func CreateListNodesNoPagingRequest() (request *ListNodesNoPagingRequest) { request = &ListNodesNoPagingRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListNodesNoPaging", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListNodesNoPaging", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_preferred_ecs_types.go b/services/ehpc/list_preferred_ecs_types.go index e040419ddb..e43c24ef91 100644 --- a/services/ehpc/list_preferred_ecs_types.go +++ b/services/ehpc/list_preferred_ecs_types.go @@ -71,8 +71,9 @@ func (client *Client) ListPreferredEcsTypesWithCallback(request *ListPreferredEc // ListPreferredEcsTypesRequest is the request struct for api ListPreferredEcsTypes type ListPreferredEcsTypesRequest struct { *requests.RpcRequest - SpotStrategy string `position:"Query" name:"SpotStrategy"` - ZoneId string `position:"Query" name:"ZoneId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + ZoneId string `position:"Query" name:"ZoneId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` } // ListPreferredEcsTypesResponse is the response struct for api ListPreferredEcsTypes @@ -88,7 +89,7 @@ func CreateListPreferredEcsTypesRequest() (request *ListPreferredEcsTypesRequest request = &ListPreferredEcsTypesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListPreferredEcsTypes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListPreferredEcsTypes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_queues.go b/services/ehpc/list_queues.go new file mode 100644 index 0000000000..cf8a6494e5 --- /dev/null +++ b/services/ehpc/list_queues.go @@ -0,0 +1,101 @@ +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" +) + +// ListQueues invokes the ehpc.ListQueues API synchronously +func (client *Client) ListQueues(request *ListQueuesRequest) (response *ListQueuesResponse, err error) { + response = CreateListQueuesResponse() + err = client.DoAction(request, response) + return +} + +// ListQueuesWithChan invokes the ehpc.ListQueues API asynchronously +func (client *Client) ListQueuesWithChan(request *ListQueuesRequest) (<-chan *ListQueuesResponse, <-chan error) { + responseChan := make(chan *ListQueuesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListQueues(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListQueuesWithCallback invokes the ehpc.ListQueues API asynchronously +func (client *Client) ListQueuesWithCallback(request *ListQueuesRequest, callback func(response *ListQueuesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListQueuesResponse + var err error + defer close(result) + response, err = client.ListQueues(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListQueuesRequest is the request struct for api ListQueues +type ListQueuesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Async requests.Boolean `position:"Query" name:"Async"` +} + +// ListQueuesResponse is the response struct for api ListQueues +type ListQueuesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Queues QueuesInListQueues `json:"Queues" xml:"Queues"` +} + +// CreateListQueuesRequest creates a request to invoke ListQueues API +func CreateListQueuesRequest() (request *ListQueuesRequest) { + request = &ListQueuesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListQueues", "", "") + request.Method = requests.GET + return +} + +// CreateListQueuesResponse creates a response to parse from ListQueues response +func CreateListQueuesResponse() (response *ListQueuesResponse) { + response = &ListQueuesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_regions.go b/services/ehpc/list_regions.go index 18ecbc3623..85af59f3e9 100644 --- a/services/ehpc/list_regions.go +++ b/services/ehpc/list_regions.go @@ -85,7 +85,7 @@ func CreateListRegionsRequest() (request *ListRegionsRequest) { request = &ListRegionsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListRegions", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListRegions", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_security_groups.go b/services/ehpc/list_security_groups.go new file mode 100644 index 0000000000..8b6a194f9f --- /dev/null +++ b/services/ehpc/list_security_groups.go @@ -0,0 +1,101 @@ +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" +) + +// ListSecurityGroups invokes the ehpc.ListSecurityGroups API synchronously +func (client *Client) ListSecurityGroups(request *ListSecurityGroupsRequest) (response *ListSecurityGroupsResponse, err error) { + response = CreateListSecurityGroupsResponse() + err = client.DoAction(request, response) + return +} + +// ListSecurityGroupsWithChan invokes the ehpc.ListSecurityGroups API asynchronously +func (client *Client) ListSecurityGroupsWithChan(request *ListSecurityGroupsRequest) (<-chan *ListSecurityGroupsResponse, <-chan error) { + responseChan := make(chan *ListSecurityGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSecurityGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSecurityGroupsWithCallback invokes the ehpc.ListSecurityGroups API asynchronously +func (client *Client) ListSecurityGroupsWithCallback(request *ListSecurityGroupsRequest, callback func(response *ListSecurityGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSecurityGroupsResponse + var err error + defer close(result) + response, err = client.ListSecurityGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSecurityGroupsRequest is the request struct for api ListSecurityGroups +type ListSecurityGroupsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// ListSecurityGroupsResponse is the response struct for api ListSecurityGroups +type ListSecurityGroupsResponse struct { + *responses.BaseResponse + TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + SecurityGroups SecurityGroups `json:"SecurityGroups" xml:"SecurityGroups"` +} + +// CreateListSecurityGroupsRequest creates a request to invoke ListSecurityGroups API +func CreateListSecurityGroupsRequest() (request *ListSecurityGroupsRequest) { + request = &ListSecurityGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListSecurityGroups", "", "") + request.Method = requests.GET + return +} + +// CreateListSecurityGroupsResponse creates a response to parse from ListSecurityGroups response +func CreateListSecurityGroupsResponse() (response *ListSecurityGroupsResponse) { + response = &ListSecurityGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_softwares.go b/services/ehpc/list_softwares.go index 10165a76db..773a700100 100644 --- a/services/ehpc/list_softwares.go +++ b/services/ehpc/list_softwares.go @@ -71,6 +71,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"` } @@ -86,7 +87,7 @@ func CreateListSoftwaresRequest() (request *ListSoftwaresRequest) { request = &ListSoftwaresRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListSoftwares", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListSoftwares", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_tag_resources.go b/services/ehpc/list_tag_resources.go new file mode 100644 index 0000000000..36420e245e --- /dev/null +++ b/services/ehpc/list_tag_resources.go @@ -0,0 +1,110 @@ +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" +) + +// ListTagResources invokes the ehpc.ListTagResources API synchronously +func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { + response = CreateListTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// ListTagResourcesWithChan invokes the ehpc.ListTagResources API asynchronously +func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { + responseChan := make(chan *ListTagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagResourcesWithCallback invokes the ehpc.ListTagResources API asynchronously +func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagResourcesResponse + var err error + defer close(result) + response, err = client.ListTagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagResourcesRequest is the request struct for api ListTagResources +type ListTagResourcesRequest struct { + *requests.RpcRequest + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceType string `position:"Query" name:"ResourceType"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` +} + +// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest +type ListTagResourcesTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// ListTagResourcesResponse is the response struct for api ListTagResources +type ListTagResourcesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TagResources TagResources `json:"TagResources" xml:"TagResources"` +} + +// CreateListTagResourcesRequest creates a request to invoke ListTagResources API +func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { + request = &ListTagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListTagResources", "", "") + request.Method = requests.POST + return +} + +// CreateListTagResourcesResponse creates a response to parse from ListTagResources response +func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { + response = &ListTagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_tasks.go b/services/ehpc/list_tasks.go new file mode 100644 index 0000000000..34d8ed7194 --- /dev/null +++ b/services/ehpc/list_tasks.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" +) + +// ListTasks invokes the ehpc.ListTasks API synchronously +func (client *Client) ListTasks(request *ListTasksRequest) (response *ListTasksResponse, err error) { + response = CreateListTasksResponse() + err = client.DoAction(request, response) + return +} + +// ListTasksWithChan invokes the ehpc.ListTasks API asynchronously +func (client *Client) ListTasksWithChan(request *ListTasksRequest) (<-chan *ListTasksResponse, <-chan error) { + responseChan := make(chan *ListTasksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTasks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTasksWithCallback invokes the ehpc.ListTasks API asynchronously +func (client *Client) ListTasksWithCallback(request *ListTasksRequest, callback func(response *ListTasksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTasksResponse + var err error + defer close(result) + response, err = client.ListTasks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTasksRequest is the request struct for api ListTasks +type ListTasksRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Archived requests.Boolean `position:"Query" name:"Archived"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + TaskId string `position:"Query" name:"TaskId"` +} + +// ListTasksResponse is the response struct for api ListTasks +type ListTasksResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Tasks []TaskInfo `json:"Tasks" xml:"Tasks"` +} + +// CreateListTasksRequest creates a request to invoke ListTasks API +func CreateListTasksRequest() (request *ListTasksRequest) { + request = &ListTasksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListTasks", "", "") + request.Method = requests.GET + return +} + +// CreateListTasksResponse creates a response to parse from ListTasks response +func CreateListTasksResponse() (response *ListTasksResponse) { + response = &ListTasksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_upgrade_clients.go b/services/ehpc/list_upgrade_clients.go new file mode 100644 index 0000000000..28e2ea5c23 --- /dev/null +++ b/services/ehpc/list_upgrade_clients.go @@ -0,0 +1,102 @@ +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" +) + +// ListUpgradeClients invokes the ehpc.ListUpgradeClients API synchronously +func (client *Client) ListUpgradeClients(request *ListUpgradeClientsRequest) (response *ListUpgradeClientsResponse, err error) { + response = CreateListUpgradeClientsResponse() + err = client.DoAction(request, response) + return +} + +// ListUpgradeClientsWithChan invokes the ehpc.ListUpgradeClients API asynchronously +func (client *Client) ListUpgradeClientsWithChan(request *ListUpgradeClientsRequest) (<-chan *ListUpgradeClientsResponse, <-chan error) { + responseChan := make(chan *ListUpgradeClientsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUpgradeClients(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUpgradeClientsWithCallback invokes the ehpc.ListUpgradeClients API asynchronously +func (client *Client) ListUpgradeClientsWithCallback(request *ListUpgradeClientsRequest, callback func(response *ListUpgradeClientsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUpgradeClientsResponse + var err error + defer close(result) + response, err = client.ListUpgradeClients(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUpgradeClientsRequest is the request struct for api ListUpgradeClients +type ListUpgradeClientsRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// ListUpgradeClientsResponse is the response struct for api ListUpgradeClients +type ListUpgradeClientsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LatestVersion string `json:"LatestVersion" xml:"LatestVersion"` + CurrentVersion string `json:"CurrentVersion" xml:"CurrentVersion"` + ClientRecords []ClientRecordsItem `json:"ClientRecords" xml:"ClientRecords"` +} + +// CreateListUpgradeClientsRequest creates a request to invoke ListUpgradeClients API +func CreateListUpgradeClientsRequest() (request *ListUpgradeClientsRequest) { + request = &ListUpgradeClientsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListUpgradeClients", "", "") + request.Method = requests.GET + return +} + +// CreateListUpgradeClientsResponse creates a response to parse from ListUpgradeClients response +func CreateListUpgradeClientsResponse() (response *ListUpgradeClientsResponse) { + response = &ListUpgradeClientsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_users.go b/services/ehpc/list_users.go index 55458bb36b..adc783aa18 100644 --- a/services/ehpc/list_users.go +++ b/services/ehpc/list_users.go @@ -79,11 +79,11 @@ type ListUsersRequest struct { // ListUsersResponse is the response struct for api ListUsers type ListUsersResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Users Users `json:"Users" xml:"Users"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Users UsersInListUsers `json:"Users" xml:"Users"` } // CreateListUsersRequest creates a request to invoke ListUsers API @@ -91,7 +91,7 @@ func CreateListUsersRequest() (request *ListUsersRequest) { request = &ListUsersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListUsers", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListUsers", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/list_users_async.go b/services/ehpc/list_users_async.go new file mode 100644 index 0000000000..2c779d1a48 --- /dev/null +++ b/services/ehpc/list_users_async.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" +) + +// ListUsersAsync invokes the ehpc.ListUsersAsync API synchronously +func (client *Client) ListUsersAsync(request *ListUsersAsyncRequest) (response *ListUsersAsyncResponse, err error) { + response = CreateListUsersAsyncResponse() + err = client.DoAction(request, response) + return +} + +// ListUsersAsyncWithChan invokes the ehpc.ListUsersAsync API asynchronously +func (client *Client) ListUsersAsyncWithChan(request *ListUsersAsyncRequest) (<-chan *ListUsersAsyncResponse, <-chan error) { + responseChan := make(chan *ListUsersAsyncResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListUsersAsync(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListUsersAsyncWithCallback invokes the ehpc.ListUsersAsync API asynchronously +func (client *Client) ListUsersAsyncWithCallback(request *ListUsersAsyncRequest, callback func(response *ListUsersAsyncResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListUsersAsyncResponse + var err error + defer close(result) + response, err = client.ListUsersAsync(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListUsersAsyncRequest is the request struct for api ListUsersAsync +type ListUsersAsyncRequest struct { + *requests.RpcRequest + AsyncId string `position:"Query" name:"AsyncId"` + ClusterId string `position:"Query" name:"ClusterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` +} + +// ListUsersAsyncResponse is the response struct for api ListUsersAsync +type ListUsersAsyncResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + AsyncId string `json:"AsyncId" xml:"AsyncId"` + AsyncStatus string `json:"AsyncStatus" xml:"AsyncStatus"` + Users UsersInListUsersAsync `json:"Users" xml:"Users"` +} + +// CreateListUsersAsyncRequest creates a request to invoke ListUsersAsync API +func CreateListUsersAsyncRequest() (request *ListUsersAsyncRequest) { + request = &ListUsersAsyncRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ListUsersAsync", "", "") + request.Method = requests.GET + return +} + +// CreateListUsersAsyncResponse creates a response to parse from ListUsersAsync response +func CreateListUsersAsyncResponse() (response *ListUsersAsyncResponse) { + response = &ListUsersAsyncResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/list_volumes.go b/services/ehpc/list_volumes.go index 26c6939bd8..f391a97f91 100644 --- a/services/ehpc/list_volumes.go +++ b/services/ehpc/list_volumes.go @@ -78,11 +78,11 @@ type ListVolumesRequest struct { // ListVolumesResponse is the response struct for api ListVolumes type ListVolumesResponse struct { *responses.BaseResponse - PageSize int `json:"PageSize" xml:"PageSize"` - RequestId string `json:"RequestId" xml:"RequestId"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - Volumes Volumes `json:"Volumes" xml:"Volumes"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Volumes VolumesInListVolumes `json:"Volumes" xml:"Volumes"` } // CreateListVolumesRequest creates a request to invoke ListVolumes API @@ -90,7 +90,7 @@ func CreateListVolumesRequest() (request *ListVolumesRequest) { request = &ListVolumesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ListVolumes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ListVolumes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/modify_cluster_attributes.go b/services/ehpc/modify_cluster_attributes.go index 54c767aea0..748db23379 100644 --- a/services/ehpc/modify_cluster_attributes.go +++ b/services/ehpc/modify_cluster_attributes.go @@ -71,9 +71,11 @@ func (client *Client) ModifyClusterAttributesWithCallback(request *ModifyCluster // ModifyClusterAttributesRequest is the request struct for api ModifyClusterAttributes type ModifyClusterAttributesRequest struct { *requests.RpcRequest - Description string `position:"Query" name:"Description"` - ClusterId string `position:"Query" name:"ClusterId"` - Name string `position:"Query" name:"Name"` + ImageId string `position:"Query" name:"ImageId"` + Description string `position:"Query" name:"Description"` + ClusterId string `position:"Query" name:"ClusterId"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + Name string `position:"Query" name:"Name"` } // ModifyClusterAttributesResponse is the response struct for api ModifyClusterAttributes @@ -87,7 +89,7 @@ func CreateModifyClusterAttributesRequest() (request *ModifyClusterAttributesReq request = &ModifyClusterAttributesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ModifyClusterAttributes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyClusterAttributes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/modify_container_app_attributes.go b/services/ehpc/modify_container_app_attributes.go new file mode 100644 index 0000000000..a4ed18fc2e --- /dev/null +++ b/services/ehpc/modify_container_app_attributes.go @@ -0,0 +1,100 @@ +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" +) + +// ModifyContainerAppAttributes invokes the ehpc.ModifyContainerAppAttributes API synchronously +func (client *Client) ModifyContainerAppAttributes(request *ModifyContainerAppAttributesRequest) (response *ModifyContainerAppAttributesResponse, err error) { + response = CreateModifyContainerAppAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyContainerAppAttributesWithChan invokes the ehpc.ModifyContainerAppAttributes API asynchronously +func (client *Client) ModifyContainerAppAttributesWithChan(request *ModifyContainerAppAttributesRequest) (<-chan *ModifyContainerAppAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyContainerAppAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyContainerAppAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyContainerAppAttributesWithCallback invokes the ehpc.ModifyContainerAppAttributes API asynchronously +func (client *Client) ModifyContainerAppAttributesWithCallback(request *ModifyContainerAppAttributesRequest, callback func(response *ModifyContainerAppAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyContainerAppAttributesResponse + var err error + defer close(result) + response, err = client.ModifyContainerAppAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyContainerAppAttributesRequest is the request struct for api ModifyContainerAppAttributes +type ModifyContainerAppAttributesRequest struct { + *requests.RpcRequest + Description string `position:"Query" name:"Description"` + ContainerId string `position:"Query" name:"ContainerId"` +} + +// ModifyContainerAppAttributesResponse is the response struct for api ModifyContainerAppAttributes +type ModifyContainerAppAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyContainerAppAttributesRequest creates a request to invoke ModifyContainerAppAttributes API +func CreateModifyContainerAppAttributesRequest() (request *ModifyContainerAppAttributesRequest) { + request = &ModifyContainerAppAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyContainerAppAttributes", "", "") + request.Method = requests.GET + return +} + +// CreateModifyContainerAppAttributesResponse creates a response to parse from ModifyContainerAppAttributes response +func CreateModifyContainerAppAttributesResponse() (response *ModifyContainerAppAttributesResponse) { + response = &ModifyContainerAppAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/modify_image_gateway_config.go b/services/ehpc/modify_image_gateway_config.go new file mode 100644 index 0000000000..7a628913f2 --- /dev/null +++ b/services/ehpc/modify_image_gateway_config.go @@ -0,0 +1,114 @@ +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" +) + +// ModifyImageGatewayConfig invokes the ehpc.ModifyImageGatewayConfig API synchronously +func (client *Client) ModifyImageGatewayConfig(request *ModifyImageGatewayConfigRequest) (response *ModifyImageGatewayConfigResponse, err error) { + response = CreateModifyImageGatewayConfigResponse() + err = client.DoAction(request, response) + return +} + +// ModifyImageGatewayConfigWithChan invokes the ehpc.ModifyImageGatewayConfig API asynchronously +func (client *Client) ModifyImageGatewayConfigWithChan(request *ModifyImageGatewayConfigRequest) (<-chan *ModifyImageGatewayConfigResponse, <-chan error) { + responseChan := make(chan *ModifyImageGatewayConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyImageGatewayConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyImageGatewayConfigWithCallback invokes the ehpc.ModifyImageGatewayConfig API asynchronously +func (client *Client) ModifyImageGatewayConfigWithCallback(request *ModifyImageGatewayConfigRequest, callback func(response *ModifyImageGatewayConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyImageGatewayConfigResponse + var err error + defer close(result) + response, err = client.ModifyImageGatewayConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyImageGatewayConfigRequest is the request struct for api ModifyImageGatewayConfig +type ModifyImageGatewayConfigRequest struct { + *requests.RpcRequest + Repo *[]ModifyImageGatewayConfigRepo `position:"Query" name:"Repo" type:"Repeated"` + DBServerInfo string `position:"Query" name:"DBServerInfo"` + ClusterId string `position:"Query" name:"ClusterId"` + DefaultRepoLocation string `position:"Query" name:"DefaultRepoLocation"` + DBPassword string `position:"Query" name:"DBPassword"` + DBType string `position:"Query" name:"DBType"` + DBUsername string `position:"Query" name:"DBUsername"` + PullUpdateTimeout requests.Integer `position:"Query" name:"PullUpdateTimeout"` + ImageExpirationTimeout string `position:"Query" name:"ImageExpirationTimeout"` +} + +// ModifyImageGatewayConfigRepo is a repeated param struct in ModifyImageGatewayConfigRequest +type ModifyImageGatewayConfigRepo struct { + Auth string `name:"Auth"` + Location string `name:"Location"` + URL string `name:"URL"` +} + +// ModifyImageGatewayConfigResponse is the response struct for api ModifyImageGatewayConfig +type ModifyImageGatewayConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyImageGatewayConfigRequest creates a request to invoke ModifyImageGatewayConfig API +func CreateModifyImageGatewayConfigRequest() (request *ModifyImageGatewayConfigRequest) { + request = &ModifyImageGatewayConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyImageGatewayConfig", "", "") + request.Method = requests.GET + return +} + +// CreateModifyImageGatewayConfigResponse creates a response to parse from ModifyImageGatewayConfig response +func CreateModifyImageGatewayConfigResponse() (response *ModifyImageGatewayConfigResponse) { + response = &ModifyImageGatewayConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/modify_user_groups.go b/services/ehpc/modify_user_groups.go index 3a1c64499b..92b04bb393 100644 --- a/services/ehpc/modify_user_groups.go +++ b/services/ehpc/modify_user_groups.go @@ -92,7 +92,7 @@ func CreateModifyUserGroupsRequest() (request *ModifyUserGroupsRequest) { request = &ModifyUserGroupsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ModifyUserGroups", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyUserGroups", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/modify_user_passwords.go b/services/ehpc/modify_user_passwords.go index cc8e43e015..dcbbe8544c 100644 --- a/services/ehpc/modify_user_passwords.go +++ b/services/ehpc/modify_user_passwords.go @@ -92,7 +92,7 @@ func CreateModifyUserPasswordsRequest() (request *ModifyUserPasswordsRequest) { request = &ModifyUserPasswordsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ModifyUserPasswords", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyUserPasswords", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/modify_visual_service_passwd.go b/services/ehpc/modify_visual_service_passwd.go new file mode 100644 index 0000000000..517db666e6 --- /dev/null +++ b/services/ehpc/modify_visual_service_passwd.go @@ -0,0 +1,103 @@ +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" +) + +// ModifyVisualServicePasswd invokes the ehpc.ModifyVisualServicePasswd API synchronously +func (client *Client) ModifyVisualServicePasswd(request *ModifyVisualServicePasswdRequest) (response *ModifyVisualServicePasswdResponse, err error) { + response = CreateModifyVisualServicePasswdResponse() + err = client.DoAction(request, response) + return +} + +// ModifyVisualServicePasswdWithChan invokes the ehpc.ModifyVisualServicePasswd API asynchronously +func (client *Client) ModifyVisualServicePasswdWithChan(request *ModifyVisualServicePasswdRequest) (<-chan *ModifyVisualServicePasswdResponse, <-chan error) { + responseChan := make(chan *ModifyVisualServicePasswdResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyVisualServicePasswd(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyVisualServicePasswdWithCallback invokes the ehpc.ModifyVisualServicePasswd API asynchronously +func (client *Client) ModifyVisualServicePasswdWithCallback(request *ModifyVisualServicePasswdRequest, callback func(response *ModifyVisualServicePasswdResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyVisualServicePasswdResponse + var err error + defer close(result) + response, err = client.ModifyVisualServicePasswd(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyVisualServicePasswdRequest is the request struct for api ModifyVisualServicePasswd +type ModifyVisualServicePasswdRequest struct { + *requests.RpcRequest + RunasUserPassword string `position:"Query" name:"RunasUserPassword"` + RunasUser string `position:"Query" name:"RunasUser"` + ClusterId string `position:"Query" name:"ClusterId"` + Passwd string `position:"Query" name:"Passwd"` +} + +// ModifyVisualServicePasswdResponse is the response struct for api ModifyVisualServicePasswd +type ModifyVisualServicePasswdResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyVisualServicePasswdRequest creates a request to invoke ModifyVisualServicePasswd API +func CreateModifyVisualServicePasswdRequest() (request *ModifyVisualServicePasswdRequest) { + request = &ModifyVisualServicePasswdRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "ModifyVisualServicePasswd", "", "") + request.Method = requests.GET + return +} + +// CreateModifyVisualServicePasswdResponse creates a response to parse from ModifyVisualServicePasswd response +func CreateModifyVisualServicePasswdResponse() (response *ModifyVisualServicePasswdResponse) { + response = &ModifyVisualServicePasswdResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/mount_nfs.go b/services/ehpc/mount_nfs.go new file mode 100644 index 0000000000..426c93a6e5 --- /dev/null +++ b/services/ehpc/mount_nfs.go @@ -0,0 +1,104 @@ +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" +) + +// MountNFS invokes the ehpc.MountNFS API synchronously +func (client *Client) MountNFS(request *MountNFSRequest) (response *MountNFSResponse, err error) { + response = CreateMountNFSResponse() + err = client.DoAction(request, response) + return +} + +// MountNFSWithChan invokes the ehpc.MountNFS API asynchronously +func (client *Client) MountNFSWithChan(request *MountNFSRequest) (<-chan *MountNFSResponse, <-chan error) { + responseChan := make(chan *MountNFSResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MountNFS(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MountNFSWithCallback invokes the ehpc.MountNFS API asynchronously +func (client *Client) MountNFSWithCallback(request *MountNFSRequest, callback func(response *MountNFSResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MountNFSResponse + var err error + defer close(result) + response, err = client.MountNFS(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MountNFSRequest is the request struct for api MountNFS +type MountNFSRequest struct { + *requests.RpcRequest + MountDir string `position:"Query" name:"MountDir"` + InstanceId string `position:"Query" name:"InstanceId"` + RemoteDir string `position:"Query" name:"RemoteDir"` + NfsDir string `position:"Query" name:"NfsDir"` + ProtocolType string `position:"Query" name:"ProtocolType"` +} + +// MountNFSResponse is the response struct for api MountNFS +type MountNFSResponse struct { + *responses.BaseResponse + InvokeId string `json:"InvokeId" xml:"InvokeId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMountNFSRequest creates a request to invoke MountNFS API +func CreateMountNFSRequest() (request *MountNFSRequest) { + request = &MountNFSRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "MountNFS", "", "") + request.Method = requests.GET + return +} + +// CreateMountNFSResponse creates a response to parse from MountNFS response +func CreateMountNFSResponse() (response *MountNFSResponse) { + response = &MountNFSResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/pull_image.go b/services/ehpc/pull_image.go new file mode 100644 index 0000000000..c308195fc4 --- /dev/null +++ b/services/ehpc/pull_image.go @@ -0,0 +1,102 @@ +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" +) + +// PullImage invokes the ehpc.PullImage API synchronously +func (client *Client) PullImage(request *PullImageRequest) (response *PullImageResponse, err error) { + response = CreatePullImageResponse() + err = client.DoAction(request, response) + return +} + +// PullImageWithChan invokes the ehpc.PullImage API asynchronously +func (client *Client) PullImageWithChan(request *PullImageRequest) (<-chan *PullImageResponse, <-chan error) { + responseChan := make(chan *PullImageResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PullImage(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PullImageWithCallback invokes the ehpc.PullImage API asynchronously +func (client *Client) PullImageWithCallback(request *PullImageRequest, callback func(response *PullImageResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PullImageResponse + var err error + defer close(result) + response, err = client.PullImage(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PullImageRequest is the request struct for api PullImage +type PullImageRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Repository string `position:"Query" name:"Repository"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageTag string `position:"Query" name:"ImageTag"` +} + +// PullImageResponse is the response struct for api PullImage +type PullImageResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreatePullImageRequest creates a request to invoke PullImage API +func CreatePullImageRequest() (request *PullImageRequest) { + request = &PullImageRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "PullImage", "", "") + request.Method = requests.GET + return +} + +// CreatePullImageResponse creates a response to parse from PullImage response +func CreatePullImageResponse() (response *PullImageResponse) { + response = &PullImageResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/query_service_pack_and_price.go b/services/ehpc/query_service_pack_and_price.go new file mode 100644 index 0000000000..f7c67fc20b --- /dev/null +++ b/services/ehpc/query_service_pack_and_price.go @@ -0,0 +1,106 @@ +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" +) + +// QueryServicePackAndPrice invokes the ehpc.QueryServicePackAndPrice API synchronously +func (client *Client) QueryServicePackAndPrice(request *QueryServicePackAndPriceRequest) (response *QueryServicePackAndPriceResponse, err error) { + response = CreateQueryServicePackAndPriceResponse() + err = client.DoAction(request, response) + return +} + +// QueryServicePackAndPriceWithChan invokes the ehpc.QueryServicePackAndPrice API asynchronously +func (client *Client) QueryServicePackAndPriceWithChan(request *QueryServicePackAndPriceRequest) (<-chan *QueryServicePackAndPriceResponse, <-chan error) { + responseChan := make(chan *QueryServicePackAndPriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.QueryServicePackAndPrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// QueryServicePackAndPriceWithCallback invokes the ehpc.QueryServicePackAndPrice API asynchronously +func (client *Client) QueryServicePackAndPriceWithCallback(request *QueryServicePackAndPriceRequest, callback func(response *QueryServicePackAndPriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *QueryServicePackAndPriceResponse + var err error + defer close(result) + response, err = client.QueryServicePackAndPrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// QueryServicePackAndPriceRequest is the request struct for api QueryServicePackAndPrice +type QueryServicePackAndPriceRequest struct { + *requests.RpcRequest +} + +// QueryServicePackAndPriceResponse is the response struct for api QueryServicePackAndPrice +type QueryServicePackAndPriceResponse struct { + *responses.BaseResponse + OriginalAmount int `json:"OriginalAmount" xml:"OriginalAmount"` + RequestId string `json:"RequestId" xml:"RequestId"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + ChargeAmount int `json:"ChargeAmount" xml:"ChargeAmount"` + Currency string `json:"Currency" xml:"Currency"` + RegionId string `json:"RegionId" xml:"RegionId"` + ServicePack ServicePack `json:"ServicePack" xml:"ServicePack"` +} + +// CreateQueryServicePackAndPriceRequest creates a request to invoke QueryServicePackAndPrice API +func CreateQueryServicePackAndPriceRequest() (request *QueryServicePackAndPriceRequest) { + request = &QueryServicePackAndPriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "QueryServicePackAndPrice", "", "") + request.Method = requests.GET + return +} + +// CreateQueryServicePackAndPriceResponse creates a response to parse from QueryServicePackAndPrice response +func CreateQueryServicePackAndPriceResponse() (response *QueryServicePackAndPriceResponse) { + response = &QueryServicePackAndPriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/recover_cluster.go b/services/ehpc/recover_cluster.go new file mode 100644 index 0000000000..ef970af52f --- /dev/null +++ b/services/ehpc/recover_cluster.go @@ -0,0 +1,106 @@ +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" +) + +// RecoverCluster invokes the ehpc.RecoverCluster API synchronously +func (client *Client) RecoverCluster(request *RecoverClusterRequest) (response *RecoverClusterResponse, err error) { + response = CreateRecoverClusterResponse() + err = client.DoAction(request, response) + return +} + +// RecoverClusterWithChan invokes the ehpc.RecoverCluster API asynchronously +func (client *Client) RecoverClusterWithChan(request *RecoverClusterRequest) (<-chan *RecoverClusterResponse, <-chan error) { + responseChan := make(chan *RecoverClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RecoverCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RecoverClusterWithCallback invokes the ehpc.RecoverCluster API asynchronously +func (client *Client) RecoverClusterWithCallback(request *RecoverClusterRequest, callback func(response *RecoverClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RecoverClusterResponse + var err error + defer close(result) + response, err = client.RecoverCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RecoverClusterRequest is the request struct for api RecoverCluster +type RecoverClusterRequest struct { + *requests.RpcRequest + ImageId string `position:"Query" name:"ImageId"` + OsTag string `position:"Query" name:"OsTag"` + ClientVersion string `position:"Query" name:"ClientVersion"` + AccountType string `position:"Query" name:"AccountType"` + ClusterId string `position:"Query" name:"ClusterId"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + SchedulerType string `position:"Query" name:"SchedulerType"` +} + +// RecoverClusterResponse is the response struct for api RecoverCluster +type RecoverClusterResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRecoverClusterRequest creates a request to invoke RecoverCluster API +func CreateRecoverClusterRequest() (request *RecoverClusterRequest) { + request = &RecoverClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "RecoverCluster", "", "") + request.Method = requests.GET + return +} + +// CreateRecoverClusterResponse creates a response to parse from RecoverCluster response +func CreateRecoverClusterResponse() (response *RecoverClusterResponse) { + response = &RecoverClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/rerun_jobs.go b/services/ehpc/rerun_jobs.go index 083ef0fcb7..4a7f4f14b8 100644 --- a/services/ehpc/rerun_jobs.go +++ b/services/ehpc/rerun_jobs.go @@ -86,7 +86,7 @@ func CreateRerunJobsRequest() (request *RerunJobsRequest) { request = &RerunJobsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "RerunJobs", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "RerunJobs", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/reset_nodes.go b/services/ehpc/reset_nodes.go index 978c31e321..70f8171e99 100644 --- a/services/ehpc/reset_nodes.go +++ b/services/ehpc/reset_nodes.go @@ -83,6 +83,7 @@ type ResetNodesInstance struct { // ResetNodesResponse is the response struct for api ResetNodes type ResetNodesResponse struct { *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` RequestId string `json:"RequestId" xml:"RequestId"` } @@ -91,7 +92,7 @@ func CreateResetNodesRequest() (request *ResetNodesRequest) { request = &ResetNodesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "ResetNodes", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "ResetNodes", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/run_cloud_metric_profiling.go b/services/ehpc/run_cloud_metric_profiling.go new file mode 100644 index 0000000000..0a3b84f913 --- /dev/null +++ b/services/ehpc/run_cloud_metric_profiling.go @@ -0,0 +1,103 @@ +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" +) + +// RunCloudMetricProfiling invokes the ehpc.RunCloudMetricProfiling API synchronously +func (client *Client) RunCloudMetricProfiling(request *RunCloudMetricProfilingRequest) (response *RunCloudMetricProfilingResponse, err error) { + response = CreateRunCloudMetricProfilingResponse() + err = client.DoAction(request, response) + return +} + +// RunCloudMetricProfilingWithChan invokes the ehpc.RunCloudMetricProfiling API asynchronously +func (client *Client) RunCloudMetricProfilingWithChan(request *RunCloudMetricProfilingRequest) (<-chan *RunCloudMetricProfilingResponse, <-chan error) { + responseChan := make(chan *RunCloudMetricProfilingResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RunCloudMetricProfiling(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RunCloudMetricProfilingWithCallback invokes the ehpc.RunCloudMetricProfiling API asynchronously +func (client *Client) RunCloudMetricProfilingWithCallback(request *RunCloudMetricProfilingRequest, callback func(response *RunCloudMetricProfilingResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RunCloudMetricProfilingResponse + var err error + defer close(result) + response, err = client.RunCloudMetricProfiling(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RunCloudMetricProfilingRequest is the request struct for api RunCloudMetricProfiling +type RunCloudMetricProfilingRequest struct { + *requests.RpcRequest + Freq requests.Integer `position:"Query" name:"Freq"` + ClusterId string `position:"Query" name:"ClusterId"` + Duration requests.Integer `position:"Query" name:"Duration"` + HostName string `position:"Query" name:"HostName"` + ProcessId requests.Integer `position:"Query" name:"ProcessId"` +} + +// RunCloudMetricProfilingResponse is the response struct for api RunCloudMetricProfiling +type RunCloudMetricProfilingResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRunCloudMetricProfilingRequest creates a request to invoke RunCloudMetricProfiling API +func CreateRunCloudMetricProfilingRequest() (request *RunCloudMetricProfilingRequest) { + request = &RunCloudMetricProfilingRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "RunCloudMetricProfiling", "", "") + request.Method = requests.GET + return +} + +// CreateRunCloudMetricProfilingResponse creates a response to parse from RunCloudMetricProfiling response +func CreateRunCloudMetricProfilingResponse() (response *RunCloudMetricProfilingResponse) { + response = &RunCloudMetricProfilingResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_auto_scale_config.go b/services/ehpc/set_auto_scale_config.go index 1cc8ff4844..0351f5acda 100644 --- a/services/ehpc/set_auto_scale_config.go +++ b/services/ehpc/set_auto_scale_config.go @@ -71,17 +71,62 @@ func (client *Client) SetAutoScaleConfigWithCallback(request *SetAutoScaleConfig // SetAutoScaleConfigRequest is the request struct for api SetAutoScaleConfig type SetAutoScaleConfigRequest struct { *requests.RpcRequest - ExcludeNodes string `position:"Query" name:"ExcludeNodes"` - ExtraNodesGrowRatio requests.Integer `position:"Query" name:"ExtraNodesGrowRatio"` - ShrinkIdleTimes requests.Integer `position:"Query" name:"ShrinkIdleTimes"` - GrowTimeoutInMinutes requests.Integer `position:"Query" name:"GrowTimeoutInMinutes"` - ClusterId string `position:"Query" name:"ClusterId"` - EnableAutoGrow requests.Boolean `position:"Query" name:"EnableAutoGrow"` - EnableAutoShrink requests.Boolean `position:"Query" name:"EnableAutoShrink"` - MaxNodesInCluster requests.Integer `position:"Query" name:"MaxNodesInCluster"` - ShrinkIntervalInMinutes requests.Integer `position:"Query" name:"ShrinkIntervalInMinutes"` - GrowIntervalInMinutes requests.Integer `position:"Query" name:"GrowIntervalInMinutes"` - GrowRatio requests.Integer `position:"Query" name:"GrowRatio"` + 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"` + ShrinkIdleTimes requests.Integer `position:"Query" name:"ShrinkIdleTimes"` + GrowTimeoutInMinutes requests.Integer `position:"Query" name:"GrowTimeoutInMinutes"` + ClusterId string `position:"Query" name:"ClusterId"` + EnableAutoGrow requests.Boolean `position:"Query" name:"EnableAutoGrow"` + EnableAutoShrink requests.Boolean `position:"Query" name:"EnableAutoShrink"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + MaxNodesInCluster requests.Integer `position:"Query" name:"MaxNodesInCluster"` + ShrinkIntervalInMinutes requests.Integer `position:"Query" name:"ShrinkIntervalInMinutes"` + Queues *[]SetAutoScaleConfigQueues `position:"Query" name:"Queues" type:"Repeated"` + GrowIntervalInMinutes requests.Integer `position:"Query" name:"GrowIntervalInMinutes"` + GrowRatio requests.Integer `position:"Query" name:"GrowRatio"` +} + +// SetAutoScaleConfigQueues is a repeated param struct in SetAutoScaleConfigRequest +type SetAutoScaleConfigQueues struct { + QueueName string `name:"QueueName"` + SystemDiskLevel string `name:"SystemDiskLevel"` + InstanceTypes *[]SetAutoScaleConfigQueuesInstanceTypes `name:"InstanceTypes" type:"Repeated"` + EnableAutoGrow string `name:"EnableAutoGrow"` + HostNameSuffix string `name:"HostNameSuffix"` + SpotPriceLimit string `name:"SpotPriceLimit"` + EnableAutoShrink string `name:"EnableAutoShrink"` + SpotStrategy string `name:"SpotStrategy"` + DataDisks *[]SetAutoScaleConfigQueuesDataDisks `name:"DataDisks" type:"Repeated"` + MinNodesInQueue string `name:"MinNodesInQueue"` + MaxNodesPerCycle string `name:"MaxNodesPerCycle"` + SystemDiskCategory string `name:"SystemDiskCategory"` + MaxNodesInQueue string `name:"MaxNodesInQueue"` + SystemDiskSize string `name:"SystemDiskSize"` + QueueImageId string `name:"QueueImageId"` + InstanceType string `name:"InstanceType"` + HostNamePrefix string `name:"HostNamePrefix"` + MinNodesPerCycle string `name:"MinNodesPerCycle"` +} + +// SetAutoScaleConfigQueuesInstanceTypes is a repeated param struct in SetAutoScaleConfigRequest +type SetAutoScaleConfigQueuesInstanceTypes struct { + VSwitchId string `name:"VSwitchId"` + SpotStrategy string `name:"SpotStrategy"` + ZoneId string `name:"ZoneId"` + InstanceType string `name:"InstanceType"` + SpotPriceLimit string `name:"SpotPriceLimit"` +} + +// SetAutoScaleConfigQueuesDataDisks is a repeated param struct in SetAutoScaleConfigRequest +type SetAutoScaleConfigQueuesDataDisks struct { + DataDiskDeleteWithInstance string `name:"DataDiskDeleteWithInstance"` + DataDiskEncrypted string `name:"DataDiskEncrypted"` + DataDiskKMSKeyId string `name:"DataDiskKMSKeyId"` + DataDiskSize string `name:"DataDiskSize"` + DataDiskCategory string `name:"DataDiskCategory"` + DataDiskPerformanceLevel string `name:"DataDiskPerformanceLevel"` } // SetAutoScaleConfigResponse is the response struct for api SetAutoScaleConfig @@ -95,7 +140,7 @@ func CreateSetAutoScaleConfigRequest() (request *SetAutoScaleConfigRequest) { request = &SetAutoScaleConfigRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "SetAutoScaleConfig", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "SetAutoScaleConfig", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/set_gws_cluster_policy.go b/services/ehpc/set_gws_cluster_policy.go new file mode 100644 index 0000000000..a4a22920ec --- /dev/null +++ b/services/ehpc/set_gws_cluster_policy.go @@ -0,0 +1,105 @@ +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 +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 +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 +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"` + AsyncMode requests.Boolean `position:"Query" name:"AsyncMode"` + UdpPort string `position:"Query" name:"UdpPort"` +} + +// 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", "", "") + request.Method = requests.POST + return +} + +// CreateSetGWSClusterPolicyResponse creates a response to parse from SetGWSClusterPolicy response +func CreateSetGWSClusterPolicyResponse() (response *SetGWSClusterPolicyResponse) { + response = &SetGWSClusterPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_gws_instance_name.go b/services/ehpc/set_gws_instance_name.go new file mode 100644 index 0000000000..df2424109d --- /dev/null +++ b/services/ehpc/set_gws_instance_name.go @@ -0,0 +1,100 @@ +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" +) + +// SetGWSInstanceName invokes the ehpc.SetGWSInstanceName API synchronously +func (client *Client) SetGWSInstanceName(request *SetGWSInstanceNameRequest) (response *SetGWSInstanceNameResponse, err error) { + response = CreateSetGWSInstanceNameResponse() + err = client.DoAction(request, response) + return +} + +// SetGWSInstanceNameWithChan invokes the ehpc.SetGWSInstanceName API asynchronously +func (client *Client) SetGWSInstanceNameWithChan(request *SetGWSInstanceNameRequest) (<-chan *SetGWSInstanceNameResponse, <-chan error) { + responseChan := make(chan *SetGWSInstanceNameResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetGWSInstanceName(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetGWSInstanceNameWithCallback invokes the ehpc.SetGWSInstanceName API asynchronously +func (client *Client) SetGWSInstanceNameWithCallback(request *SetGWSInstanceNameRequest, callback func(response *SetGWSInstanceNameResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetGWSInstanceNameResponse + var err error + defer close(result) + response, err = client.SetGWSInstanceName(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetGWSInstanceNameRequest is the request struct for api SetGWSInstanceName +type SetGWSInstanceNameRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` +} + +// SetGWSInstanceNameResponse is the response struct for api SetGWSInstanceName +type SetGWSInstanceNameResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetGWSInstanceNameRequest creates a request to invoke SetGWSInstanceName API +func CreateSetGWSInstanceNameRequest() (request *SetGWSInstanceNameRequest) { + request = &SetGWSInstanceNameRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetGWSInstanceName", "", "") + request.Method = requests.GET + return +} + +// CreateSetGWSInstanceNameResponse creates a response to parse from SetGWSInstanceName response +func CreateSetGWSInstanceNameResponse() (response *SetGWSInstanceNameResponse) { + response = &SetGWSInstanceNameResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_gws_instance_user.go b/services/ehpc/set_gws_instance_user.go new file mode 100644 index 0000000000..03ce4ad985 --- /dev/null +++ b/services/ehpc/set_gws_instance_user.go @@ -0,0 +1,101 @@ +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" +) + +// SetGWSInstanceUser invokes the ehpc.SetGWSInstanceUser API synchronously +func (client *Client) SetGWSInstanceUser(request *SetGWSInstanceUserRequest) (response *SetGWSInstanceUserResponse, err error) { + response = CreateSetGWSInstanceUserResponse() + err = client.DoAction(request, response) + return +} + +// SetGWSInstanceUserWithChan invokes the ehpc.SetGWSInstanceUser API asynchronously +func (client *Client) SetGWSInstanceUserWithChan(request *SetGWSInstanceUserRequest) (<-chan *SetGWSInstanceUserResponse, <-chan error) { + responseChan := make(chan *SetGWSInstanceUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetGWSInstanceUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetGWSInstanceUserWithCallback invokes the ehpc.SetGWSInstanceUser API asynchronously +func (client *Client) SetGWSInstanceUserWithCallback(request *SetGWSInstanceUserRequest, callback func(response *SetGWSInstanceUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetGWSInstanceUserResponse + var err error + defer close(result) + response, err = client.SetGWSInstanceUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetGWSInstanceUserRequest is the request struct for api SetGWSInstanceUser +type SetGWSInstanceUserRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + UserUid string `position:"Query" name:"UserUid"` + UserName string `position:"Query" name:"UserName"` +} + +// SetGWSInstanceUserResponse is the response struct for api SetGWSInstanceUser +type SetGWSInstanceUserResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetGWSInstanceUserRequest creates a request to invoke SetGWSInstanceUser API +func CreateSetGWSInstanceUserRequest() (request *SetGWSInstanceUserRequest) { + request = &SetGWSInstanceUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetGWSInstanceUser", "", "") + request.Method = requests.GET + return +} + +// CreateSetGWSInstanceUserResponse creates a response to parse from SetGWSInstanceUser response +func CreateSetGWSInstanceUserResponse() (response *SetGWSInstanceUserResponse) { + response = &SetGWSInstanceUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_post_scripts.go b/services/ehpc/set_post_scripts.go new file mode 100644 index 0000000000..2ccb1c3cf4 --- /dev/null +++ b/services/ehpc/set_post_scripts.go @@ -0,0 +1,106 @@ +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" +) + +// SetPostScripts invokes the ehpc.SetPostScripts API synchronously +func (client *Client) SetPostScripts(request *SetPostScriptsRequest) (response *SetPostScriptsResponse, err error) { + response = CreateSetPostScriptsResponse() + err = client.DoAction(request, response) + return +} + +// SetPostScriptsWithChan invokes the ehpc.SetPostScripts API asynchronously +func (client *Client) SetPostScriptsWithChan(request *SetPostScriptsRequest) (<-chan *SetPostScriptsResponse, <-chan error) { + responseChan := make(chan *SetPostScriptsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetPostScripts(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetPostScriptsWithCallback invokes the ehpc.SetPostScripts API asynchronously +func (client *Client) SetPostScriptsWithCallback(request *SetPostScriptsRequest, callback func(response *SetPostScriptsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetPostScriptsResponse + var err error + defer close(result) + response, err = client.SetPostScripts(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetPostScriptsRequest is the request struct for api SetPostScripts +type SetPostScriptsRequest struct { + *requests.RpcRequest + PostInstallScripts *[]SetPostScriptsPostInstallScripts `position:"Query" name:"PostInstallScripts" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// SetPostScriptsPostInstallScripts is a repeated param struct in SetPostScriptsRequest +type SetPostScriptsPostInstallScripts struct { + Args string `name:"Args"` + Url string `name:"Url"` +} + +// SetPostScriptsResponse is the response struct for api SetPostScripts +type SetPostScriptsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetPostScriptsRequest creates a request to invoke SetPostScripts API +func CreateSetPostScriptsRequest() (request *SetPostScriptsRequest) { + request = &SetPostScriptsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetPostScripts", "", "") + request.Method = requests.GET + return +} + +// CreateSetPostScriptsResponse creates a response to parse from SetPostScripts response +func CreateSetPostScriptsResponse() (response *SetPostScriptsResponse) { + response = &SetPostScriptsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_queue.go b/services/ehpc/set_queue.go new file mode 100644 index 0000000000..91821818dd --- /dev/null +++ b/services/ehpc/set_queue.go @@ -0,0 +1,106 @@ +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" +) + +// SetQueue invokes the ehpc.SetQueue API synchronously +func (client *Client) SetQueue(request *SetQueueRequest) (response *SetQueueResponse, err error) { + response = CreateSetQueueResponse() + err = client.DoAction(request, response) + return +} + +// SetQueueWithChan invokes the ehpc.SetQueue API asynchronously +func (client *Client) SetQueueWithChan(request *SetQueueRequest) (<-chan *SetQueueResponse, <-chan error) { + responseChan := make(chan *SetQueueResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetQueue(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetQueueWithCallback invokes the ehpc.SetQueue API asynchronously +func (client *Client) SetQueueWithCallback(request *SetQueueRequest, callback func(response *SetQueueResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetQueueResponse + var err error + defer close(result) + response, err = client.SetQueue(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetQueueRequest is the request struct for api SetQueue +type SetQueueRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClusterId string `position:"Query" name:"ClusterId"` + Node *[]SetQueueNode `position:"Query" name:"Node" type:"Repeated"` +} + +// SetQueueNode is a repeated param struct in SetQueueRequest +type SetQueueNode struct { + Name string `name:"Name"` +} + +// SetQueueResponse is the response struct for api SetQueue +type SetQueueResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetQueueRequest creates a request to invoke SetQueue API +func CreateSetQueueRequest() (request *SetQueueRequest) { + request = &SetQueueRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetQueue", "", "") + request.Method = requests.GET + return +} + +// CreateSetQueueResponse creates a response to parse from SetQueue response +func CreateSetQueueResponse() (response *SetQueueResponse) { + response = &SetQueueResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/set_scheduler_info.go b/services/ehpc/set_scheduler_info.go new file mode 100644 index 0000000000..bf63f6163f --- /dev/null +++ b/services/ehpc/set_scheduler_info.go @@ -0,0 +1,140 @@ +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" +) + +// SetSchedulerInfo invokes the ehpc.SetSchedulerInfo API synchronously +func (client *Client) SetSchedulerInfo(request *SetSchedulerInfoRequest) (response *SetSchedulerInfoResponse, err error) { + response = CreateSetSchedulerInfoResponse() + err = client.DoAction(request, response) + return +} + +// SetSchedulerInfoWithChan invokes the ehpc.SetSchedulerInfo API asynchronously +func (client *Client) SetSchedulerInfoWithChan(request *SetSchedulerInfoRequest) (<-chan *SetSchedulerInfoResponse, <-chan error) { + responseChan := make(chan *SetSchedulerInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetSchedulerInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetSchedulerInfoWithCallback invokes the ehpc.SetSchedulerInfo API asynchronously +func (client *Client) SetSchedulerInfoWithCallback(request *SetSchedulerInfoRequest, callback func(response *SetSchedulerInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetSchedulerInfoResponse + var err error + defer close(result) + response, err = client.SetSchedulerInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetSchedulerInfoRequest is the request struct for api SetSchedulerInfo +type SetSchedulerInfoRequest struct { + *requests.RpcRequest + SlurmInfo *[]SetSchedulerInfoSlurmInfo `position:"Query" name:"SlurmInfo" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` + Scheduler *[]SetSchedulerInfoScheduler `position:"Query" name:"Scheduler" type:"Repeated"` + PbsInfo *[]SetSchedulerInfoPbsInfo `position:"Query" name:"PbsInfo" type:"Repeated"` +} + +// SetSchedulerInfoSlurmInfo is a repeated param struct in SetSchedulerInfoRequest +type SetSchedulerInfoSlurmInfo struct { + SchedInterval string `name:"SchedInterval"` + BackfillInterval string `name:"BackfillInterval"` +} + +// SetSchedulerInfoScheduler is a repeated param struct in SetSchedulerInfoRequest +type SetSchedulerInfoScheduler struct { + SchedName string `name:"SchedName"` +} + +// SetSchedulerInfoPbsInfo is a repeated param struct in SetSchedulerInfoRequest +type SetSchedulerInfoPbsInfo struct { + SchedInterval string `name:"SchedInterval"` + SchedMaxJobs string `name:"SchedMaxJobs"` + AclLimit *[]SetSchedulerInfoPbsInfoAclLimit `name:"AclLimit" type:"Repeated"` + ResourceLimit *[]SetSchedulerInfoPbsInfoResourceLimit `name:"ResourceLimit" type:"Repeated"` + SchedMaxQueuedJobs string `name:"SchedMaxQueuedJobs"` + JobHistoryDuration string `name:"JobHistoryDuration"` +} + +// SetSchedulerInfoPbsInfoAclLimit is a repeated param struct in SetSchedulerInfoRequest +type SetSchedulerInfoPbsInfoAclLimit struct { + AclUsers string `name:"AclUsers"` + Queue string `name:"Queue"` +} + +// SetSchedulerInfoPbsInfoResourceLimit is a repeated param struct in SetSchedulerInfoRequest +type SetSchedulerInfoPbsInfoResourceLimit struct { + MaxJobs string `name:"MaxJobs"` + Nodes string `name:"Nodes"` + Mem string `name:"Mem"` + Cpus string `name:"Cpus"` + User string `name:"User"` + Queue string `name:"Queue"` +} + +// SetSchedulerInfoResponse is the response struct for api SetSchedulerInfo +type SetSchedulerInfoResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetSchedulerInfoRequest creates a request to invoke SetSchedulerInfo API +func CreateSetSchedulerInfoRequest() (request *SetSchedulerInfoRequest) { + request = &SetSchedulerInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SetSchedulerInfo", "", "") + request.Method = requests.GET + return +} + +// CreateSetSchedulerInfoResponse creates a response to parse from SetSchedulerInfo response +func CreateSetSchedulerInfoResponse() (response *SetSchedulerInfoResponse) { + response = &SetSchedulerInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/start_cluster.go b/services/ehpc/start_cluster.go new file mode 100644 index 0000000000..064a9f48e4 --- /dev/null +++ b/services/ehpc/start_cluster.go @@ -0,0 +1,100 @@ +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" +) + +// StartCluster invokes the ehpc.StartCluster API synchronously +func (client *Client) StartCluster(request *StartClusterRequest) (response *StartClusterResponse, err error) { + response = CreateStartClusterResponse() + err = client.DoAction(request, response) + return +} + +// StartClusterWithChan invokes the ehpc.StartCluster API asynchronously +func (client *Client) StartClusterWithChan(request *StartClusterRequest) (<-chan *StartClusterResponse, <-chan error) { + responseChan := make(chan *StartClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartClusterWithCallback invokes the ehpc.StartCluster API asynchronously +func (client *Client) StartClusterWithCallback(request *StartClusterRequest, callback func(response *StartClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartClusterResponse + var err error + defer close(result) + response, err = client.StartCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartClusterRequest is the request struct for api StartCluster +type StartClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StartClusterResponse is the response struct for api StartCluster +type StartClusterResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartClusterRequest creates a request to invoke StartCluster API +func CreateStartClusterRequest() (request *StartClusterRequest) { + request = &StartClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartCluster", "", "") + request.Method = requests.GET + return +} + +// CreateStartClusterResponse creates a response to parse from StartCluster response +func CreateStartClusterResponse() (response *StartClusterResponse) { + response = &StartClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/start_gws_instance.go b/services/ehpc/start_gws_instance.go new file mode 100644 index 0000000000..a8be3bb446 --- /dev/null +++ b/services/ehpc/start_gws_instance.go @@ -0,0 +1,99 @@ +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" +) + +// StartGWSInstance invokes the ehpc.StartGWSInstance API synchronously +func (client *Client) StartGWSInstance(request *StartGWSInstanceRequest) (response *StartGWSInstanceResponse, err error) { + response = CreateStartGWSInstanceResponse() + err = client.DoAction(request, response) + return +} + +// StartGWSInstanceWithChan invokes the ehpc.StartGWSInstance API asynchronously +func (client *Client) StartGWSInstanceWithChan(request *StartGWSInstanceRequest) (<-chan *StartGWSInstanceResponse, <-chan error) { + responseChan := make(chan *StartGWSInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartGWSInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartGWSInstanceWithCallback invokes the ehpc.StartGWSInstance API asynchronously +func (client *Client) StartGWSInstanceWithCallback(request *StartGWSInstanceRequest, callback func(response *StartGWSInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartGWSInstanceResponse + var err error + defer close(result) + response, err = client.StartGWSInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartGWSInstanceRequest is the request struct for api StartGWSInstance +type StartGWSInstanceRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// StartGWSInstanceResponse is the response struct for api StartGWSInstance +type StartGWSInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartGWSInstanceRequest creates a request to invoke StartGWSInstance API +func CreateStartGWSInstanceRequest() (request *StartGWSInstanceRequest) { + request = &StartGWSInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartGWSInstance", "", "") + request.Method = requests.GET + return +} + +// CreateStartGWSInstanceResponse creates a response to parse from StartGWSInstance response +func CreateStartGWSInstanceResponse() (response *StartGWSInstanceResponse) { + response = &StartGWSInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/start_nodes.go b/services/ehpc/start_nodes.go new file mode 100644 index 0000000000..020b98fec8 --- /dev/null +++ b/services/ehpc/start_nodes.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" +) + +// StartNodes invokes the ehpc.StartNodes API synchronously +func (client *Client) StartNodes(request *StartNodesRequest) (response *StartNodesResponse, err error) { + response = CreateStartNodesResponse() + err = client.DoAction(request, response) + return +} + +// StartNodesWithChan invokes the ehpc.StartNodes API asynchronously +func (client *Client) StartNodesWithChan(request *StartNodesRequest) (<-chan *StartNodesResponse, <-chan error) { + responseChan := make(chan *StartNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartNodesWithCallback invokes the ehpc.StartNodes API asynchronously +func (client *Client) StartNodesWithCallback(request *StartNodesRequest, callback func(response *StartNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartNodesResponse + var err error + defer close(result) + response, err = client.StartNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartNodesRequest is the request struct for api StartNodes +type StartNodesRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + Instance *[]StartNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StartNodesInstance is a repeated param struct in StartNodesRequest +type StartNodesInstance struct { + Id string `name:"Id"` +} + +// StartNodesResponse is the response struct for api StartNodes +type StartNodesResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartNodesRequest creates a request to invoke StartNodes API +func CreateStartNodesRequest() (request *StartNodesRequest) { + request = &StartNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartNodes", "", "") + request.Method = requests.GET + return +} + +// CreateStartNodesResponse creates a response to parse from StartNodes response +func CreateStartNodesResponse() (response *StartNodesResponse) { + response = &StartNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/start_visual_service.go b/services/ehpc/start_visual_service.go new file mode 100644 index 0000000000..2be22c32b3 --- /dev/null +++ b/services/ehpc/start_visual_service.go @@ -0,0 +1,102 @@ +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" +) + +// StartVisualService invokes the ehpc.StartVisualService API synchronously +func (client *Client) StartVisualService(request *StartVisualServiceRequest) (response *StartVisualServiceResponse, err error) { + response = CreateStartVisualServiceResponse() + err = client.DoAction(request, response) + return +} + +// StartVisualServiceWithChan invokes the ehpc.StartVisualService API asynchronously +func (client *Client) StartVisualServiceWithChan(request *StartVisualServiceRequest) (<-chan *StartVisualServiceResponse, <-chan error) { + responseChan := make(chan *StartVisualServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartVisualService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartVisualServiceWithCallback invokes the ehpc.StartVisualService API asynchronously +func (client *Client) StartVisualServiceWithCallback(request *StartVisualServiceRequest, callback func(response *StartVisualServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartVisualServiceResponse + var err error + defer close(result) + response, err = client.StartVisualService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartVisualServiceRequest is the request struct for api StartVisualService +type StartVisualServiceRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Port requests.Integer `position:"Query" name:"Port"` + CidrIp string `position:"Query" name:"CidrIp"` +} + +// StartVisualServiceResponse is the response struct for api StartVisualService +type StartVisualServiceResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartVisualServiceRequest creates a request to invoke StartVisualService API +func CreateStartVisualServiceRequest() (request *StartVisualServiceRequest) { + request = &StartVisualServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StartVisualService", "", "") + request.Method = requests.GET + return +} + +// CreateStartVisualServiceResponse creates a response to parse from StartVisualService response +func CreateStartVisualServiceResponse() (response *StartVisualServiceResponse) { + response = &StartVisualServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/stop_cluster.go b/services/ehpc/stop_cluster.go new file mode 100644 index 0000000000..6f61129c78 --- /dev/null +++ b/services/ehpc/stop_cluster.go @@ -0,0 +1,100 @@ +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" +) + +// StopCluster invokes the ehpc.StopCluster API synchronously +func (client *Client) StopCluster(request *StopClusterRequest) (response *StopClusterResponse, err error) { + response = CreateStopClusterResponse() + err = client.DoAction(request, response) + return +} + +// StopClusterWithChan invokes the ehpc.StopCluster API asynchronously +func (client *Client) StopClusterWithChan(request *StopClusterRequest) (<-chan *StopClusterResponse, <-chan error) { + responseChan := make(chan *StopClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopClusterWithCallback invokes the ehpc.StopCluster API asynchronously +func (client *Client) StopClusterWithCallback(request *StopClusterRequest, callback func(response *StopClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopClusterResponse + var err error + defer close(result) + response, err = client.StopCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopClusterRequest is the request struct for api StopCluster +type StopClusterRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StopClusterResponse is the response struct for api StopCluster +type StopClusterResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopClusterRequest creates a request to invoke StopCluster API +func CreateStopClusterRequest() (request *StopClusterRequest) { + request = &StopClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopCluster", "", "") + request.Method = requests.GET + return +} + +// CreateStopClusterResponse creates a response to parse from StopCluster response +func CreateStopClusterResponse() (response *StopClusterResponse) { + response = &StopClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/stop_gws_instance.go b/services/ehpc/stop_gws_instance.go new file mode 100644 index 0000000000..5437830f93 --- /dev/null +++ b/services/ehpc/stop_gws_instance.go @@ -0,0 +1,99 @@ +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" +) + +// StopGWSInstance invokes the ehpc.StopGWSInstance API synchronously +func (client *Client) StopGWSInstance(request *StopGWSInstanceRequest) (response *StopGWSInstanceResponse, err error) { + response = CreateStopGWSInstanceResponse() + err = client.DoAction(request, response) + return +} + +// StopGWSInstanceWithChan invokes the ehpc.StopGWSInstance API asynchronously +func (client *Client) StopGWSInstanceWithChan(request *StopGWSInstanceRequest) (<-chan *StopGWSInstanceResponse, <-chan error) { + responseChan := make(chan *StopGWSInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopGWSInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopGWSInstanceWithCallback invokes the ehpc.StopGWSInstance API asynchronously +func (client *Client) StopGWSInstanceWithCallback(request *StopGWSInstanceRequest, callback func(response *StopGWSInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopGWSInstanceResponse + var err error + defer close(result) + response, err = client.StopGWSInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopGWSInstanceRequest is the request struct for api StopGWSInstance +type StopGWSInstanceRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` +} + +// StopGWSInstanceResponse is the response struct for api StopGWSInstance +type StopGWSInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopGWSInstanceRequest creates a request to invoke StopGWSInstance API +func CreateStopGWSInstanceRequest() (request *StopGWSInstanceRequest) { + request = &StopGWSInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopGWSInstance", "", "") + request.Method = requests.GET + return +} + +// CreateStopGWSInstanceResponse creates a response to parse from StopGWSInstance response +func CreateStopGWSInstanceResponse() (response *StopGWSInstanceResponse) { + response = &StopGWSInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/stop_jobs.go b/services/ehpc/stop_jobs.go index 185bf49468..5c42b40d3d 100644 --- a/services/ehpc/stop_jobs.go +++ b/services/ehpc/stop_jobs.go @@ -86,7 +86,7 @@ func CreateStopJobsRequest() (request *StopJobsRequest) { request = &StopJobsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "StopJobs", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "StopJobs", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/stop_nodes.go b/services/ehpc/stop_nodes.go new file mode 100644 index 0000000000..99f8216dbb --- /dev/null +++ b/services/ehpc/stop_nodes.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" +) + +// StopNodes invokes the ehpc.StopNodes API synchronously +func (client *Client) StopNodes(request *StopNodesRequest) (response *StopNodesResponse, err error) { + response = CreateStopNodesResponse() + err = client.DoAction(request, response) + return +} + +// StopNodesWithChan invokes the ehpc.StopNodes API asynchronously +func (client *Client) StopNodesWithChan(request *StopNodesRequest) (<-chan *StopNodesResponse, <-chan error) { + responseChan := make(chan *StopNodesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopNodes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopNodesWithCallback invokes the ehpc.StopNodes API asynchronously +func (client *Client) StopNodesWithCallback(request *StopNodesRequest, callback func(response *StopNodesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopNodesResponse + var err error + defer close(result) + response, err = client.StopNodes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopNodesRequest is the request struct for api StopNodes +type StopNodesRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + Instance *[]StopNodesInstance `position:"Query" name:"Instance" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// StopNodesInstance is a repeated param struct in StopNodesRequest +type StopNodesInstance struct { + Id string `name:"Id"` +} + +// StopNodesResponse is the response struct for api StopNodes +type StopNodesResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopNodesRequest creates a request to invoke StopNodes API +func CreateStopNodesRequest() (request *StopNodesRequest) { + request = &StopNodesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopNodes", "", "") + request.Method = requests.GET + return +} + +// CreateStopNodesResponse creates a response to parse from StopNodes response +func CreateStopNodesResponse() (response *StopNodesResponse) { + response = &StopNodesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/stop_visual_service.go b/services/ehpc/stop_visual_service.go new file mode 100644 index 0000000000..c0ec5a2cd2 --- /dev/null +++ b/services/ehpc/stop_visual_service.go @@ -0,0 +1,102 @@ +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" +) + +// StopVisualService invokes the ehpc.StopVisualService API synchronously +func (client *Client) StopVisualService(request *StopVisualServiceRequest) (response *StopVisualServiceResponse, err error) { + response = CreateStopVisualServiceResponse() + err = client.DoAction(request, response) + return +} + +// StopVisualServiceWithChan invokes the ehpc.StopVisualService API asynchronously +func (client *Client) StopVisualServiceWithChan(request *StopVisualServiceRequest) (<-chan *StopVisualServiceResponse, <-chan error) { + responseChan := make(chan *StopVisualServiceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopVisualService(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopVisualServiceWithCallback invokes the ehpc.StopVisualService API asynchronously +func (client *Client) StopVisualServiceWithCallback(request *StopVisualServiceRequest, callback func(response *StopVisualServiceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopVisualServiceResponse + var err error + defer close(result) + response, err = client.StopVisualService(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopVisualServiceRequest is the request struct for api StopVisualService +type StopVisualServiceRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Port requests.Integer `position:"Query" name:"Port"` + CidrIp string `position:"Query" name:"CidrIp"` +} + +// StopVisualServiceResponse is the response struct for api StopVisualService +type StopVisualServiceResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStopVisualServiceRequest creates a request to invoke StopVisualService API +func CreateStopVisualServiceRequest() (request *StopVisualServiceRequest) { + request = &StopVisualServiceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "StopVisualService", "", "") + request.Method = requests.GET + return +} + +// CreateStopVisualServiceResponse creates a response to parse from StopVisualService response +func CreateStopVisualServiceResponse() (response *StopVisualServiceResponse) { + response = &StopVisualServiceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/struct_volumes.go b/services/ehpc/struct_additional_volumes.go similarity index 89% rename from services/ehpc/struct_volumes.go rename to services/ehpc/struct_additional_volumes.go index 470b21748c..b1d87ba36d 100644 --- a/services/ehpc/struct_volumes.go +++ b/services/ehpc/struct_additional_volumes.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Volumes is a nested struct in ehpc response -type Volumes struct { +// AdditionalVolumes is a nested struct in ehpc response +type AdditionalVolumes struct { VolumeInfo []VolumeInfo `json:"VolumeInfo" xml:"VolumeInfo"` } diff --git a/services/ehpc/struct_app_info.go b/services/ehpc/struct_app_info.go new file mode 100644 index 0000000000..000e0fa0e9 --- /dev/null +++ b/services/ehpc/struct_app_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. + +// AppInfo is a nested struct in ehpc response +type AppInfo struct { + AppName string `json:"AppName" xml:"AppName"` + AppArgs string `json:"AppArgs" xml:"AppArgs"` + AppPath string `json:"AppPath" xml:"AppPath"` +} diff --git a/services/ehpc/struct_app_list.go b/services/ehpc/struct_app_list.go new file mode 100644 index 0000000000..03d78df35b --- /dev/null +++ b/services/ehpc/struct_app_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. + +// AppList is a nested struct in ehpc response +type AppList struct { + AppInfo []AppInfo `json:"AppInfo" xml:"AppInfo"` +} diff --git a/services/ehpc/struct_base_os_tag.go b/services/ehpc/struct_base_os_tag.go index 9c87850a7d..11d14592f3 100644 --- a/services/ehpc/struct_base_os_tag.go +++ b/services/ehpc/struct_base_os_tag.go @@ -17,8 +17,8 @@ package ehpc // BaseOsTag is a nested struct in ehpc response type BaseOsTag struct { + Architecture string `json:"Architecture" xml:"Architecture"` Platform string `json:"Platform" xml:"Platform"` OsTag string `json:"OsTag" xml:"OsTag"` Version string `json:"Version" xml:"Version"` - Architecture string `json:"Architecture" xml:"Architecture"` } diff --git a/services/ehpc/struct_client_records.go b/services/ehpc/struct_client_records.go new file mode 100644 index 0000000000..688d995bcf --- /dev/null +++ b/services/ehpc/struct_client_records.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. + +// ClientRecords is a nested struct in ehpc response +type ClientRecords struct { + ClientRecordsItem []ClientRecordsItem `json:"ClientRecords" xml:"ClientRecords"` +} diff --git a/services/ehpc/struct_client_records_item.go b/services/ehpc/struct_client_records_item.go new file mode 100644 index 0000000000..a5ee9a570a --- /dev/null +++ b/services/ehpc/struct_client_records_item.go @@ -0,0 +1,24 @@ +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. + +// ClientRecordsItem is a nested struct in ehpc response +type ClientRecordsItem struct { + SubUid string `json:"SubUid" xml:"SubUid"` + OldVersion string `json:"OldVersion" xml:"OldVersion"` + NewVersion string `json:"NewVersion" xml:"NewVersion"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` +} diff --git a/services/ehpc/struct_cluster_info.go b/services/ehpc/struct_cluster_info.go index cb9c8f4ba7..f95ab98621 100644 --- a/services/ehpc/struct_cluster_info.go +++ b/services/ehpc/struct_cluster_info.go @@ -17,29 +17,38 @@ package ehpc // ClusterInfo is a nested struct in ehpc response type ClusterInfo struct { - Status string `json:"Status" xml:"Status"` - SchedulerType string `json:"SchedulerType" xml:"SchedulerType"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - EcsChargeType string `json:"EcsChargeType" xml:"EcsChargeType"` - SccClusterId string `json:"SccClusterId" xml:"SccClusterId"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` - VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` - OsTag string `json:"OsTag" xml:"OsTag"` - AccountType string `json:"AccountType" xml:"AccountType"` - VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` - RegionId string `json:"RegionId" xml:"RegionId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - Description string `json:"Description" xml:"Description"` - VolumeId string `json:"VolumeId" xml:"VolumeId"` - HaEnable bool `json:"HaEnable" xml:"HaEnable"` - Name string `json:"Name" xml:"Name"` - ImageId string `json:"ImageId" xml:"ImageId"` - VolumeType string `json:"VolumeType" xml:"VolumeType"` - Id string `json:"Id" xml:"Id"` - ClientVersion string `json:"ClientVersion" xml:"ClientVersion"` - EcsInfo EcsInfo `json:"EcsInfo" xml:"EcsInfo"` - Applications ApplicationsInDescribeCluster `json:"Applications" xml:"Applications"` + Name string `json:"Name" xml:"Name"` + VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` + VolumeId string `json:"VolumeId" xml:"VolumeId"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + AccountType string `json:"AccountType" xml:"AccountType"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` + RegionId string `json:"RegionId" xml:"RegionId"` + 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"` + Description string `json:"Description" xml:"Description"` + ClientVersion string `json:"ClientVersion" xml:"ClientVersion"` + SccClusterId string `json:"SccClusterId" xml:"SccClusterId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` + VolumeType string `json:"VolumeType" xml:"VolumeType"` + HaEnable bool `json:"HaEnable" xml:"HaEnable"` + Location string `json:"Location" xml:"Location"` + EcsChargeType string `json:"EcsChargeType" xml:"EcsChargeType"` + InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + OsTag string `json:"OsTag" xml:"OsTag"` + ImageName string `json:"ImageName" xml:"ImageName"` + Status string `json:"Status" xml:"Status"` + EcsInfo EcsInfo `json:"EcsInfo" xml:"EcsInfo"` + OnPremiseInfo OnPremiseInfo `json:"OnPremiseInfo" xml:"OnPremiseInfo"` + PostInstallScripts PostInstallScriptsInDescribeCluster `json:"PostInstallScripts" xml:"PostInstallScripts"` + Applications ApplicationsInDescribeCluster `json:"Applications" xml:"Applications"` } diff --git a/services/ehpc/struct_cluster_info_simple.go b/services/ehpc/struct_cluster_info_simple.go index e803b75568..e512960c0b 100644 --- a/services/ehpc/struct_cluster_info_simple.go +++ b/services/ehpc/struct_cluster_info_simple.go @@ -17,23 +17,37 @@ package ehpc // ClusterInfoSimple is a nested struct in ehpc response type ClusterInfoSimple struct { - Status string `json:"Status" xml:"Status"` - SchedulerType string `json:"SchedulerType" xml:"SchedulerType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - OsTag string `json:"OsTag" xml:"OsTag"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - AccountType string `json:"AccountType" xml:"AccountType"` - Count int `json:"Count" xml:"Count"` - RegionId string `json:"RegionId" xml:"RegionId"` - Description string `json:"Description" xml:"Description"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - LoginNodes string `json:"LoginNodes" xml:"LoginNodes"` - Name string `json:"Name" xml:"Name"` - ImageId string `json:"ImageId" xml:"ImageId"` - Id string `json:"Id" xml:"Id"` - Managers Managers `json:"Managers" xml:"Managers"` - Computes Computes `json:"Computes" xml:"Computes"` - TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` - UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` + Name string `json:"Name" xml:"Name"` + AccountType string `json:"AccountType" xml:"AccountType"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + NodePrefix string `json:"NodePrefix" xml:"NodePrefix"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + LoginNodes string `json:"LoginNodes" xml:"LoginNodes"` + NodeSuffix string `json:"NodeSuffix" xml:"NodeSuffix"` + IsComputeEss bool `json:"IsComputeEss" xml:"IsComputeEss"` + RegionId string `json:"RegionId" xml:"RegionId"` + EhpcVersion string `json:"EhpcVersion" xml:"EhpcVersion"` + 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"` + Description string `json:"Description" xml:"Description"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + ClientVersion string `json:"ClientVersion" xml:"ClientVersion"` + ComputeSpotPriceLimit float64 `json:"ComputeSpotPriceLimit" xml:"ComputeSpotPriceLimit"` + Count int `json:"Count" xml:"Count"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ComputeSpotStrategy string `json:"ComputeSpotStrategy" xml:"ComputeSpotStrategy"` + Location string `json:"Location" xml:"Location"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + OsTag string `json:"OsTag" xml:"OsTag"` + Status string `json:"Status" xml:"Status"` + HasPlugin bool `json:"HasPlugin" xml:"HasPlugin"` + UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` + Managers Managers `json:"Managers" xml:"Managers"` + Computes Computes `json:"Computes" xml:"Computes"` + TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` } diff --git a/services/ehpc/struct_clusters_in_describe_gws_clusters.go b/services/ehpc/struct_clusters_in_describe_gws_clusters.go new file mode 100644 index 0000000000..dbb94b46b9 --- /dev/null +++ b/services/ehpc/struct_clusters_in_describe_gws_clusters.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. + +// ClustersInDescribeGWSClusters is a nested struct in ehpc response +type ClustersInDescribeGWSClusters struct { + ClusterInfo []ClusterInfo `json:"ClusterInfo" xml:"ClusterInfo"` +} diff --git a/services/ehpc/struct_clusters.go b/services/ehpc/struct_clusters_in_list_clusters.go similarity index 88% rename from services/ehpc/struct_clusters.go rename to services/ehpc/struct_clusters_in_list_clusters.go index f39df6add6..19368c5931 100644 --- a/services/ehpc/struct_clusters.go +++ b/services/ehpc/struct_clusters_in_list_clusters.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Clusters is a nested struct in ehpc response -type Clusters struct { +// ClustersInListClusters is a nested struct in ehpc response +type ClustersInListClusters struct { ClusterInfoSimple []ClusterInfoSimple `json:"ClusterInfoSimple" xml:"ClusterInfoSimple"` } diff --git a/services/ehpc/struct_clusters_in_list_clusters_meta.go b/services/ehpc/struct_clusters_in_list_clusters_meta.go new file mode 100644 index 0000000000..717b8b05d8 --- /dev/null +++ b/services/ehpc/struct_clusters_in_list_clusters_meta.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. + +// ClustersInListClustersMeta is a nested struct in ehpc response +type ClustersInListClustersMeta struct { + ClusterInfoSimple []ClusterInfoSimple `json:"ClusterInfoSimple" xml:"ClusterInfoSimple"` +} diff --git a/services/ehpc/struct_command.go b/services/ehpc/struct_command.go new file mode 100644 index 0000000000..b1714fa681 --- /dev/null +++ b/services/ehpc/struct_command.go @@ -0,0 +1,24 @@ +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. + +// Command is a nested struct in ehpc response +type Command struct { + Timeout string `json:"Timeout" xml:"Timeout"` + CommandId string `json:"CommandId" xml:"CommandId"` + WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` + CommandContent string `json:"CommandContent" xml:"CommandContent"` +} diff --git a/services/ehpc/struct_commands.go b/services/ehpc/struct_commands.go new file mode 100644 index 0000000000..41aeb42418 --- /dev/null +++ b/services/ehpc/struct_commands.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. + +// Commands is a nested struct in ehpc response +type Commands struct { + Command []Command `json:"Command" xml:"Command"` +} diff --git a/services/ehpc/struct_compute_instance_type.go b/services/ehpc/struct_compute_instance_type.go new file mode 100644 index 0000000000..8356dd2f09 --- /dev/null +++ b/services/ehpc/struct_compute_instance_type.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. + +// ComputeInstanceType is a nested struct in ehpc response +type ComputeInstanceType struct { + InstanceType []string `json:"InstanceType" xml:"InstanceType"` +} diff --git a/services/ehpc/struct_computes.go b/services/ehpc/struct_computes.go index c21333a30f..5247c81e99 100644 --- a/services/ehpc/struct_computes.go +++ b/services/ehpc/struct_computes.go @@ -17,7 +17,9 @@ package ehpc // Computes is a nested struct in ehpc response type Computes struct { + OperatingCount int `json:"OperatingCount" xml:"OperatingCount"` ExceptionCount int `json:"ExceptionCount" xml:"ExceptionCount"` + StoppedCount int `json:"StoppedCount" xml:"StoppedCount"` Total int `json:"Total" xml:"Total"` NormalCount int `json:"NormalCount" xml:"NormalCount"` } diff --git a/services/ehpc/struct_container_app_info.go b/services/ehpc/struct_container_app_info.go new file mode 100644 index 0000000000..9e8dc8271d --- /dev/null +++ b/services/ehpc/struct_container_app_info.go @@ -0,0 +1,27 @@ +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. + +// ContainerAppInfo is a nested struct in ehpc response +type ContainerAppInfo struct { + Type string `json:"Type" xml:"Type"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Repository string `json:"Repository" xml:"Repository"` + ImageTag string `json:"ImageTag" xml:"ImageTag"` + Name string `json:"Name" xml:"Name"` + Id string `json:"Id" xml:"Id"` +} diff --git a/services/ehpc/struct_container_apps.go b/services/ehpc/struct_container_apps.go new file mode 100644 index 0000000000..0cdeaf98a4 --- /dev/null +++ b/services/ehpc/struct_container_apps.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. + +// ContainerApps is a nested struct in ehpc response +type ContainerApps struct { + ContainerAppsItem []ContainerAppsItem `json:"ContainerApps" xml:"ContainerApps"` +} diff --git a/services/ehpc/struct_container_apps_item.go b/services/ehpc/struct_container_apps_item.go new file mode 100644 index 0000000000..864e97ca8a --- /dev/null +++ b/services/ehpc/struct_container_apps_item.go @@ -0,0 +1,27 @@ +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. + +// ContainerAppsItem is a nested struct in ehpc response +type ContainerAppsItem struct { + Type string `json:"Type" xml:"Type"` + Description string `json:"Description" xml:"Description"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Repository string `json:"Repository" xml:"Repository"` + ImageTag string `json:"ImageTag" xml:"ImageTag"` + Name string `json:"Name" xml:"Name"` + Id string `json:"Id" xml:"Id"` +} diff --git a/services/ehpc/struct_container_id.go b/services/ehpc/struct_container_id.go new file mode 100644 index 0000000000..7d91dd5a96 --- /dev/null +++ b/services/ehpc/struct_container_id.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. + +// ContainerId is a nested struct in ehpc response +type ContainerId struct { + ContainerId []string `json:"ContainerId" xml:"ContainerId"` +} diff --git a/services/ehpc/struct_data.go b/services/ehpc/struct_data.go new file mode 100644 index 0000000000..9201a171fe --- /dev/null +++ b/services/ehpc/struct_data.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. + +// Data is a nested struct in ehpc response +type Data struct { + Data []string `json:"Data" xml:"Data"` +} diff --git a/services/ehpc/struct_data_disks.go b/services/ehpc/struct_data_disks.go new file mode 100644 index 0000000000..b582db5ca2 --- /dev/null +++ b/services/ehpc/struct_data_disks.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. + +// DataDisks is a nested struct in ehpc response +type DataDisks struct { + DataDisksInfo []DataDisksInfo `json:"DataDisksInfo" xml:"DataDisksInfo"` +} diff --git a/services/ehpc/struct_data_disks_info.go b/services/ehpc/struct_data_disks_info.go new file mode 100644 index 0000000000..472dc48d80 --- /dev/null +++ b/services/ehpc/struct_data_disks_info.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. + +// DataDisksInfo is a nested struct in ehpc response +type DataDisksInfo struct { + DataDiskCategory string `json:"DataDiskCategory" xml:"DataDiskCategory"` + DataDiskSize int `json:"DataDiskSize" xml:"DataDiskSize"` + DataDiskDeleteWithInstance bool `json:"DataDiskDeleteWithInstance" xml:"DataDiskDeleteWithInstance"` + DataDiskPerformanceLevel string `json:"DataDiskPerformanceLevel" xml:"DataDiskPerformanceLevel"` + DataDiskEncrypted bool `json:"DataDiskEncrypted" xml:"DataDiskEncrypted"` + DataDiskKMSKeyId string `json:"DataDiskKMSKeyId" xml:"DataDiskKMSKeyId"` +} diff --git a/services/ehpc/struct_ecs_info.go b/services/ehpc/struct_ecs_info.go index 362bbd122c..f1fcadf5c1 100644 --- a/services/ehpc/struct_ecs_info.go +++ b/services/ehpc/struct_ecs_info.go @@ -17,7 +17,8 @@ package ehpc // EcsInfo is a nested struct in ehpc response type EcsInfo struct { - Manager Manager `json:"Manager" xml:"Manager"` - Compute Compute `json:"Compute" xml:"Compute"` - Login Login `json:"Login" xml:"Login"` + Manager Manager `json:"Manager" xml:"Manager"` + Compute Compute `json:"Compute" xml:"Compute"` + Login Login `json:"Login" xml:"Login"` + ProxyMgr ProxyMgr `json:"ProxyMgr" xml:"ProxyMgr"` } diff --git a/services/ehpc/struct_file_system_list_in_list_cpfs_file_systems.go b/services/ehpc/struct_file_system_list_in_list_cpfs_file_systems.go new file mode 100644 index 0000000000..56da2dedcf --- /dev/null +++ b/services/ehpc/struct_file_system_list_in_list_cpfs_file_systems.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. + +// FileSystemListInListCpfsFileSystems is a nested struct in ehpc response +type FileSystemListInListCpfsFileSystems struct { + FileSystems []FileSystems `json:"FileSystems" xml:"FileSystems"` +} diff --git a/services/ehpc/struct_file_system_list_in_list_file_system_with_mount_targets.go b/services/ehpc/struct_file_system_list_in_list_file_system_with_mount_targets.go new file mode 100644 index 0000000000..118d35394e --- /dev/null +++ b/services/ehpc/struct_file_system_list_in_list_file_system_with_mount_targets.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. + +// FileSystemListInListFileSystemWithMountTargets is a nested struct in ehpc response +type FileSystemListInListFileSystemWithMountTargets struct { + FileSystems []FileSystemsInListFileSystemWithMountTargets `json:"FileSystems" xml:"FileSystems"` +} diff --git a/services/ehpc/struct_file_systems.go b/services/ehpc/struct_file_systems.go new file mode 100644 index 0000000000..8f7f49b89d --- /dev/null +++ b/services/ehpc/struct_file_systems.go @@ -0,0 +1,28 @@ +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 { + FileSystemId string `json:"FileSystemId" xml:"FileSystemId"` + RegionId string `json:"RegionId" xml:"RegionId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ProtocolType string `json:"ProtocolType" xml:"ProtocolType"` + Capacity string `json:"Capacity" xml:"Capacity"` + Destription string `json:"Destription" xml:"Destription"` + MountTargetList MountTargetListInListCpfsFileSystems `json:"MountTargetList" xml:"MountTargetList"` +} diff --git a/services/ehpc/struct_file_systems_in_list_file_system_with_mount_targets.go b/services/ehpc/struct_file_systems_in_list_file_system_with_mount_targets.go new file mode 100644 index 0000000000..cd8abe5a94 --- /dev/null +++ b/services/ehpc/struct_file_systems_in_list_file_system_with_mount_targets.go @@ -0,0 +1,35 @@ +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. + +// FileSystemsInListFileSystemWithMountTargets is a nested struct in ehpc response +type FileSystemsInListFileSystemWithMountTargets struct { + Status string `json:"Status" xml:"Status"` + Capacity int `json:"Capacity" xml:"Capacity"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + StorageType string `json:"StorageType" xml:"StorageType"` + BandWidth int `json:"BandWidth" xml:"BandWidth"` + RegionId string `json:"RegionId" xml:"RegionId"` + FileSystemId string `json:"FileSystemId" xml:"FileSystemId"` + FileSystemType string `json:"FileSystemType" xml:"FileSystemType"` + MeteredSize int `json:"MeteredSize" xml:"MeteredSize"` + EncryptType int `json:"EncryptType" xml:"EncryptType"` + ProtocolType string `json:"ProtocolType" xml:"ProtocolType"` + Destription string `json:"Destription" xml:"Destription"` + VpcId string `json:"VpcId" xml:"VpcId"` + PackageList PackageList `json:"PackageList" xml:"PackageList"` + MountTargetList MountTargetListInListFileSystemWithMountTargets `json:"MountTargetList" xml:"MountTargetList"` +} diff --git a/services/ehpc/struct_image_info.go b/services/ehpc/struct_image_info.go index c8ffa27f5b..cbc92ce3ee 100644 --- a/services/ehpc/struct_image_info.go +++ b/services/ehpc/struct_image_info.go @@ -17,9 +17,26 @@ package ehpc // ImageInfo is a nested struct in ehpc response type ImageInfo struct { - ImageName string `json:"ImageName" xml:"ImageName"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - Description string `json:"Description" xml:"Description"` - ImageId string `json:"ImageId" xml:"ImageId"` - BaseOsTag BaseOsTag `json:"BaseOsTag" xml:"BaseOsTag"` + Name string `json:"Name" xml:"Name"` + Uid string `json:"Uid" xml:"Uid"` + Repository string `json:"Repository" xml:"Repository"` + SkuCode string `json:"SkuCode" xml:"SkuCode"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + System string `json:"System" xml:"System"` + PostInstallScript string `json:"PostInstallScript" xml:"PostInstallScript"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + Progress string `json:"Progress" xml:"Progress"` + Size int `json:"Size" xml:"Size"` + Tag string `json:"Tag" xml:"Tag"` + ImageType string `json:"ImageType" xml:"ImageType"` + PricingCycle string `json:"PricingCycle" xml:"PricingCycle"` + ImageName string `json:"ImageName" xml:"ImageName"` + Status string `json:"Status" xml:"Status"` + 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"` } diff --git a/services/ehpc/struct_image_inspect_info.go b/services/ehpc/struct_image_inspect_info.go new file mode 100644 index 0000000000..737315fad5 --- /dev/null +++ b/services/ehpc/struct_image_inspect_info.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. + +// ImageInspectInfo is a nested struct in ehpc response +type ImageInspectInfo struct { + BuildArch string `json:"BuildArch" xml:"BuildArch"` + BuildDate string `json:"BuildDate" xml:"BuildDate"` + BootStrap string `json:"BootStrap" xml:"BootStrap"` + DefFrom string `json:"DefFrom" xml:"DefFrom"` + ContainerVersion string `json:"ContainerVersion" xml:"ContainerVersion"` + SchemaVersion string `json:"SchemaVersion" xml:"SchemaVersion"` +} diff --git a/services/ehpc/struct_image_list.go b/services/ehpc/struct_image_list.go new file mode 100644 index 0000000000..3c395e4dd2 --- /dev/null +++ b/services/ehpc/struct_image_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. + +// ImageList is a nested struct in ehpc response +type ImageList struct { + ImageListInfo []ImageListInfo `json:"ImageListInfo" xml:"ImageListInfo"` +} diff --git a/services/ehpc/struct_image_list_info.go b/services/ehpc/struct_image_list_info.go new file mode 100644 index 0000000000..9a5956dbc2 --- /dev/null +++ b/services/ehpc/struct_image_list_info.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. + +// ImageListInfo is a nested struct in ehpc response +type ImageListInfo struct { + ImageName string `json:"ImageName" xml:"ImageName"` + ImageSize int `json:"ImageSize" xml:"ImageSize"` + RecentUpdateTime string `json:"RecentUpdateTime" xml:"RecentUpdateTime"` + ImageUrl string `json:"ImageUrl" xml:"ImageUrl"` + ImageType string `json:"ImageType" xml:"ImageType"` +} diff --git a/services/ehpc/struct_image_status.go b/services/ehpc/struct_image_status.go new file mode 100644 index 0000000000..f36a84a513 --- /dev/null +++ b/services/ehpc/struct_image_status.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. + +// ImageStatus is a nested struct in ehpc response +type ImageStatus struct { + ImageInspectInfo ImageInspectInfo `json:"ImageInspectInfo" xml:"ImageInspectInfo"` +} diff --git a/services/ehpc/struct_imagegw.go b/services/ehpc/struct_imagegw.go new file mode 100644 index 0000000000..ca234bf2e5 --- /dev/null +++ b/services/ehpc/struct_imagegw.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. + +// Imagegw is a nested struct in ehpc response +type Imagegw struct { + UpdateDateTime string `json:"UpdateDateTime" xml:"UpdateDateTime"` + ImageExpirationTimeout string `json:"ImageExpirationTimeout" xml:"ImageExpirationTimeout"` + MongoDBURI string `json:"MongoDBURI" xml:"MongoDBURI"` + DefaultImageLocation string `json:"DefaultImageLocation" xml:"DefaultImageLocation"` + PullUpdateTimeout int64 `json:"PullUpdateTimeout" xml:"PullUpdateTimeout"` + Locations Locations `json:"Locations" xml:"Locations"` +} diff --git a/services/ehpc/struct_images_in_describe_gws_images.go b/services/ehpc/struct_images_in_describe_gws_images.go new file mode 100644 index 0000000000..188eb28310 --- /dev/null +++ b/services/ehpc/struct_images_in_describe_gws_images.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. + +// ImagesInDescribeGWSImages is a nested struct in ehpc response +type ImagesInDescribeGWSImages struct { + ImageInfo []ImageInfo `json:"ImageInfo" xml:"ImageInfo"` +} diff --git a/services/ehpc/struct_images_in_list_community_images.go b/services/ehpc/struct_images_in_list_community_images.go new file mode 100644 index 0000000000..888fa1b561 --- /dev/null +++ b/services/ehpc/struct_images_in_list_community_images.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. + +// ImagesInListCommunityImages is a nested struct in ehpc response +type ImagesInListCommunityImages struct { + ImageInfo []ImageInfo `json:"ImageInfo" xml:"ImageInfo"` +} diff --git a/services/ehpc/struct_images_in_list_container_images.go b/services/ehpc/struct_images_in_list_container_images.go new file mode 100644 index 0000000000..5eb964a8a0 --- /dev/null +++ b/services/ehpc/struct_images_in_list_container_images.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. + +// ImagesInListContainerImages is a nested struct in ehpc response +type ImagesInListContainerImages struct { + ImagesItem []ImagesItem `json:"Images" xml:"Images"` +} diff --git a/services/ehpc/struct_images.go b/services/ehpc/struct_images_in_list_custom_images.go similarity index 88% rename from services/ehpc/struct_images.go rename to services/ehpc/struct_images_in_list_custom_images.go index 347f2a7da0..fe42bdf8e5 100644 --- a/services/ehpc/struct_images.go +++ b/services/ehpc/struct_images_in_list_custom_images.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Images is a nested struct in ehpc response -type Images struct { +// ImagesInListCustomImages is a nested struct in ehpc response +type ImagesInListCustomImages struct { ImageInfo []ImageInfo `json:"ImageInfo" xml:"ImageInfo"` } diff --git a/services/ehpc/struct_images_item.go b/services/ehpc/struct_images_item.go new file mode 100644 index 0000000000..e54db63774 --- /dev/null +++ b/services/ehpc/struct_images_item.go @@ -0,0 +1,27 @@ +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. + +// ImagesItem is a nested struct in ehpc response +type ImagesItem struct { + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + UpdateDateTime string `json:"UpdateDateTime" xml:"UpdateDateTime"` + Repository string `json:"Repository" xml:"Repository"` + Tag string `json:"Tag" xml:"Tag"` + System string `json:"System" xml:"System"` + ImageId string `json:"ImageId" xml:"ImageId"` +} diff --git a/services/ehpc/struct_instance.go b/services/ehpc/struct_instance.go new file mode 100644 index 0000000000..efa18f2aae --- /dev/null +++ b/services/ehpc/struct_instance.go @@ -0,0 +1,22 @@ +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. + +// Instance is a nested struct in ehpc response +type Instance struct { + InstanceType string `json:"InstanceType" xml:"InstanceType"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` +} diff --git a/services/ehpc/struct_instance_ids_in_add_local_nodes.go b/services/ehpc/struct_instance_ids_in_add_local_nodes.go new file mode 100644 index 0000000000..5e2c4d520d --- /dev/null +++ b/services/ehpc/struct_instance_ids_in_add_local_nodes.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. + +// InstanceIdsInAddLocalNodes is a nested struct in ehpc response +type InstanceIdsInAddLocalNodes struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/ehpc/struct_instance_ids.go b/services/ehpc/struct_instance_ids_in_add_nodes.go similarity index 88% rename from services/ehpc/struct_instance_ids.go rename to services/ehpc/struct_instance_ids_in_add_nodes.go index 9834d0d0b5..51d0c9bbf3 100644 --- a/services/ehpc/struct_instance_ids.go +++ b/services/ehpc/struct_instance_ids_in_add_nodes.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// InstanceIds is a nested struct in ehpc response -type InstanceIds struct { +// InstanceIdsInAddNodes is a nested struct in ehpc response +type InstanceIdsInAddNodes struct { InstanceId []string `json:"InstanceId" xml:"InstanceId"` } diff --git a/services/ehpc/struct_instance_ids_in_apply_nodes.go b/services/ehpc/struct_instance_ids_in_apply_nodes.go new file mode 100644 index 0000000000..960190b3f1 --- /dev/null +++ b/services/ehpc/struct_instance_ids_in_apply_nodes.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. + +// InstanceIdsInApplyNodes is a nested struct in ehpc response +type InstanceIdsInApplyNodes struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/ehpc/struct_instance_ids_in_invoke_shell_command.go b/services/ehpc/struct_instance_ids_in_invoke_shell_command.go new file mode 100644 index 0000000000..6cda756db8 --- /dev/null +++ b/services/ehpc/struct_instance_ids_in_invoke_shell_command.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. + +// InstanceIdsInInvokeShellCommand is a nested struct in ehpc response +type InstanceIdsInInvokeShellCommand struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/ehpc/struct_instance_info.go b/services/ehpc/struct_instance_info.go new file mode 100644 index 0000000000..c2cf657685 --- /dev/null +++ b/services/ehpc/struct_instance_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. + +// InstanceInfo is a nested struct in ehpc response +type InstanceInfo struct { + Status string `json:"Status" xml:"Status"` + WorkMode string `json:"WorkMode" xml:"WorkMode"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Name string `json:"Name" xml:"Name"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + UserName string `json:"UserName" xml:"UserName"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + AppList AppList `json:"AppList" xml:"AppList"` +} diff --git a/services/ehpc/struct_instance_type_families.go b/services/ehpc/struct_instance_type_families.go new file mode 100644 index 0000000000..89d8442d03 --- /dev/null +++ b/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"` +} diff --git a/services/ehpc/struct_instance_type_family_info.go b/services/ehpc/struct_instance_type_family_info.go new file mode 100644 index 0000000000..dfadd3ee3f --- /dev/null +++ b/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 { + Generation string `json:"Generation" xml:"Generation"` + InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"` + Types Types `json:"Types" xml:"Types"` +} diff --git a/services/ehpc/struct_instance_type_info.go b/services/ehpc/struct_instance_type_info.go new file mode 100644 index 0000000000..175d68c218 --- /dev/null +++ b/services/ehpc/struct_instance_type_info.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. + +// InstanceTypeInfo is a nested struct in ehpc response +type InstanceTypeInfo struct { + HostNamePrefix string `json:"HostNamePrefix" xml:"HostNamePrefix"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` +} diff --git a/services/ehpc/struct_instance_types.go b/services/ehpc/struct_instance_types.go new file mode 100644 index 0000000000..e6a6d43cdc --- /dev/null +++ b/services/ehpc/struct_instance_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. + +// InstanceTypes is a nested struct in ehpc response +type InstanceTypes struct { + InstanceTypeInfo []InstanceTypeInfo `json:"InstanceTypeInfo" xml:"InstanceTypeInfo"` +} diff --git a/services/ehpc/struct_instances.go b/services/ehpc/struct_instances.go new file mode 100644 index 0000000000..dbf8acd182 --- /dev/null +++ b/services/ehpc/struct_instances.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. + +// Instances is a nested struct in ehpc response +type Instances struct { + InstanceInfo []InstanceInfo `json:"InstanceInfo" xml:"InstanceInfo"` +} diff --git a/services/ehpc/struct_invocation_result.go b/services/ehpc/struct_invocation_result.go new file mode 100644 index 0000000000..e45e10244d --- /dev/null +++ b/services/ehpc/struct_invocation_result.go @@ -0,0 +1,27 @@ +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. + +// InvocationResult is a nested struct in ehpc response +type InvocationResult struct { + Success bool `json:"Success" xml:"Success"` + Message string `json:"Message" xml:"Message"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + CommandId string `json:"CommandId" xml:"CommandId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` + ExitCode int `json:"ExitCode" xml:"ExitCode"` +} diff --git a/services/ehpc/struct_invocation_results.go b/services/ehpc/struct_invocation_results.go new file mode 100644 index 0000000000..f0eeb2e900 --- /dev/null +++ b/services/ehpc/struct_invocation_results.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. + +// InvocationResults is a nested struct in ehpc response +type InvocationResults struct { + InvocationResult []InvocationResult `json:"InvocationResult" xml:"InvocationResult"` +} diff --git a/services/ehpc/struct_invoke_instance.go b/services/ehpc/struct_invoke_instance.go new file mode 100644 index 0000000000..f5bce7b3e3 --- /dev/null +++ b/services/ehpc/struct_invoke_instance.go @@ -0,0 +1,22 @@ +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. + +// InvokeInstance is a nested struct in ehpc response +type InvokeInstance struct { + InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/ehpc/struct_invoke_instances.go b/services/ehpc/struct_invoke_instances.go new file mode 100644 index 0000000000..7ce29a66d7 --- /dev/null +++ b/services/ehpc/struct_invoke_instances.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. + +// InvokeInstances is a nested struct in ehpc response +type InvokeInstances struct { + InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` +} diff --git a/services/ehpc/struct_job_info.go b/services/ehpc/struct_job_info.go index 66c091fa25..21b7ddac95 100644 --- a/services/ehpc/struct_job_info.go +++ b/services/ehpc/struct_job_info.go @@ -17,18 +17,22 @@ package ehpc // JobInfo is a nested struct in ehpc response type JobInfo struct { + Name string `json:"Name" xml:"Name"` + ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` + ShellPath string `json:"ShellPath" xml:"ShellPath"` + VariableList string `json:"VariableList" xml:"VariableList"` + LastModifyTime string `json:"LastModifyTime" xml:"LastModifyTime"` Owner string `json:"Owner" xml:"Owner"` + Priority string `json:"Priority" xml:"Priority"` + Stdout string `json:"Stdout" xml:"Stdout"` Comment string `json:"Comment" xml:"Comment"` State string `json:"State" xml:"State"` - Stderr string `json:"Stderr" xml:"Stderr"` - Priority int `json:"Priority" xml:"Priority"` - ShellPath string `json:"ShellPath" xml:"ShellPath"` - Stdout string `json:"Stdout" xml:"Stdout"` - ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` StartTime string `json:"StartTime" xml:"StartTime"` - LastModifyTime string `json:"LastModifyTime" xml:"LastModifyTime"` - Name string `json:"Name" xml:"Name"` - Id string `json:"Id" xml:"Id"` + Queue string `json:"Queue" xml:"Queue"` + NodeList string `json:"NodeList" xml:"NodeList"` SubmitTime string `json:"SubmitTime" xml:"SubmitTime"` + Id string `json:"Id" xml:"Id"` + Rerunable bool `json:"Rerunable" xml:"Rerunable"` + Stderr string `json:"Stderr" xml:"Stderr"` Resources Resources `json:"Resources" xml:"Resources"` } diff --git a/services/ehpc/struct_job_templates.go b/services/ehpc/struct_job_templates.go index 6f949a5ff3..e03c1c7d0a 100644 --- a/services/ehpc/struct_job_templates.go +++ b/services/ehpc/struct_job_templates.go @@ -17,15 +17,25 @@ package ehpc // JobTemplates is a nested struct in ehpc response type JobTemplates struct { - StdoutRedirectPath string `json:"StdoutRedirectPath" xml:"StdoutRedirectPath"` + Task int `json:"Task" xml:"Task"` Variables string `json:"Variables" xml:"Variables"` CommandLine string `json:"CommandLine" xml:"CommandLine"` - PackagePath string `json:"PackagePath" xml:"PackagePath"` + Queue string `json:"Queue" xml:"Queue"` Priority int `json:"Priority" xml:"Priority"` + Mem string `json:"Mem" xml:"Mem"` + Thread int `json:"Thread" xml:"Thread"` + ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` + StderrRedirectPath string `json:"StderrRedirectPath" xml:"StderrRedirectPath"` + Node int `json:"Node" xml:"Node"` + StdoutRedirectPath string `json:"StdoutRedirectPath" xml:"StdoutRedirectPath"` + Gpu int `json:"Gpu" xml:"Gpu"` + PackagePath string `json:"PackagePath" xml:"PackagePath"` + ClockTime string `json:"ClockTime" xml:"ClockTime"` ReRunable bool `json:"ReRunable" xml:"ReRunable"` Name string `json:"Name" xml:"Name"` - ArrayRequest string `json:"ArrayRequest" xml:"ArrayRequest"` Id string `json:"Id" xml:"Id"` - StderrRedirectPath string `json:"StderrRedirectPath" xml:"StderrRedirectPath"` RunasUser string `json:"RunasUser" xml:"RunasUser"` + InputFileUrl string `json:"InputFileUrl" xml:"InputFileUrl"` + WithUnzipCmd bool `json:"WithUnzipCmd" xml:"WithUnzipCmd"` + UnzipCmd string `json:"UnzipCmd" xml:"UnzipCmd"` } diff --git a/services/ehpc/struct_jobs.go b/services/ehpc/struct_jobs_in_list_jobs.go similarity index 90% rename from services/ehpc/struct_jobs.go rename to services/ehpc/struct_jobs_in_list_jobs.go index 0f93e6b11a..a1ca0c9925 100644 --- a/services/ehpc/struct_jobs.go +++ b/services/ehpc/struct_jobs_in_list_jobs.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Jobs is a nested struct in ehpc response -type Jobs struct { +// JobsInListJobs is a nested struct in ehpc response +type JobsInListJobs struct { JobInfo []JobInfo `json:"JobInfo" xml:"JobInfo"` } diff --git a/services/ehpc/struct_jobs_in_list_jobs_with_filters.go b/services/ehpc/struct_jobs_in_list_jobs_with_filters.go new file mode 100644 index 0000000000..27ee292a9c --- /dev/null +++ b/services/ehpc/struct_jobs_in_list_jobs_with_filters.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. + +// JobsInListJobsWithFilters is a nested struct in ehpc response +type JobsInListJobsWithFilters struct { + JobInfo []JobInfo `json:"JobInfo" xml:"JobInfo"` +} diff --git a/services/ehpc/struct_location_info.go b/services/ehpc/struct_location_info.go new file mode 100644 index 0000000000..82412addc4 --- /dev/null +++ b/services/ehpc/struct_location_info.go @@ -0,0 +1,24 @@ +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. + +// LocationInfo is a nested struct in ehpc response +type LocationInfo struct { + URL string `json:"URL" xml:"URL"` + RemoteType string `json:"RemoteType" xml:"RemoteType"` + Location string `json:"Location" xml:"Location"` + Authentication string `json:"Authentication" xml:"Authentication"` +} diff --git a/services/ehpc/struct_locations.go b/services/ehpc/struct_locations.go new file mode 100644 index 0000000000..e3a106447d --- /dev/null +++ b/services/ehpc/struct_locations.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. + +// Locations is a nested struct in ehpc response +type Locations struct { + LocationInfo []LocationInfo `json:"LocationInfo" xml:"LocationInfo"` +} diff --git a/services/ehpc/struct_managers.go b/services/ehpc/struct_managers.go index 1c66cc8df4..e51865b2dc 100644 --- a/services/ehpc/struct_managers.go +++ b/services/ehpc/struct_managers.go @@ -17,7 +17,9 @@ package ehpc // Managers is a nested struct in ehpc response type Managers struct { + OperatingCount int `json:"OperatingCount" xml:"OperatingCount"` ExceptionCount int `json:"ExceptionCount" xml:"ExceptionCount"` + StoppedCount int `json:"StoppedCount" xml:"StoppedCount"` Total int `json:"Total" xml:"Total"` NormalCount int `json:"NormalCount" xml:"NormalCount"` } diff --git a/services/ehpc/struct_message.go b/services/ehpc/struct_message.go new file mode 100644 index 0000000000..0b8dcfae4c --- /dev/null +++ b/services/ehpc/struct_message.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. + +// Message is a nested struct in ehpc response +type Message struct { + JobInfo string `json:"JobInfo" xml:"JobInfo"` +} diff --git a/services/ehpc/struct_metric_log.go b/services/ehpc/struct_metric_log.go new file mode 100644 index 0000000000..ace1924f53 --- /dev/null +++ b/services/ehpc/struct_metric_log.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. + +// MetricLog is a nested struct in ehpc response +type MetricLog struct { + Time int `json:"Time" xml:"Time"` + DiskDevice string `json:"DiskDevice" xml:"DiskDevice"` + NetworkInterface string `json:"NetworkInterface" xml:"NetworkInterface"` + MetricData string `json:"MetricData" xml:"MetricData"` + Hostname string `json:"Hostname" xml:"Hostname"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/services/ehpc/struct_metric_logs.go b/services/ehpc/struct_metric_logs.go new file mode 100644 index 0000000000..a678bcc2b9 --- /dev/null +++ b/services/ehpc/struct_metric_logs.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. + +// MetricLogs is a nested struct in ehpc response +type MetricLogs struct { + MetricLog []MetricLog `json:"MetricLog" xml:"MetricLog"` +} diff --git a/services/ehpc/struct_mount_target_list_in_list_cpfs_file_systems.go b/services/ehpc/struct_mount_target_list_in_list_cpfs_file_systems.go new file mode 100644 index 0000000000..545e96f423 --- /dev/null +++ b/services/ehpc/struct_mount_target_list_in_list_cpfs_file_systems.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. + +// MountTargetListInListCpfsFileSystems is a nested struct in ehpc response +type MountTargetListInListCpfsFileSystems struct { + MountTargets []MountTargets `json:"MountTargets" xml:"MountTargets"` +} diff --git a/services/ehpc/struct_mount_target_list_in_list_file_system_with_mount_targets.go b/services/ehpc/struct_mount_target_list_in_list_file_system_with_mount_targets.go new file mode 100644 index 0000000000..446611df49 --- /dev/null +++ b/services/ehpc/struct_mount_target_list_in_list_file_system_with_mount_targets.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. + +// MountTargetListInListFileSystemWithMountTargets is a nested struct in ehpc response +type MountTargetListInListFileSystemWithMountTargets struct { + MountTargets []MountTargets `json:"MountTargets" xml:"MountTargets"` +} diff --git a/services/ehpc/struct_mount_targets.go b/services/ehpc/struct_mount_targets.go new file mode 100644 index 0000000000..6e5f61c7d8 --- /dev/null +++ b/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 { + VswId string `json:"VswId" xml:"VswId"` + MountTargetDomain string `json:"MountTargetDomain" xml:"MountTargetDomain"` + AccessGroup string `json:"AccessGroup" xml:"AccessGroup"` + VpcId string `json:"VpcId" xml:"VpcId"` + Status string `json:"Status" xml:"Status"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` +} diff --git a/services/ehpc/struct_node_info.go b/services/ehpc/struct_node_info.go index db80068690..6351592fea 100644 --- a/services/ehpc/struct_node_info.go +++ b/services/ehpc/struct_node_info.go @@ -17,18 +17,30 @@ package ehpc // NodeInfo is a nested struct in ehpc response type NodeInfo struct { - LockReason string `json:"LockReason" xml:"LockReason"` - Expired bool `json:"Expired" xml:"Expired"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - ImageId string `json:"ImageId" xml:"ImageId"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - RegionId string `json:"RegionId" xml:"RegionId"` - Role string `json:"Role" xml:"Role"` - CreatedByEhpc bool `json:"CreatedByEhpc" xml:"CreatedByEhpc"` - Id string `json:"Id" xml:"Id"` - Status string `json:"Status" xml:"Status"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - AddTime string `json:"AddTime" xml:"AddTime"` - TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` - UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` + LockReason string `json:"LockReason" xml:"LockReason"` + HtEnabled bool `json:"HtEnabled" xml:"HtEnabled"` + Expired bool `json:"Expired" xml:"Expired"` + StateInSched string `json:"StateInSched" xml:"StateInSched"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + PublicIpAddress string `json:"PublicIpAddress" xml:"PublicIpAddress"` + RegionId string `json:"RegionId" xml:"RegionId"` + Id string `json:"Id" xml:"Id"` + VpcId string `json:"VpcId" xml:"VpcId"` + AddTime string `json:"AddTime" xml:"AddTime"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Version string `json:"Version" xml:"Version"` + CreateMode string `json:"CreateMode" xml:"CreateMode"` + Location string `json:"Location" xml:"Location"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + CreatedByEhpc bool `json:"CreatedByEhpc" xml:"CreatedByEhpc"` + HostName string `json:"HostName" xml:"HostName"` + Status string `json:"Status" xml:"Status"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + Roles RolesInListNodes `json:"Roles" xml:"Roles"` + UsedResources UsedResources `json:"UsedResources" xml:"UsedResources"` + TotalResources TotalResources `json:"TotalResources" xml:"TotalResources"` } diff --git a/services/ehpc/struct_nodes_in_list_nodes_by_queue.go b/services/ehpc/struct_nodes_in_list_nodes_by_queue.go new file mode 100644 index 0000000000..679784a6fc --- /dev/null +++ b/services/ehpc/struct_nodes_in_list_nodes_by_queue.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. + +// NodesInListNodesByQueue is a nested struct in ehpc response +type NodesInListNodesByQueue struct { + NodeInfo []NodeInfo `json:"NodeInfo" xml:"NodeInfo"` +} diff --git a/services/ehpc/struct_on_premise_info.go b/services/ehpc/struct_on_premise_info.go new file mode 100644 index 0000000000..a43ff24773 --- /dev/null +++ b/services/ehpc/struct_on_premise_info.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. + +// OnPremiseInfo is a nested struct in ehpc response +type OnPremiseInfo struct { + OnPremiseInfoItem []OnPremiseInfoItem `json:"OnPremiseInfo" xml:"OnPremiseInfo"` +} diff --git a/services/ehpc/struct_on_premise_info_item.go b/services/ehpc/struct_on_premise_info_item.go new file mode 100644 index 0000000000..63d8702163 --- /dev/null +++ b/services/ehpc/struct_on_premise_info_item.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. + +// OnPremiseInfoItem is a nested struct in ehpc response +type OnPremiseInfoItem struct { + Type string `json:"Type" xml:"Type"` + HostName string `json:"HostName" xml:"HostName"` + IP string `json:"IP" xml:"IP"` +} diff --git a/services/ehpc/struct_os_info.go b/services/ehpc/struct_os_info.go index 59e33d9d23..ce7faae64b 100644 --- a/services/ehpc/struct_os_info.go +++ b/services/ehpc/struct_os_info.go @@ -17,8 +17,10 @@ package ehpc // OsInfo is a nested struct in ehpc response type OsInfo struct { + Version string `json:"Version" xml:"Version"` + BaseOsTag string `json:"BaseOsTag" xml:"BaseOsTag"` Platform string `json:"Platform" xml:"Platform"` OsTag string `json:"OsTag" xml:"OsTag"` - Version string `json:"Version" xml:"Version"` + ImageId string `json:"ImageId" xml:"ImageId"` Architecture string `json:"Architecture" xml:"Architecture"` } diff --git a/services/ehpc/struct_os_tag.go b/services/ehpc/struct_os_tag.go new file mode 100644 index 0000000000..2ddf0801fa --- /dev/null +++ b/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 { + Architecture string `json:"Architecture" xml:"Architecture"` + Platform string `json:"Platform" xml:"Platform"` + OsTag string `json:"OsTag" xml:"OsTag"` + Version string `json:"Version" xml:"Version"` + BaseOsTag string `json:"BaseOsTag" xml:"BaseOsTag"` +} diff --git a/services/ehpc/struct_package_list.go b/services/ehpc/struct_package_list.go new file mode 100644 index 0000000000..9620734eaf --- /dev/null +++ b/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"` +} diff --git a/services/ehpc/struct_packages.go b/services/ehpc/struct_packages.go new file mode 100644 index 0000000000..48027a0f14 --- /dev/null +++ b/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"` +} diff --git a/services/ehpc/struct_post_install_script_info.go b/services/ehpc/struct_post_install_script_info.go new file mode 100644 index 0000000000..5e4c94718d --- /dev/null +++ b/services/ehpc/struct_post_install_script_info.go @@ -0,0 +1,22 @@ +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. + +// PostInstallScriptInfo is a nested struct in ehpc response +type PostInstallScriptInfo struct { + Url string `json:"Url" xml:"Url"` + Args string `json:"Args" xml:"Args"` +} diff --git a/services/ehpc/struct_post_install_scripts_in_describe_cluster.go b/services/ehpc/struct_post_install_scripts_in_describe_cluster.go new file mode 100644 index 0000000000..370fdecc18 --- /dev/null +++ b/services/ehpc/struct_post_install_scripts_in_describe_cluster.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. + +// PostInstallScriptsInDescribeCluster is a nested struct in ehpc response +type PostInstallScriptsInDescribeCluster struct { + PostInstallScriptInfo []PostInstallScriptInfo `json:"PostInstallScriptInfo" xml:"PostInstallScriptInfo"` +} diff --git a/services/ehpc/struct_post_install_scripts_in_get_post_scripts.go b/services/ehpc/struct_post_install_scripts_in_get_post_scripts.go new file mode 100644 index 0000000000..cc667fbc37 --- /dev/null +++ b/services/ehpc/struct_post_install_scripts_in_get_post_scripts.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. + +// PostInstallScriptsInGetPostScripts is a nested struct in ehpc response +type PostInstallScriptsInGetPostScripts struct { + PostInstallScriptsItem []PostInstallScriptsItem `json:"PostInstallScripts" xml:"PostInstallScripts"` +} diff --git a/services/ehpc/struct_post_install_scripts_item.go b/services/ehpc/struct_post_install_scripts_item.go new file mode 100644 index 0000000000..914b94a649 --- /dev/null +++ b/services/ehpc/struct_post_install_scripts_item.go @@ -0,0 +1,22 @@ +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. + +// PostInstallScriptsItem is a nested struct in ehpc response +type PostInstallScriptsItem struct { + Args string `json:"Args" xml:"Args"` + Url string `json:"Url" xml:"Url"` +} diff --git a/services/ehpc/struct_price_info.go b/services/ehpc/struct_price_info.go new file mode 100644 index 0000000000..699d8cfc54 --- /dev/null +++ b/services/ehpc/struct_price_info.go @@ -0,0 +1,24 @@ +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. + +// PriceInfo is a nested struct in ehpc response +type PriceInfo struct { + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + NodeType string `json:"NodeType" xml:"NodeType"` + Currency string `json:"Currency" xml:"Currency"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` +} diff --git a/services/ehpc/struct_prices.go b/services/ehpc/struct_prices.go new file mode 100644 index 0000000000..4b71ec7f3c --- /dev/null +++ b/services/ehpc/struct_prices.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. + +// Prices is a nested struct in ehpc response +type Prices struct { + PriceInfo []PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} diff --git a/services/ehpc/struct_profiling_info.go b/services/ehpc/struct_profiling_info.go new file mode 100644 index 0000000000..ca7e2875c4 --- /dev/null +++ b/services/ehpc/struct_profiling_info.go @@ -0,0 +1,27 @@ +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. + +// ProfilingInfo is a nested struct in ehpc response +type ProfilingInfo struct { + ProfilingId string `json:"ProfilingId" xml:"ProfilingId"` + TriggerTime string `json:"TriggerTime" xml:"TriggerTime"` + Pid int `json:"Pid" xml:"Pid"` + HostName string `json:"HostName" xml:"HostName"` + Duration int `json:"Duration" xml:"Duration"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Freq int `json:"Freq" xml:"Freq"` +} diff --git a/services/ehpc/struct_profilings.go b/services/ehpc/struct_profilings.go new file mode 100644 index 0000000000..f9c522556b --- /dev/null +++ b/services/ehpc/struct_profilings.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. + +// Profilings is a nested struct in ehpc response +type Profilings struct { + ProfilingInfo []ProfilingInfo `json:"ProfilingInfo" xml:"ProfilingInfo"` +} diff --git a/services/ehpc/struct_proxy_mgr.go b/services/ehpc/struct_proxy_mgr.go new file mode 100644 index 0000000000..0be36ffbad --- /dev/null +++ b/services/ehpc/struct_proxy_mgr.go @@ -0,0 +1,22 @@ +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. + +// ProxyMgr is a nested struct in ehpc response +type ProxyMgr struct { + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Count int `json:"Count" xml:"Count"` +} diff --git a/services/ehpc/struct_queue_info.go b/services/ehpc/struct_queue_info.go new file mode 100644 index 0000000000..2a5e4f1b94 --- /dev/null +++ b/services/ehpc/struct_queue_info.go @@ -0,0 +1,43 @@ +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. + +// QueueInfo is a nested struct in ehpc response +type QueueInfo struct { + QueueName string `json:"QueueName" xml:"QueueName"` + HostNameSuffix string `json:"HostNameSuffix" xml:"HostNameSuffix"` + EnableAutoGrow bool `json:"EnableAutoGrow" xml:"EnableAutoGrow"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + HostNamePrefix string `json:"HostNamePrefix" xml:"HostNamePrefix"` + ImageId string `json:"ImageId" xml:"ImageId"` + MaxNodesPerCycle int64 `json:"MaxNodesPerCycle" xml:"MaxNodesPerCycle"` + MinNodesInQueue int `json:"MinNodesInQueue" xml:"MinNodesInQueue"` + SystemDiskSize int `json:"SystemDiskSize" xml:"SystemDiskSize"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + MinNodesPerCycle int64 `json:"MinNodesPerCycle" xml:"MinNodesPerCycle"` + MaxNodesInQueue int `json:"MaxNodesInQueue" xml:"MaxNodesInQueue"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EnableAutoShrink bool `json:"EnableAutoShrink" xml:"EnableAutoShrink"` + QueueImageId string `json:"QueueImageId" xml:"QueueImageId"` + SystemDiskLevel string `json:"SystemDiskLevel" xml:"SystemDiskLevel"` + SystemDiskCategory string `json:"SystemDiskCategory" xml:"SystemDiskCategory"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + Type string `json:"Type" xml:"Type"` + ComputeInstanceType ComputeInstanceType `json:"ComputeInstanceType" xml:"ComputeInstanceType"` + SpotInstanceTypes SpotInstanceTypes `json:"SpotInstanceTypes" xml:"SpotInstanceTypes"` + DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` + InstanceTypes InstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` +} diff --git a/services/ehpc/struct_queues_in_get_auto_scale_config.go b/services/ehpc/struct_queues_in_get_auto_scale_config.go new file mode 100644 index 0000000000..655202eb4f --- /dev/null +++ b/services/ehpc/struct_queues_in_get_auto_scale_config.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. + +// QueuesInGetAutoScaleConfig is a nested struct in ehpc response +type QueuesInGetAutoScaleConfig struct { + QueueInfo []QueueInfo `json:"QueueInfo" xml:"QueueInfo"` +} diff --git a/services/ehpc/struct_queues_in_list_queues.go b/services/ehpc/struct_queues_in_list_queues.go new file mode 100644 index 0000000000..4453d30f81 --- /dev/null +++ b/services/ehpc/struct_queues_in_list_queues.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. + +// QueuesInListQueues is a nested struct in ehpc response +type QueuesInListQueues struct { + QueueInfo []QueueInfo `json:"QueueInfo" xml:"QueueInfo"` +} diff --git a/services/ehpc/struct_resources_in_list_jobs_with_filters.go b/services/ehpc/struct_resources_in_list_jobs_with_filters.go new file mode 100644 index 0000000000..c544e5298c --- /dev/null +++ b/services/ehpc/struct_resources_in_list_jobs_with_filters.go @@ -0,0 +1,22 @@ +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. + +// ResourcesInListJobsWithFilters is a nested struct in ehpc response +type ResourcesInListJobsWithFilters struct { + Nodes int64 `json:"Nodes" xml:"Nodes"` + Cores int64 `json:"Cores" xml:"Cores"` +} diff --git a/services/ehpc/struct_result.go b/services/ehpc/struct_result.go new file mode 100644 index 0000000000..5fd0424d46 --- /dev/null +++ b/services/ehpc/struct_result.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. + +// Result is a nested struct in ehpc response +type Result struct { + Output string `json:"Output" xml:"Output"` + InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` + ExitCode int `json:"ExitCode" xml:"ExitCode"` +} diff --git a/services/ehpc/struct_role_info.go b/services/ehpc/struct_role_info.go new file mode 100644 index 0000000000..3538bb349d --- /dev/null +++ b/services/ehpc/struct_role_info.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. + +// RoleInfo is a nested struct in ehpc response +type RoleInfo struct { + Name string `json:"Name" xml:"Name"` +} diff --git a/services/ehpc/struct_roles.go b/services/ehpc/struct_roles.go index 1b31df3446..1072baeae1 100644 --- a/services/ehpc/struct_roles.go +++ b/services/ehpc/struct_roles.go @@ -18,6 +18,6 @@ package ehpc // Roles is a nested struct in ehpc response type Roles struct { Manager ManagerInListPreferredEcsTypes `json:"Manager" xml:"Manager"` - Compute ComputeInListPreferredEcsTypes `json:"Compute" xml:"Compute"` Login LoginInListPreferredEcsTypes `json:"Login" xml:"Login"` + Compute ComputeInListPreferredEcsTypes `json:"Compute" xml:"Compute"` } diff --git a/services/ehpc/struct_roles_in_get_cluster_volumes.go b/services/ehpc/struct_roles_in_get_cluster_volumes.go new file mode 100644 index 0000000000..ef69eb6771 --- /dev/null +++ b/services/ehpc/struct_roles_in_get_cluster_volumes.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. + +// RolesInGetClusterVolumes is a nested struct in ehpc response +type RolesInGetClusterVolumes struct { + RoleInfo []RoleInfo `json:"RoleInfo" xml:"RoleInfo"` +} diff --git a/services/ehpc/struct_roles_in_list_nodes.go b/services/ehpc/struct_roles_in_list_nodes.go new file mode 100644 index 0000000000..ac1859038c --- /dev/null +++ b/services/ehpc/struct_roles_in_list_nodes.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. + +// RolesInListNodes is a nested struct in ehpc response +type RolesInListNodes struct { + Role []string `json:"Role" xml:"Role"` +} diff --git a/services/ehpc/struct_roles_in_list_nodes_no_paging.go b/services/ehpc/struct_roles_in_list_nodes_no_paging.go new file mode 100644 index 0000000000..cf07c90466 --- /dev/null +++ b/services/ehpc/struct_roles_in_list_nodes_no_paging.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. + +// RolesInListNodesNoPaging is a nested struct in ehpc response +type RolesInListNodesNoPaging struct { + Role []string `json:"Role" xml:"Role"` +} diff --git a/services/ehpc/struct_sched_info.go b/services/ehpc/struct_sched_info.go new file mode 100644 index 0000000000..d55a89bf1b --- /dev/null +++ b/services/ehpc/struct_sched_info.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. + +// SchedInfo is a nested struct in ehpc response +type SchedInfo struct { + SchedInfoItem []SchedInfoItem `json:"SchedInfo" xml:"SchedInfo"` +} diff --git a/services/ehpc/struct_sched_info_item.go b/services/ehpc/struct_sched_info_item.go new file mode 100644 index 0000000000..c041e29f9a --- /dev/null +++ b/services/ehpc/struct_sched_info_item.go @@ -0,0 +1,22 @@ +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. + +// SchedInfoItem is a nested struct in ehpc response +type SchedInfoItem struct { + Configuration string `json:"Configuration" xml:"Configuration"` + SchedName string `json:"SchedName" xml:"SchedName"` +} diff --git a/services/ehpc/struct_security_groups.go b/services/ehpc/struct_security_groups.go new file mode 100644 index 0000000000..b881e34bba --- /dev/null +++ b/services/ehpc/struct_security_groups.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. + +// SecurityGroups is a nested struct in ehpc response +type SecurityGroups struct { + SecurityGroup []string `json:"SecurityGroup" xml:"SecurityGroup"` +} diff --git a/services/ehpc/struct_service_pack.go b/services/ehpc/struct_service_pack.go new file mode 100644 index 0000000000..21df55023a --- /dev/null +++ b/services/ehpc/struct_service_pack.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. + +// ServicePack is a nested struct in ehpc response +type ServicePack struct { + ServicePackInfo []ServicePackInfo `json:"ServicePackInfo" xml:"ServicePackInfo"` +} diff --git a/services/ehpc/struct_service_pack_info.go b/services/ehpc/struct_service_pack_info.go new file mode 100644 index 0000000000..3c51df2c24 --- /dev/null +++ b/services/ehpc/struct_service_pack_info.go @@ -0,0 +1,24 @@ +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. + +// ServicePackInfo is a nested struct in ehpc response +type ServicePackInfo struct { + EndTime int `json:"EndTime" xml:"EndTime"` + Capacity int `json:"Capacity" xml:"Capacity"` + StartTime int `json:"StartTime" xml:"StartTime"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` +} diff --git a/services/ehpc/struct_software_list.go b/services/ehpc/struct_software_list.go new file mode 100644 index 0000000000..bfbd28c2a9 --- /dev/null +++ b/services/ehpc/struct_software_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. + +// SoftwareList is a nested struct in ehpc response +type SoftwareList struct { + SoftwareListItem []SoftwareListItem `json:"SoftwareList" xml:"SoftwareList"` +} diff --git a/services/ehpc/struct_software_list_item.go b/services/ehpc/struct_software_list_item.go new file mode 100644 index 0000000000..09b8b4d36f --- /dev/null +++ b/services/ehpc/struct_software_list_item.go @@ -0,0 +1,24 @@ +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. + +// SoftwareListItem is a nested struct in ehpc response +type SoftwareListItem struct { + SoftwareId string `json:"SoftwareId" xml:"SoftwareId"` + SoftwareStatus string `json:"SoftwareStatus" xml:"SoftwareStatus"` + SoftwareVersion string `json:"SoftwareVersion" xml:"SoftwareVersion"` + SoftwareName string `json:"SoftwareName" xml:"SoftwareName"` +} diff --git a/services/ehpc/struct_spot_instance_types.go b/services/ehpc/struct_spot_instance_types.go new file mode 100644 index 0000000000..8ea09d5579 --- /dev/null +++ b/services/ehpc/struct_spot_instance_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. + +// SpotInstanceTypes is a nested struct in ehpc response +type SpotInstanceTypes struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/services/ehpc/struct_svg_info.go b/services/ehpc/struct_svg_info.go new file mode 100644 index 0000000000..552f88dc3b --- /dev/null +++ b/services/ehpc/struct_svg_info.go @@ -0,0 +1,24 @@ +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. + +// SvgInfo is a nested struct in ehpc response +type SvgInfo struct { + Type string `json:"Type" xml:"Type"` + Url string `json:"Url" xml:"Url"` + Name string `json:"Name" xml:"Name"` + Size int `json:"Size" xml:"Size"` +} diff --git a/services/ehpc/struct_svg_urls.go b/services/ehpc/struct_svg_urls.go new file mode 100644 index 0000000000..f4c5d0a53e --- /dev/null +++ b/services/ehpc/struct_svg_urls.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. + +// SvgUrls is a nested struct in ehpc response +type SvgUrls struct { + SvgInfo []SvgInfo `json:"SvgInfo" xml:"SvgInfo"` +} diff --git a/services/ehpc/struct_tag_resource.go b/services/ehpc/struct_tag_resource.go new file mode 100644 index 0000000000..8918330c0c --- /dev/null +++ b/services/ehpc/struct_tag_resource.go @@ -0,0 +1,24 @@ +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. + +// TagResource is a nested struct in ehpc response +type TagResource struct { + ResourceType string `json:"ResourceType" xml:"ResourceType"` + TagValue string `json:"TagValue" xml:"TagValue"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + TagKey string `json:"TagKey" xml:"TagKey"` +} diff --git a/services/ehpc/struct_tag_resources.go b/services/ehpc/struct_tag_resources.go new file mode 100644 index 0000000000..178b005c56 --- /dev/null +++ b/services/ehpc/struct_tag_resources.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. + +// TagResources is a nested struct in ehpc response +type TagResources struct { + TagResource []TagResource `json:"TagResource" xml:"TagResource"` +} diff --git a/services/ehpc/struct_task_info.go b/services/ehpc/struct_task_info.go new file mode 100644 index 0000000000..2d44b0da0f --- /dev/null +++ b/services/ehpc/struct_task_info.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. + +// TaskInfo is a nested struct in ehpc response +type TaskInfo struct { + Status string `json:"Status" xml:"Status"` + TaskType string `json:"TaskType" xml:"TaskType"` + TotalSteps int `json:"TotalSteps" xml:"TotalSteps"` + CurrentStep int `json:"CurrentStep" xml:"CurrentStep"` + Result string `json:"Result" xml:"Result"` + Errors string `json:"Errors" xml:"Errors"` + TaskId string `json:"TaskId" xml:"TaskId"` + Request string `json:"Request" xml:"Request"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` +} diff --git a/services/ehpc/struct_tasks.go b/services/ehpc/struct_tasks.go new file mode 100644 index 0000000000..78dd3d92c9 --- /dev/null +++ b/services/ehpc/struct_tasks.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. + +// Tasks is a nested struct in ehpc response +type Tasks struct { + TaskInfo []TaskInfo `json:"TaskInfo" xml:"TaskInfo"` +} diff --git a/services/ehpc/struct_types.go b/services/ehpc/struct_types.go new file mode 100644 index 0000000000..78d1ef9016 --- /dev/null +++ b/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"` +} diff --git a/services/ehpc/struct_types_info.go b/services/ehpc/struct_types_info.go new file mode 100644 index 0000000000..635f01b896 --- /dev/null +++ b/services/ehpc/struct_types_info.go @@ -0,0 +1,32 @@ +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 { + Status string `json:"Status" xml:"Status"` + InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` + InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + InstanceBandwidthTx int `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"` + InstancePpsRx int `json:"InstancePpsRx" xml:"InstancePpsRx"` + InstancePpsTx int `json:"InstancePpsTx" xml:"InstancePpsTx"` + GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + CpuCoreCount int `json:"CpuCoreCount" xml:"CpuCoreCount"` + MemorySize int `json:"MemorySize" xml:"MemorySize"` + EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` + ZoneIds ZoneIds `json:"ZoneIds" xml:"ZoneIds"` +} diff --git a/services/ehpc/struct_user_info.go b/services/ehpc/struct_user_info.go index 715e987f95..ca49040c59 100644 --- a/services/ehpc/struct_user_info.go +++ b/services/ehpc/struct_user_info.go @@ -18,6 +18,8 @@ package ehpc // UserInfo is a nested struct in ehpc response type UserInfo struct { Name string `json:"Name" xml:"Name"` - AddTime string `json:"AddTime" xml:"AddTime"` Group string `json:"Group" xml:"Group"` + UserId string `json:"UserId" xml:"UserId"` + GroupId string `json:"GroupId" xml:"GroupId"` + AddTime string `json:"AddTime" xml:"AddTime"` } diff --git a/services/ehpc/struct_users.go b/services/ehpc/struct_users_in_list_users.go similarity index 89% rename from services/ehpc/struct_users.go rename to services/ehpc/struct_users_in_list_users.go index 3281dda2cd..9c0e611c28 100644 --- a/services/ehpc/struct_users.go +++ b/services/ehpc/struct_users_in_list_users.go @@ -15,7 +15,7 @@ package ehpc // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Users is a nested struct in ehpc response -type Users struct { +// UsersInListUsers is a nested struct in ehpc response +type UsersInListUsers struct { UserInfo []UserInfo `json:"UserInfo" xml:"UserInfo"` } diff --git a/services/ehpc/struct_users_in_list_users_async.go b/services/ehpc/struct_users_in_list_users_async.go new file mode 100644 index 0000000000..6bce65bae1 --- /dev/null +++ b/services/ehpc/struct_users_in_list_users_async.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. + +// UsersInListUsersAsync is a nested struct in ehpc response +type UsersInListUsersAsync struct { + UserInfo []UserInfo `json:"UserInfo" xml:"UserInfo"` +} diff --git a/services/ehpc/struct_volume_info.go b/services/ehpc/struct_volume_info.go index 55f8ddc5c9..b27ccd92aa 100644 --- a/services/ehpc/struct_volume_info.go +++ b/services/ehpc/struct_volume_info.go @@ -17,12 +17,19 @@ package ehpc // VolumeInfo is a nested struct in ehpc response type VolumeInfo struct { - VolumeId string `json:"VolumeId" xml:"VolumeId"` - ClusterName string `json:"ClusterName" xml:"ClusterName"` - RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` - VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` - VolumeType string `json:"VolumeType" xml:"VolumeType"` - VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` - RegionId string `json:"RegionId" xml:"RegionId"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + VolumeId string `json:"VolumeId" xml:"VolumeId"` + VolumeProtocol string `json:"VolumeProtocol" xml:"VolumeProtocol"` + RemoteDirectory string `json:"RemoteDirectory" xml:"RemoteDirectory"` + VolumeType string `json:"VolumeType" xml:"VolumeType"` + Location string `json:"Location" xml:"Location"` + LocalDirectory string `json:"LocalDirectory" xml:"LocalDirectory"` + VolumeMountpoint string `json:"VolumeMountpoint" xml:"VolumeMountpoint"` + RegionId string `json:"RegionId" xml:"RegionId"` + Role string `json:"Role" xml:"Role"` + JobQueue string `json:"JobQueue" xml:"JobQueue"` + ClusterName string `json:"ClusterName" xml:"ClusterName"` + MustKeep bool `json:"MustKeep" xml:"MustKeep"` + Roles RolesInGetClusterVolumes `json:"Roles" xml:"Roles"` + AdditionalVolumes AdditionalVolumes `json:"AdditionalVolumes" xml:"AdditionalVolumes"` } diff --git a/services/ehpc/struct_volumes_in_get_cluster_volumes.go b/services/ehpc/struct_volumes_in_get_cluster_volumes.go new file mode 100644 index 0000000000..f42d552211 --- /dev/null +++ b/services/ehpc/struct_volumes_in_get_cluster_volumes.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. + +// VolumesInGetClusterVolumes is a nested struct in ehpc response +type VolumesInGetClusterVolumes struct { + VolumeInfo []VolumeInfo `json:"VolumeInfo" xml:"VolumeInfo"` +} diff --git a/services/ehpc/struct_volumes_in_list_volumes.go b/services/ehpc/struct_volumes_in_list_volumes.go new file mode 100644 index 0000000000..684838f186 --- /dev/null +++ b/services/ehpc/struct_volumes_in_list_volumes.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. + +// VolumesInListVolumes is a nested struct in ehpc response +type VolumesInListVolumes struct { + VolumeInfo []VolumeInfo `json:"VolumeInfo" xml:"VolumeInfo"` +} diff --git a/services/ehpc/struct_zone_ids.go b/services/ehpc/struct_zone_ids.go new file mode 100644 index 0000000000..9d9c24223b --- /dev/null +++ b/services/ehpc/struct_zone_ids.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. + +// ZoneIds is a nested struct in ehpc response +type ZoneIds struct { + ZoneId []string `json:"ZoneId" xml:"ZoneId"` +} diff --git a/services/ehpc/submit_job.go b/services/ehpc/submit_job.go index 5c77d2c56f..3c3dbd7979 100644 --- a/services/ehpc/submit_job.go +++ b/services/ehpc/submit_job.go @@ -73,16 +73,27 @@ type SubmitJobRequest struct { *requests.RpcRequest StderrRedirectPath string `position:"Query" name:"StderrRedirectPath"` RunasUserPassword string `position:"Query" name:"RunasUserPassword"` + ClockTime string `position:"Query" name:"ClockTime"` CommandLine string `position:"Query" name:"CommandLine"` + JobQueue string `position:"Query" name:"JobQueue"` ArrayRequest string `position:"Query" name:"ArrayRequest"` + UnzipCmd string `position:"Query" name:"UnzipCmd"` PackagePath string `position:"Query" name:"PackagePath"` + Mem string `position:"Query" name:"Mem"` StdoutRedirectPath string `position:"Query" name:"StdoutRedirectPath"` Variables string `position:"Query" name:"Variables"` + PostCmdLine string `position:"Query" name:"PostCmdLine"` RunasUser string `position:"Query" name:"RunasUser"` ClusterId string `position:"Query" name:"ClusterId"` ReRunable requests.Boolean `position:"Query" name:"ReRunable"` + Thread requests.Integer `position:"Query" name:"Thread"` Priority requests.Integer `position:"Query" name:"Priority"` + Gpu requests.Integer `position:"Query" name:"Gpu"` + Node requests.Integer `position:"Query" name:"Node"` + Task requests.Integer `position:"Query" name:"Task"` + InputFileUrl string `position:"Query" name:"InputFileUrl"` Name string `position:"Query" name:"Name"` + ContainerId string `position:"Query" name:"ContainerId"` } // SubmitJobResponse is the response struct for api SubmitJob @@ -97,7 +108,7 @@ func CreateSubmitJobRequest() (request *SubmitJobRequest) { request = &SubmitJobRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "SubmitJob", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "SubmitJob", "", "") request.Method = requests.GET return } diff --git a/services/ehpc/summary_images.go b/services/ehpc/summary_images.go new file mode 100644 index 0000000000..a5198c8ece --- /dev/null +++ b/services/ehpc/summary_images.go @@ -0,0 +1,101 @@ +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" +) + +// SummaryImages invokes the ehpc.SummaryImages API synchronously +func (client *Client) SummaryImages(request *SummaryImagesRequest) (response *SummaryImagesResponse, err error) { + response = CreateSummaryImagesResponse() + err = client.DoAction(request, response) + return +} + +// SummaryImagesWithChan invokes the ehpc.SummaryImages API asynchronously +func (client *Client) SummaryImagesWithChan(request *SummaryImagesRequest) (<-chan *SummaryImagesResponse, <-chan error) { + responseChan := make(chan *SummaryImagesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SummaryImages(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SummaryImagesWithCallback invokes the ehpc.SummaryImages API asynchronously +func (client *Client) SummaryImagesWithCallback(request *SummaryImagesRequest, callback func(response *SummaryImagesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SummaryImagesResponse + var err error + defer close(result) + response, err = client.SummaryImages(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SummaryImagesRequest is the request struct for api SummaryImages +type SummaryImagesRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + ContainerType string `position:"Query" name:"ContainerType"` +} + +// SummaryImagesResponse is the response struct for api SummaryImages +type SummaryImagesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImagesName string `json:"ImagesName" xml:"ImagesName"` +} + +// CreateSummaryImagesRequest creates a request to invoke SummaryImages API +func CreateSummaryImagesRequest() (request *SummaryImagesRequest) { + request = &SummaryImagesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SummaryImages", "", "") + request.Method = requests.GET + return +} + +// CreateSummaryImagesResponse creates a response to parse from SummaryImages response +func CreateSummaryImagesResponse() (response *SummaryImagesResponse) { + response = &SummaryImagesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/summary_images_info.go b/services/ehpc/summary_images_info.go new file mode 100644 index 0000000000..1e39726287 --- /dev/null +++ b/services/ehpc/summary_images_info.go @@ -0,0 +1,102 @@ +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" +) + +// SummaryImagesInfo invokes the ehpc.SummaryImagesInfo API synchronously +func (client *Client) SummaryImagesInfo(request *SummaryImagesInfoRequest) (response *SummaryImagesInfoResponse, err error) { + response = CreateSummaryImagesInfoResponse() + err = client.DoAction(request, response) + return +} + +// SummaryImagesInfoWithChan invokes the ehpc.SummaryImagesInfo API asynchronously +func (client *Client) SummaryImagesInfoWithChan(request *SummaryImagesInfoRequest) (<-chan *SummaryImagesInfoResponse, <-chan error) { + responseChan := make(chan *SummaryImagesInfoResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SummaryImagesInfo(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SummaryImagesInfoWithCallback invokes the ehpc.SummaryImagesInfo API asynchronously +func (client *Client) SummaryImagesInfoWithCallback(request *SummaryImagesInfoRequest, callback func(response *SummaryImagesInfoResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SummaryImagesInfoResponse + var err error + defer close(result) + response, err = client.SummaryImagesInfo(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SummaryImagesInfoRequest is the request struct for api SummaryImagesInfo +type SummaryImagesInfoRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + ContainerType string `position:"Query" name:"ContainerType"` + ImageName string `position:"Query" name:"ImageName"` +} + +// SummaryImagesInfoResponse is the response struct for api SummaryImagesInfo +type SummaryImagesInfoResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ImagesInfo string `json:"ImagesInfo" xml:"ImagesInfo"` +} + +// CreateSummaryImagesInfoRequest creates a request to invoke SummaryImagesInfo API +func CreateSummaryImagesInfoRequest() (request *SummaryImagesInfoRequest) { + request = &SummaryImagesInfoRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SummaryImagesInfo", "", "") + request.Method = requests.GET + return +} + +// CreateSummaryImagesInfoResponse creates a response to parse from SummaryImagesInfo response +func CreateSummaryImagesInfoResponse() (response *SummaryImagesInfoResponse) { + response = &SummaryImagesInfoResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/sync_users.go b/services/ehpc/sync_users.go new file mode 100644 index 0000000000..ccc92d1478 --- /dev/null +++ b/services/ehpc/sync_users.go @@ -0,0 +1,99 @@ +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" +) + +// SyncUsers invokes the ehpc.SyncUsers API synchronously +func (client *Client) SyncUsers(request *SyncUsersRequest) (response *SyncUsersResponse, err error) { + response = CreateSyncUsersResponse() + err = client.DoAction(request, response) + return +} + +// SyncUsersWithChan invokes the ehpc.SyncUsers API asynchronously +func (client *Client) SyncUsersWithChan(request *SyncUsersRequest) (<-chan *SyncUsersResponse, <-chan error) { + responseChan := make(chan *SyncUsersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SyncUsers(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SyncUsersWithCallback invokes the ehpc.SyncUsers API asynchronously +func (client *Client) SyncUsersWithCallback(request *SyncUsersRequest, callback func(response *SyncUsersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SyncUsersResponse + var err error + defer close(result) + response, err = client.SyncUsers(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SyncUsersRequest is the request struct for api SyncUsers +type SyncUsersRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` +} + +// SyncUsersResponse is the response struct for api SyncUsers +type SyncUsersResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSyncUsersRequest creates a request to invoke SyncUsers API +func CreateSyncUsersRequest() (request *SyncUsersRequest) { + request = &SyncUsersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "SyncUsers", "", "") + request.Method = requests.GET + return +} + +// CreateSyncUsersResponse creates a response to parse from SyncUsers response +func CreateSyncUsersResponse() (response *SyncUsersResponse) { + response = &SyncUsersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/tag_resources.go b/services/ehpc/tag_resources.go new file mode 100644 index 0000000000..e0e1fcb2d3 --- /dev/null +++ b/services/ehpc/tag_resources.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" +) + +// TagResources invokes the ehpc.TagResources API synchronously +func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { + response = CreateTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// TagResourcesWithChan invokes the ehpc.TagResources API asynchronously +func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { + responseChan := make(chan *TagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TagResourcesWithCallback invokes the ehpc.TagResources API asynchronously +func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TagResourcesResponse + var err error + defer close(result) + response, err = client.TagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TagResourcesRequest is the request struct for api TagResources +type TagResourcesRequest struct { + *requests.RpcRequest + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceType string `position:"Query" name:"ResourceType"` + Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` +} + +// TagResourcesTag is a repeated param struct in TagResourcesRequest +type TagResourcesTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// TagResourcesResponse is the response struct for api TagResources +type TagResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTagResourcesRequest creates a request to invoke TagResources API +func CreateTagResourcesRequest() (request *TagResourcesRequest) { + request = &TagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "TagResources", "", "") + request.Method = requests.POST + return +} + +// CreateTagResourcesResponse creates a response to parse from TagResources response +func CreateTagResourcesResponse() (response *TagResourcesResponse) { + response = &TagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/un_tag_resources.go b/services/ehpc/un_tag_resources.go new file mode 100644 index 0000000000..09ec9469cd --- /dev/null +++ b/services/ehpc/un_tag_resources.go @@ -0,0 +1,102 @@ +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" +) + +// UnTagResources invokes the ehpc.UnTagResources API synchronously +func (client *Client) UnTagResources(request *UnTagResourcesRequest) (response *UnTagResourcesResponse, err error) { + response = CreateUnTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// UnTagResourcesWithChan invokes the ehpc.UnTagResources API asynchronously +func (client *Client) UnTagResourcesWithChan(request *UnTagResourcesRequest) (<-chan *UnTagResourcesResponse, <-chan error) { + responseChan := make(chan *UnTagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnTagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnTagResourcesWithCallback invokes the ehpc.UnTagResources API asynchronously +func (client *Client) UnTagResourcesWithCallback(request *UnTagResourcesRequest, callback func(response *UnTagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnTagResourcesResponse + var err error + defer close(result) + response, err = client.UnTagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnTagResourcesRequest is the request struct for api UnTagResources +type UnTagResourcesRequest struct { + *requests.RpcRequest + All requests.Boolean `position:"Query" name:"All"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceType string `position:"Query" name:"ResourceType"` + TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` +} + +// UnTagResourcesResponse is the response struct for api UnTagResources +type UnTagResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnTagResourcesRequest creates a request to invoke UnTagResources API +func CreateUnTagResourcesRequest() (request *UnTagResourcesRequest) { + request = &UnTagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "UnTagResources", "", "") + request.Method = requests.POST + return +} + +// CreateUnTagResourcesResponse creates a response to parse from UnTagResources response +func CreateUnTagResourcesResponse() (response *UnTagResourcesResponse) { + response = &UnTagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/uninstall_software.go b/services/ehpc/uninstall_software.go new file mode 100644 index 0000000000..f096a63724 --- /dev/null +++ b/services/ehpc/uninstall_software.go @@ -0,0 +1,100 @@ +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" +) + +// UninstallSoftware invokes the ehpc.UninstallSoftware API synchronously +func (client *Client) UninstallSoftware(request *UninstallSoftwareRequest) (response *UninstallSoftwareResponse, err error) { + response = CreateUninstallSoftwareResponse() + err = client.DoAction(request, response) + return +} + +// UninstallSoftwareWithChan invokes the ehpc.UninstallSoftware API asynchronously +func (client *Client) UninstallSoftwareWithChan(request *UninstallSoftwareRequest) (<-chan *UninstallSoftwareResponse, <-chan error) { + responseChan := make(chan *UninstallSoftwareResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UninstallSoftware(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UninstallSoftwareWithCallback invokes the ehpc.UninstallSoftware API asynchronously +func (client *Client) UninstallSoftwareWithCallback(request *UninstallSoftwareRequest, callback func(response *UninstallSoftwareResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UninstallSoftwareResponse + var err error + defer close(result) + response, err = client.UninstallSoftware(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UninstallSoftwareRequest is the request struct for api UninstallSoftware +type UninstallSoftwareRequest struct { + *requests.RpcRequest + ClusterId string `position:"Query" name:"ClusterId"` + Application string `position:"Query" name:"Application"` +} + +// UninstallSoftwareResponse is the response struct for api UninstallSoftware +type UninstallSoftwareResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUninstallSoftwareRequest creates a request to invoke UninstallSoftware API +func CreateUninstallSoftwareRequest() (request *UninstallSoftwareRequest) { + request = &UninstallSoftwareRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "UninstallSoftware", "", "") + request.Method = requests.GET + return +} + +// CreateUninstallSoftwareResponse creates a response to parse from UninstallSoftware response +func CreateUninstallSoftwareResponse() (response *UninstallSoftwareResponse) { + response = &UninstallSoftwareResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/update_cluster_volumes.go b/services/ehpc/update_cluster_volumes.go new file mode 100644 index 0000000000..b74d33dd54 --- /dev/null +++ b/services/ehpc/update_cluster_volumes.go @@ -0,0 +1,118 @@ +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" +) + +// UpdateClusterVolumes invokes the ehpc.UpdateClusterVolumes API synchronously +func (client *Client) UpdateClusterVolumes(request *UpdateClusterVolumesRequest) (response *UpdateClusterVolumesResponse, err error) { + response = CreateUpdateClusterVolumesResponse() + err = client.DoAction(request, response) + return +} + +// UpdateClusterVolumesWithChan invokes the ehpc.UpdateClusterVolumes API asynchronously +func (client *Client) UpdateClusterVolumesWithChan(request *UpdateClusterVolumesRequest) (<-chan *UpdateClusterVolumesResponse, <-chan error) { + responseChan := make(chan *UpdateClusterVolumesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateClusterVolumes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateClusterVolumesWithCallback invokes the ehpc.UpdateClusterVolumes API asynchronously +func (client *Client) UpdateClusterVolumesWithCallback(request *UpdateClusterVolumesRequest, callback func(response *UpdateClusterVolumesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateClusterVolumesResponse + var err error + defer close(result) + response, err = client.UpdateClusterVolumes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateClusterVolumesRequest is the request struct for api UpdateClusterVolumes +type UpdateClusterVolumesRequest struct { + *requests.RpcRequest + AdditionalVolumes *[]UpdateClusterVolumesAdditionalVolumes `position:"Query" name:"AdditionalVolumes" type:"Repeated"` + ClusterId string `position:"Query" name:"ClusterId"` +} + +// UpdateClusterVolumesAdditionalVolumes is a repeated param struct in UpdateClusterVolumesRequest +type UpdateClusterVolumesAdditionalVolumes struct { + VolumeType string `name:"VolumeType"` + VolumeProtocol string `name:"VolumeProtocol"` + LocalDirectory string `name:"LocalDirectory"` + RemoteDirectory string `name:"RemoteDirectory"` + Roles *[]UpdateClusterVolumesAdditionalVolumesRoles `name:"Roles" type:"Repeated"` + VolumeId string `name:"VolumeId"` + VolumeMountpoint string `name:"VolumeMountpoint"` + Location string `name:"Location"` + JobQueue string `name:"JobQueue"` +} + +// UpdateClusterVolumesAdditionalVolumesRoles is a repeated param struct in UpdateClusterVolumesRequest +type UpdateClusterVolumesAdditionalVolumesRoles struct { + Name string `name:"Name"` +} + +// UpdateClusterVolumesResponse is the response struct for api UpdateClusterVolumes +type UpdateClusterVolumesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateClusterVolumesRequest creates a request to invoke UpdateClusterVolumes API +func CreateUpdateClusterVolumesRequest() (request *UpdateClusterVolumesRequest) { + request = &UpdateClusterVolumesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "UpdateClusterVolumes", "", "") + request.Method = requests.GET + return +} + +// CreateUpdateClusterVolumesResponse creates a response to parse from UpdateClusterVolumes response +func CreateUpdateClusterVolumesResponse() (response *UpdateClusterVolumesResponse) { + response = &UpdateClusterVolumesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/update_queue_config.go b/services/ehpc/update_queue_config.go new file mode 100644 index 0000000000..fd9c3f27d0 --- /dev/null +++ b/services/ehpc/update_queue_config.go @@ -0,0 +1,102 @@ +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" +) + +// UpdateQueueConfig invokes the ehpc.UpdateQueueConfig API synchronously +func (client *Client) UpdateQueueConfig(request *UpdateQueueConfigRequest) (response *UpdateQueueConfigResponse, err error) { + response = CreateUpdateQueueConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateQueueConfigWithChan invokes the ehpc.UpdateQueueConfig API asynchronously +func (client *Client) UpdateQueueConfigWithChan(request *UpdateQueueConfigRequest) (<-chan *UpdateQueueConfigResponse, <-chan error) { + responseChan := make(chan *UpdateQueueConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateQueueConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateQueueConfigWithCallback invokes the ehpc.UpdateQueueConfig API asynchronously +func (client *Client) UpdateQueueConfigWithCallback(request *UpdateQueueConfigRequest, callback func(response *UpdateQueueConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateQueueConfigResponse + var err error + defer close(result) + response, err = client.UpdateQueueConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateQueueConfigRequest is the request struct for api UpdateQueueConfig +type UpdateQueueConfigRequest struct { + *requests.RpcRequest + QueueName string `position:"Query" name:"QueueName"` + ClusterId string `position:"Query" name:"ClusterId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ComputeInstanceType string `position:"Query" name:"ComputeInstanceType"` +} + +// UpdateQueueConfigResponse is the response struct for api UpdateQueueConfig +type UpdateQueueConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateQueueConfigRequest creates a request to invoke UpdateQueueConfig API +func CreateUpdateQueueConfigRequest() (request *UpdateQueueConfigRequest) { + request = &UpdateQueueConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("EHPC", "2018-04-12", "UpdateQueueConfig", "", "") + request.Method = requests.GET + return +} + +// CreateUpdateQueueConfigResponse creates a response to parse from UpdateQueueConfig response +func CreateUpdateQueueConfigResponse() (response *UpdateQueueConfigResponse) { + response = &UpdateQueueConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/ehpc/upgrade_client.go b/services/ehpc/upgrade_client.go index 59cda093c6..9e707bbb00 100644 --- a/services/ehpc/upgrade_client.go +++ b/services/ehpc/upgrade_client.go @@ -86,7 +86,7 @@ func CreateUpgradeClientRequest() (request *UpgradeClientRequest) { request = &UpgradeClientRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("EHPC", "2017-07-14", "UpgradeClient", "", "") + request.InitWithApiInfo("EHPC", "2018-04-12", "UpgradeClient", "", "") request.Method = requests.GET return }