Browse Source

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

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 years ago
parent
commit
cb8dd01fec

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-08-28 Version: 1.28.0
+1, Add new APIs for profiling application performance: GetCloudMetricProfiling, etc.
+2, Add new APIs to support Shifter container applications: AddContainerApp, etc.
+
 2018-08-28 Version: 1.27.6
 1, Add param for DescribeRegions,support AcceptLanguage,RegionEndpoint.
 

+ 1 - 1
services/ehpc/add_users.go

@@ -82,9 +82,9 @@ type AddUsersRequest struct {
 
 // AddUsersUser is a repeated param struct in AddUsersRequest
 type AddUsersUser struct {
+	Password string `name:"Password"`
 	Name     string `name:"Name"`
 	Group    string `name:"Group"`
-	Password string `name:"Password"`
 }
 
 // AddUsersResponse is the response struct for api AddUsers

+ 2 - 1
services/ehpc/create_cluster.go

@@ -96,6 +96,7 @@ type CreateClusterRequest struct {
 	AutoRenewPeriod             requests.Integer                  `position:"Query" name:"AutoRenewPeriod"`
 	Period                      requests.Integer                  `position:"Query" name:"Period"`
 	VolumeProtocol              string                            `position:"Query" name:"VolumeProtocol"`
+	ClientVersion               string                            `position:"Query" name:"ClientVersion"`
 	OsTag                       string                            `position:"Query" name:"OsTag"`
 	RemoteDirectory             string                            `position:"Query" name:"RemoteDirectory"`
 	EcsOrderComputeCount        requests.Integer                  `position:"Query" name:"EcsOrder.Compute.Count"`
@@ -119,8 +120,8 @@ type CreateClusterRequest struct {
 
 // CreateClusterPostInstallScript is a repeated param struct in CreateClusterRequest
 type CreateClusterPostInstallScript struct {
-	Url  string `name:"Url"`
 	Args string `name:"Args"`
+	Url  string `name:"Url"`
 }
 
 // CreateClusterApplication is a repeated param struct in CreateClusterRequest

+ 1 - 0
services/ehpc/create_hybrid_cluster.go

@@ -89,6 +89,7 @@ type CreateHybridClusterRequest struct {
 	OnPremiseVolumeProtocol     string                            `position:"Query" name:"OnPremiseVolumeProtocol"`
 	VolumeProtocol              string                            `position:"Query" name:"VolumeProtocol"`
 	OnPremiseVolumeLocalPath    string                            `position:"Query" name:"OnPremiseVolumeLocalPath"`
+	ClientVersion               string                            `position:"Query" name:"ClientVersion"`
 	OsTag                       string                            `position:"Query" name:"OsTag"`
 	RemoteDirectory             string                            `position:"Query" name:"RemoteDirectory"`
 	VSwitchId                   string                            `position:"Query" name:"VSwitchId"`

+ 0 - 1
services/ehpc/get_cloud_metric_logs.go

@@ -79,7 +79,6 @@ type GetCloudMetricLogsRequest struct {
 	AggregationType     string           `position:"Query" name:"AggregationType"`
 	Filter              string           `position:"Query" name:"Filter"`
 	MetricCategories    string           `position:"Query" name:"MetricCategories"`
-	Line                requests.Integer `position:"Query" name:"Line"`
 	MetricScope         string           `position:"Query" name:"MetricScope"`
 	From                requests.Integer `position:"Query" name:"From"`
 	ClusterId           string           `position:"Query" name:"ClusterId"`

+ 105 - 0
services/ehpc/get_cloud_metric_profiling.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"
+)
+
+// GetCloudMetricProfiling invokes the ehpc.GetCloudMetricProfiling API synchronously
+// api document: https://help.aliyun.com/api/ehpc/getcloudmetricprofiling.html
+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
+// api document: https://help.aliyun.com/api/ehpc/getcloudmetricprofiling.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+// api document: https://help.aliyun.com/api/ehpc/getcloudmetricprofiling.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+	ProfilingId string `position:"Query" name:"ProfilingId"`
+	ClusterId   string `position:"Query" name:"ClusterId"`
+}
+
+// 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", "ehs", "openAPI")
+	return
+}
+
+// CreateGetCloudMetricProfilingResponse creates a response to parse from GetCloudMetricProfiling response
+func CreateGetCloudMetricProfilingResponse() (response *GetCloudMetricProfilingResponse) {
+	response = &GetCloudMetricProfilingResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ehpc/list_cloud_metric_profilings.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"
+)
+
+// ListCloudMetricProfilings invokes the ehpc.ListCloudMetricProfilings API synchronously
+// api document: https://help.aliyun.com/api/ehpc/listcloudmetricprofilings.html
+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
+// api document: https://help.aliyun.com/api/ehpc/listcloudmetricprofilings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+// api document: https://help.aliyun.com/api/ehpc/listcloudmetricprofilings.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	ClusterId  string           `position:"Query" name:"ClusterId"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+}
+
+// ListCloudMetricProfilingsResponse is the response struct for api ListCloudMetricProfilings
+type ListCloudMetricProfilingsResponse struct {
+	*responses.BaseResponse
+	RequestId  string     `json:"RequestId" xml:"RequestId"`
+	TotalCount int        `json:"TotalCount" xml:"TotalCount"`
+	PageNumber int        `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int        `json:"PageSize" xml:"PageSize"`
+	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", "ehs", "openAPI")
+	return
+}
+
+// CreateListCloudMetricProfilingsResponse creates a response to parse from ListCloudMetricProfilings response
+func CreateListCloudMetricProfilingsResponse() (response *ListCloudMetricProfilingsResponse) {
+	response = &ListCloudMetricProfilingsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/ehpc/modify_image_gateway_config.go

@@ -89,8 +89,8 @@ type ModifyImageGatewayConfigRequest struct {
 
 // ModifyImageGatewayConfigRepo is a repeated param struct in ModifyImageGatewayConfigRequest
 type ModifyImageGatewayConfigRepo struct {
-	Location string `name:"Location"`
 	Auth     string `name:"Auth"`
+	Location string `name:"Location"`
 	URL      string `name:"URL"`
 }
 

+ 1 - 1
services/ehpc/modify_user_passwords.go

@@ -82,8 +82,8 @@ type ModifyUserPasswordsRequest struct {
 
 // ModifyUserPasswordsUser is a repeated param struct in ModifyUserPasswordsRequest
 type ModifyUserPasswordsUser struct {
-	Name     string `name:"Name"`
 	Password string `name:"Password"`
+	Name     string `name:"Name"`
 }
 
 // ModifyUserPasswordsResponse is the response struct for api ModifyUserPasswords

+ 107 - 0
services/ehpc/run_cloud_metric_profiling.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"
+)
+
+// RunCloudMetricProfiling invokes the ehpc.RunCloudMetricProfiling API synchronously
+// api document: https://help.aliyun.com/api/ehpc/runcloudmetricprofiling.html
+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
+// api document: https://help.aliyun.com/api/ehpc/runcloudmetricprofiling.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+// api document: https://help.aliyun.com/api/ehpc/runcloudmetricprofiling.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+	Duration  requests.Integer `position:"Query" name:"Duration"`
+	HostName  string           `position:"Query" name:"HostName"`
+	ProcessId requests.Integer `position:"Query" name:"ProcessId"`
+	Freq      requests.Integer `position:"Query" name:"Freq"`
+	ClusterId string           `position:"Query" name:"ClusterId"`
+}
+
+// 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", "ehs", "openAPI")
+	return
+}
+
+// CreateRunCloudMetricProfilingResponse creates a response to parse from RunCloudMetricProfiling response
+func CreateRunCloudMetricProfilingResponse() (response *RunCloudMetricProfilingResponse) {
+	response = &RunCloudMetricProfilingResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 0
services/ehpc/struct_node_info.go

@@ -21,11 +21,13 @@ type NodeInfo struct {
 	Expired         bool                     `json:"Expired" xml:"Expired"`
 	ExpiredTime     string                   `json:"ExpiredTime" xml:"ExpiredTime"`
 	ImageId         string                   `json:"ImageId" xml:"ImageId"`
+	Version         string                   `json:"Version" xml:"Version"`
 	ImageOwnerAlias string                   `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"`
 	Location        string                   `json:"Location" xml:"Location"`
 	RegionId        string                   `json:"RegionId" xml:"RegionId"`
 	CreatedByEhpc   bool                     `json:"CreatedByEhpc" xml:"CreatedByEhpc"`
 	Id              string                   `json:"Id" xml:"Id"`
+	HostName        string                   `json:"HostName" xml:"HostName"`
 	Status          string                   `json:"Status" xml:"Status"`
 	AddTime         string                   `json:"AddTime" xml:"AddTime"`
 	SpotStrategy    string                   `json:"SpotStrategy" xml:"SpotStrategy"`

+ 27 - 0
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"`
+	InstanceId  string `json:"InstanceId" xml:"InstanceId"`
+	HostName    string `json:"HostName" xml:"HostName"`
+	Pid         int    `json:"Pid" xml:"Pid"`
+	Duration    int    `json:"Duration" xml:"Duration"`
+	Freq        int    `json:"Freq" xml:"Freq"`
+	TriggerTime string `json:"TriggerTime" xml:"TriggerTime"`
+}

+ 21 - 0
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"`
+}

+ 24 - 0
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 {
+	Name string `json:"Name" xml:"Name"`
+	Type string `json:"Type" xml:"Type"`
+	Url  string `json:"Url" xml:"Url"`
+	Size int    `json:"Size" xml:"Size"`
+}

+ 21 - 0
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"`
+}